Creature control through ActionOverride
chimeric
Member Posts: 1,163
If you have experience moving people around, PC or NPC, with ActionOverride, I'd like to hear from you. Especially if you have done it from outside - from an ActionOverride in an invisible creature's script, for example. Did you run into any special difficulties? Were the actors neutral - I mean, NEUTRAL? Or did they have some other kind of allegiance? Did their scripted actions get in the way, did they distract them from following the commands? What did you do then?
I would really like to learn about moving people around for my blue charms.
I would really like to learn about moving people around for my blue charms.
0
Comments
Likewise, target object's own script can also interrupt whatever it was AO()'ed to do, especially if it's some long procedure. Can circumvent it with SetInterrupt(FALSE), but it will make impossible to save the game until you SetInterrupt(TRUE) it back, so you really shouldn't do it for extended action sequences.
Of course, most of the quest-related actors are not hostile, and those hostile usually exist only to be slain, not to mention there're not too many quests that even feature non-cutscene non-dialog non-fight scripting in the first place. Still, expect that some unique bosses may get screwed to varying degree (possibly along with the game, if you roll an epic fail ) if you AO() them at the wrong moment. Some are immune to charm all along, though, so as long as you patch the immunities you should be a bit safer.
To try out whether going blue affects scripts I just called on Tarnesh again and made him blue with a charm before he could approach the party and start his dialogue. I caught him mid-step with the spell. There is a built-in second of Feeblemind to clear the action queue, but he only paused for that moment and then went on with his part. I couldn't control him with an ActionOverride if I wanted to - I've tried doing it to busy creatures when I was making Taunt. They totally ignore it.
For creatures not so rigidly scripted allegiance makes a difference. If their scripts tell them to attack the enemy, then they will throw themselves on whoever that is at the moment. Real neutrals, on the other hand, don't have a side until someone attacks them, so there is no action queue to struggle against. That's why they are all neutrals in cutscenes, you never see a creature fighting because of allegiance, only because it follows a predetermined sequence.