I can't get this to work properly all the time. I've tried all of the following script commands. They're stripped of arguments here to make it more readable:
( pulled from http://falloutmods.wikia.com/wiki/Fallout_2_editor_introduction )
EXAMPLES: [Let's say I have Friend X on my team, and if I kill any Good Guys, Friend X attacks me for being a douchebag -- think Sulik & slavers type of thing]
(1) Kill a good guy, then kill a bad guy in the same turn -- functions normally: Friend X attacks me and continues to until I die or he dies.
(2) Kill a bad guy, then kill a good guy in the same turn -- functions normally: Friend X attacks me and continues to until I die or he dies.
(3) Kill a good guy, wait a turn, then kill a bad guy -- functions normally: Friend X attacks me and continues to until I die or he dies.
(4) Kill a bad guy, wait a turn, then kill a good guy -- Friend X helps me take out everyone, Good and Bad alike. Only once combat ends (box closing and exp earned) does he turn on me.
The only thing I can think of that "makes sense" here is that perhaps once a critter has flagged a certain team as Enemy or whatever, and the initial combat round ends, they kill that entire team even if another team is flagged or if they are told to attack a critter on another team. But, that doesn't really make sense why they would kill the first team and then kill the others as well (example 4)... I don't know if I'm missing something or if this is an engine bug.
Code:
attack()
attack_complex()
attack_setup()
EXAMPLES: [Let's say I have Friend X on my team, and if I kill any Good Guys, Friend X attacks me for being a douchebag -- think Sulik & slavers type of thing]
(1) Kill a good guy, then kill a bad guy in the same turn -- functions normally: Friend X attacks me and continues to until I die or he dies.
(2) Kill a bad guy, then kill a good guy in the same turn -- functions normally: Friend X attacks me and continues to until I die or he dies.
(3) Kill a good guy, wait a turn, then kill a bad guy -- functions normally: Friend X attacks me and continues to until I die or he dies.
(4) Kill a bad guy, wait a turn, then kill a good guy -- Friend X helps me take out everyone, Good and Bad alike. Only once combat ends (box closing and exp earned) does he turn on me.
The only thing I can think of that "makes sense" here is that perhaps once a critter has flagged a certain team as Enemy or whatever, and the initial combat round ends, they kill that entire team even if another team is flagged or if they are told to attack a critter on another team. But, that doesn't really make sense why they would kill the first team and then kill the others as well (example 4)... I don't know if I'm missing something or if this is an engine bug.