This would make so whenever an element is first created it would trigger an action.
This would be really useful for CE's that you want to have a starting variable, or create something upon first being created.
Change when- on initialize
Moderators: Flumminator, Zomis
> This would make so whenever an element is first created it would trigger
> an action.
This would indeed be cool!
And again: No idea why I've missed to comment on this one so far.
> This would be really useful for CE's that you want to have a starting
> variable, or create something upon first being created.
Well, at least the initial CE value can be specified (which you probably already know.)
Triggering actions for each and every element on game start also seems to be a bit too much, but for every newly created element after the very first start, this would be good.
This could be a CE or "normal" element created from a CE change, but also from a yamyam explosion (or explosion of other elements etc.)
I have just added it to the "change conditions" list in the editor as a new condition "(after/when) creation of <element>". Seems to work fine (although I haven't tested many things with it). I tried to let the player explode if a diamond was created, and then let the player throw a stone through a magic wall, resulting in a diamond. And voila: The player exploded!
Have a look at this in the next pre-release version!
> an action.
This would indeed be cool!
And again: No idea why I've missed to comment on this one so far.
> This would be really useful for CE's that you want to have a starting
> variable, or create something upon first being created.
Well, at least the initial CE value can be specified (which you probably already know.)
Triggering actions for each and every element on game start also seems to be a bit too much, but for every newly created element after the very first start, this would be good.
This could be a CE or "normal" element created from a CE change, but also from a yamyam explosion (or explosion of other elements etc.)
I have just added it to the "change conditions" list in the editor as a new condition "(after/when) creation of <element>". Seems to work fine (although I haven't tested many things with it). I tried to let the player explode if a diamond was created, and then let the player throw a stone through a magic wall, resulting in a diamond. And voila: The player exploded!
Have a look at this in the next pre-release version!