AI Scripting, with cinematic. Any Ideas?
Maridiam
Member Posts: 1
The idea is the spells and cinematic will end once all the hostiles are gone. But instead it continues and even shoots spells off map. I'd Appreciate any help on this.
//Detect Enemy
IF
Range(Player1,0)
Global("PlayerDetectEnemy","GLOBAL",0)
OR(3)
Detect(NearestEnemyOf(Myself))
Detect([EVILCUTOFF])
Detect([GOODBUTRED])
THEN
RESPONSE #100
SetGlobal("PlayerDetectEnemy","GLOBAL",1)
END
IF
Range(Player1,0)
Global("PlayerDetectEnemy","GLOBAL",1)
!Detect(NearestEnemyOf(Myself))
!Detect([EVILCUTOFF])
!Detect([GOODBUTRED])
THEN
RESPONSE #100
SetGlobal("PlayerDetectEnemy","GLOBAL",0)
END
IF
Global("PlayerDetectEnemy","GLOBAL",1)
THEN
RESPONSE #100
ClearAllActions()
StartCutSceneMode()
CutSceneId(Myself)
MoveViewObject(Myself,VERY_FAST)
ForceSpell(NearestEnemyOf(Myself),FLASHY_DEATH_1)
ForceSpell(SecondNearestEnemyOf(Myself),FLASHY_DEATH_2)
ForceSpell(ThirdNearestEnemyOf(Myself),FLASHY_DEATH_3)
ForceSpell(FourthNearestEnemyOf(Myself),FLASHY_DEATH_YEAH)
//This List Goes On and On and On, leaving nothing left.
END
IF
Global("PlayerDetectEnemy","GLOBAL",0)
THEN
RESPONSE #100
EndCutSceneMode()
ClearAllActions()
END
//Detect Enemy
IF
Range(Player1,0)
Global("PlayerDetectEnemy","GLOBAL",0)
OR(3)
Detect(NearestEnemyOf(Myself))
Detect([EVILCUTOFF])
Detect([GOODBUTRED])
THEN
RESPONSE #100
SetGlobal("PlayerDetectEnemy","GLOBAL",1)
END
IF
Range(Player1,0)
Global("PlayerDetectEnemy","GLOBAL",1)
!Detect(NearestEnemyOf(Myself))
!Detect([EVILCUTOFF])
!Detect([GOODBUTRED])
THEN
RESPONSE #100
SetGlobal("PlayerDetectEnemy","GLOBAL",0)
END
IF
Global("PlayerDetectEnemy","GLOBAL",1)
THEN
RESPONSE #100
ClearAllActions()
StartCutSceneMode()
CutSceneId(Myself)
MoveViewObject(Myself,VERY_FAST)
ForceSpell(NearestEnemyOf(Myself),FLASHY_DEATH_1)
ForceSpell(SecondNearestEnemyOf(Myself),FLASHY_DEATH_2)
ForceSpell(ThirdNearestEnemyOf(Myself),FLASHY_DEATH_3)
ForceSpell(FourthNearestEnemyOf(Myself),FLASHY_DEATH_YEAH)
//This List Goes On and On and On, leaving nothing left.
END
IF
Global("PlayerDetectEnemy","GLOBAL",0)
THEN
RESPONSE #100
EndCutSceneMode()
ClearAllActions()
END
Post edited by Maridiam on
0