Page 1 of 1

Need a SWAP_INSTANCE action

Posted: Fri Dec 17, 2010 4:42 pm
by Gambit37
The actions SWAP_GLOBAL and SWAP_GLOBAL_FAST are very handy, but have an obvious downside: they change *every* instance of the given object in the dungeon. You can clone things to get around this, but it's not ideal for managing stuff that can be created by the dungeon "on the fly."

So I propose 2 new actions: SWAP_INSTANCE and SWAP_INSTANCE_FAST. These would work similarly to the globals, but they will only swap the current instance of the object that fired the action. I see this as primarily used by monsters in their attack actions -- it would be the easiest way of giving lots of different types of attacks to a monster.