Jump to content

Turning a creature into an Enemy using Enemy()


Bill Bisco

Recommended Posts

How do I properly use Enemy() in a dialogue to turn a party member into an enemy. My sample dialogue below is of the character speaking to CHARNAME whom I want to become an enemy. Is the below coded correctly? Your help is most appreciated.

 

IF ~~ THEN BEGIN CH2Erevain12
SAY ~You are a severe threat to all of Faerûn, <CHARNAME>. By the aid of the Seldarine you shall fall on this day!~ DO Enemy() ~ EXIT
END

Link to comment

If you want a party member to turn on you, do they have to leave the party first? Or, can will the Enemy() code make them leave the party by itself? For example would you have to use the code:

 

IF ~~ THEN DO ~LeaveParty() Enemy()~ EXIT

 

?

 

Thanks,

 

Bill

Link to comment

Ooh. Finally a question I can answer, instead of me asking all the questions.

 

From KELDORN.BCS

THEN
    RESPONSE #100
        SetGlobal("KeldornKickMe","LOCALS",1)
        DisplayStringHead(Myself,11532)
        LeaveParty()
        Enemy()
END

I don't think order would matter, though, since it's virtually too instantaneous to matter (such as party AI scripts firing a spell at him that might be different whether he's still in the party as an enemy).

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...