Forum
News CS2D 0.1.2.1You have to write a Lua expression there that returns a boolean. The entity even has 2 samples in the editor.
It can be a function that returns a boolean or an expression like "var1==var2" or "not var2" or "var3~=5" etc.
edited 1×, last 01.08.12 11:50:27 pm
BaDgEr has written
Btw today Minecraft has been updated to 1.3.1 and CS2D to 1.0.1.2. Is it an ancident?
thats funny bcuz this happened at the latest update (1.2.0)
Cs2D and minecraft got updated at the same day
Or only the host can do it?
and can you give more examples for Trigger_If ?
StirlizZ-Fapicon has written
Need FAQ about trigger_if
Q: How to use Trigger_If?
A: Upon being triggered, Trigger_If executes the Lua expression and if it is true, it will trigger the entity or entities specified in the trigger field.
Q: How to write Lua expressions for Trigger_If?
A: Like any other Lua expression. It just has to return a boolean value (true/false).
Good enough?
Now, I'm very happy about a few points that have been added - such as the fixing of image tags for the image function, disability to use number keys on disabled menu items, and the hide parameter for the setname command. The undo functionality in the editor is also quite an addition. Very nicely done.
edited 1×, last 02.08.12 08:25:07 am
Thanks for another awesome update.
Quote
Undo function for tile operations in editor (CTRL+Z, unlimited undo steps)
This is really helpful,I think most mappers will like that.