Sunday, August 17, 2008

Couple of Useful Scripts

I've been going through some scripts from the OC in an attempt to iron-out some from faults in some of my own scripts that have not been functioning as I had hoped.

It seems that when I "ChangeToStandardFaction(STANDARD_FACTION_HOSTILE)", the mobs fail to directly attack unless they are attacked first. Going through some OC scripts, I discovered that their is no direction solution to this, other than to create a valiable that determines the player's ability to survive the attack.

Rather than trying to script OnDeath scripts for all the opponents followed by the local variable that will determine what happens when the battle is one, the OC script adds the opponents into a single group that only requires a single OnDeath script. I'm gonna play with this tomorrow and see if I can get some of these to fire properly.