ID:142677
 
Code:
particle
fire
mesh from 'flametongue.dmmesh'
texture = 'flare.dmi'
emitter == matrix3(OFFSET,32,32,12,,STATIC)
spawnrate is kinda 13
initvelocity is kinda 47
lifetime = almost 9
New(O as obj,M as matrix)
pushclient
for(var/obj/torch/T in scene.components)
clone(O,translate(T.loc3d,UP,41)
O.loc.warmth += 1


Problem description:
The flame particles are spreading out too much, so instead of a nice little flame on the torch it is acting like a sparkler. How do I restrict the 'kinda' qualifier to limit the systems fuzzy logic to just 12 voxels?

Another problem is the server is unable to tell the warmth of the room. The 5.0 help on queryclient() is hard to understand. Can you help me?

The full source is here: DragonBall Naruto: Spoof of Retribution
Traztx wrote:
Problem description:
The flame particles are spreading out too much, so instead of a nice little flame on the torch it is acting like a sparkler. How do I restrict the 'kinda' qualifier to limit the systems fuzzy logic to just 12 voxels?

I like your thinking here, but you aren't tapping into the full power of the L33T2DM™ compiler here. Try this:
var/flame = "kewl fire plz"


Good luck!
In response to Tom
Doh! I should have noticed this:
Draguto.dm:5139:warning:= :consider l33t expression

Anyway, it's working better now.

Here's a screenshot:
scene 1

Now, if I can only figure out how to fix the warmth setting on the server...
In response to Tom
Tom wrote:
I like your thinking here, but you aren't tapping into the full power of the L33T2DM™ compiler here. Try this:
> var/flame = "kewl fire plz"
>

Good luck!

Good effort, but this coding is not robust it'll often cause runtime errors. Try the following.

Proc
Verb
Var/list/contents + flame
if mob has contents + fire + say = "kwel fire plz".
else = "You cant do this"


I suggest you read the dm guide. http://www.byond.com/docs/guide/