Main Forum

I need help!

2 replies
Posts:
55
Sparks:
+17
How do I make it so that if a mob named "%default" kills another mob but gives you coins for it.
Posted Jan 11, 19 · OP
Posts:
706
Sparks:
+358
Expert
Overlord
Due to a quirk in the way Variables are stored, if you have a mob called "%default", using %entity will access the same vars as the player it's named after.

If you want some more explanation of this, feel free to reply back. Hope this helped :)
Guess there's a cat here now.
0a8fuAs.png

You all still get a hug tho

Tip: If your post is so short you have to put (word limit) on it, it's probably not worth posting.
Another tip: Unless you're a DF developer, don't try to say what is and isn't possible.
©
Posted Jan 11, 19
Posts:
574
Sparks:
+164
Helper
Overlord
This can be easily remedied by just adding either some invisible characters to the start, or adding a prefix/suffix e.g. "%default's mob"

Then when testing with "if name =" you would just use that new name
Posted Jan 11, 19
NoticeNotices