EVENT GAME: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
Most important, can edit hard-coded actor without breaking it using the <i>[[actor]] MYENEMY</i> code. | Most important, can edit hard-coded actor without breaking it using the <i>[[actor]] MYENEMY</i> code. | ||
onevent EVENT_GAME | onevent EVENT_GAME | ||
ifactor RECON | |||
ifai 0 | |||
strength 50 | |||
ifactor RPG | |||
ifspawnedby BOSS2 | |||
spawn SMALLSMOKE | |||
endevent | endevent | ||
This will change RECON strength and adding a trail to the RPG that Cycloid Emperor shoots. | This will change RECON strength and adding a trail to the RPG that Cycloid Emperor shoots. | ||
[[Category:Events]] | [[Category:Events]] |
Revision as of 14:19, 25 December 2006
EVENT_GAME is an event that is triggered once per tic per sprite in the game. The gamevar THISACTOR refers to the ID of the actor executing the code. Thus, it takes the value of each actor in the game.
Very usefull, you can instead of modding original CON files, use ifactor MYACTOR to edit actors or ifactor APLAYER for add codes as if was added on APLAYER code without editing GAME.CON.
Most important, can edit hard-coded actor without breaking it using the actor MYENEMY code.
onevent EVENT_GAME ifactor RECON ifai 0 strength 50 ifactor RPG ifspawnedby BOSS2 spawn SMALLSMOKE endevent
This will change RECON strength and adding a trail to the RPG that Cycloid Emperor shoots.