Skip to content

Kivan and Tazok encounter?

GreenerGreener Member Posts: 430
edited March 2019 in BG:EE Mods
In v2.5.17.0 Kivan and Tazok chat before battling while the rest of the bandits on-screen stay neutral and watch. How would I script this to have allow the enemies in the bandit camp become hostile instead of just Tazok?

IF InParty("kivan") See("kivan") THEN RESPONSE #100 SetGlobal("JoinedBandits","GLOBAL",0) ChangeEnemyAlly("tazok",ENEMY) Attack([PC]) END
Post edited by Greener on

Comments

  • The user and all related content has been deleted.
  • SkitiaSkitia Member Posts: 1,059
    edited March 2019
    Are you trying to turn the bandits already placed in the area, or custom created ones?

    If you are trying to make the ones already in the area hostile, You could EXTEND_TOP of BHOSTILE.BCS with a bhostile.baf and add a line that if Tazok shouts, (Add a shout after he turns enemy), everyone with BHOSTILE.BCS turns hostile, which is everyone in the bandit camp.

    So hypothetically:
    Tazok's script:
    IF
    InParty("kivan")
    See("kivan")
    THEN
    RESPONSE #100
    SetGlobal("JoinedBandits","GLOBAL",0)
    ChangeEnemyAlly("tazok",ENEMY)
    Shout(1)
    Attack([PC])
    END
    

    Bhostile.baf
    IF
    	Heard("tazok",1)
    THEN
    	RESPONSE #100
    		Enemy()
    END
    

    If it's custom placed ones, as long as the actors had the same specific script it largely works the same, except with the script's name and not bhostile.baf.

    Either way, some line like the above is needed in the bandit's file to know to turn enemy when this fires, with either a global variable being set so it is triggered, or a shout.

  • GreenerGreener Member Posts: 430
    @Skitia thank you.
Sign In or Register to comment.