All PCs run the same script for their events - its called "default" - and if you open some of the character bics you'll see it listed. You can use this script to run specific effects/routines on the PC whenever an event is fired for a particular PC. OldMansBeard has some excellent use of this method in his
OHS System.
What's nice about using the "default" script is that it doesn't rely upon a heartbeat that has to check every single PC each time it fires, it fires only for a PC whenever the need arises. Therefore you could link an effect to the OnDamaged event in the "default" script and it will only fire for a PC whenever their OnDamaged event fires - no need for heartbeat checks.
I'll admit I might be a little off as its been several years since I've played with a "default" script so I'll defer to OMB and the OHS. Furthermore, I do recall something about not all events firing reliably but I can't remember which ones - OHS will have notes on this anyway.
Just for the record. The "default" script does not actually exist. It is a marker script placed into character bics so that PC behavior could be overridden by the Community.
Modifié par Pstemarie, 22 mars 2013 - 11:09 .