
I_C_T SOMEDLGFILE xx Checkvariable
== SOMEBODY IF ~OR (3) !InParty("MYGUY") Dead("MYGUY") StateCheck("MYGUY",STATE_SLEEPING)~ THEN ~It's all mine!~
ENDI_C_T SOMEDLGFILE xx Checkvariable
== SOMEBODY IF ~!InParty("MYGUY")~ THEN ~It's all mine!~
== SOMEBODY IF ~Dead("MYGUY")~ THEN ~It's all mine!~
== SOMEBODY IF ~StateCheck("MYGUY",STATE_SLEEPING)~ THEN ~It's all mine!~
ENDIF
!OrCondition#1
!OrCondition#2
...
!OrCondition#n
THEN
RESPONSE #100
NoAction()
END
IF
True()
THEN
RESPONSE #100
SomeActions
END!NumTimesTalkedTo(0)!NumTimesTalkedTo(0)
!Dead("Myguy")
!StateCheck("Myguy",STATE_SLEEPING)
InParty("Myguy"")
"bla"
!NumTimesTalkedTo(0) //acts almost as True() in this case
"bla"Quote from: jasteyI just noticed there's no "OR(x)" trigger in BG1. How am I supposed to code something likeyep, you must divide it into three separate blocks...
"IF ~OR(3) Dead("Myguy") SateCheck("Myguy"",STATE_SLEEPING) !InParty("Myguy"")~" ???? Easiest way (well, I mean *simplest*) is to split it into three dialogues blocks for the three different triggers, but that's.... not really convenient...
IF ~True()~ THEN dialogue_01
SAY @0
++ @1 EXIT
+ ~PartyHasItem("elexir")~ + @2 DO ~SetGlobal("C#transformation","GLOBAL",1)~ EXIT
END
////
///script file c#ar3344.baf
IF
Global("C#transformation","GLOBAL",1)
THEN
RESPONSE #100
ClearAllActions()
SetGlobal("C#transformation","GLOBAL",2)
CutSceneId(Player1)
StartCutSceneMode()
TakePartyItem("elexir")
ForceSpellPoint([xxx.yyy],RED_HOLY_MIGHT)
ActionOverride("creature1",DestroySelf())
Wait(1)
CreateCreature("creature2",[xxx.yyy],3)
SetGlobal("C#Retransformation","GLOBAL",1)
EndCutSceneMode()
END

DO ~
StartCutScene("mycutscene")
StartCutSceneMode()~ EXITIF
True()
THEN
RESPONSE #100
CutSceneId("creature1")
SetGlobal("variable","GLOBAL",1)
DestroySelf()
CreateCreature("creature2",[300.250],0)
EndCutSceneMode()
ENDActionOverride("creature2",DisplayString(Myself,~text~))