SCTX |
scn GrommScript
short GrommGreet
short GrommFirst
short GrommAttack
float AttackTimer
short GrommHelp
short GrommDisable
short GrommAttack
short DeadMaster
begin gamemode
if DeadMaster == 0
if GetDeadCount Baenlin == 1
if Dark03Accidents.ShatteredElf >= 1
GrommRef.SetAlert 1
GrommRef.EvaluatePackage
set DeadMaster to 1
endif
endif
endif
if GrommAttack == 0
if player.GetInCell BrumaBaenlinsHouse == 1
if GrommRef.GetDetectionLevel Player == 3
if GetDeadCount Baenlin == 1
GrommRef.StartCombat Player
GrommRef.Moddisposition Player -100
set GrommAttack to 1
endif
endif
endif
endif
;Make Gromm forcegreet the player after he/she enters the house
if GrommGreet == 0
if ( GrommRef.GetDistance Player < 1000 )
if player.GetInCell BrumaBaenlinsHouse == 1
if GrommRef.GetDetectionLevel Player == 3
if GetDeadCount Baenlin == 0
GrommRef.StartConversation player, Greeting
set GrommGreet to 1
endif
endif
endif
endif
endif
if GrommFirst == 1
set AttackTimer to ( AttackTimer + GetSecondsPassed )
endif
if GrommAttack == 0
if AttackTimer > 20
set AttackTimer to 0
set GrommAttack to 1
endif
endif
if GrommAttack == 1 && player.GetInCell BrumaBaenlinsHouse == 1
GrommRef.moddisposition player, -100
set GrommAttack to 2
endif
if GrommDisable == 0
if GetStage Dark03Accidents >= 100
if GetDead == 1
Disable
set GrommDisable to 1
endif
endif
endif
end
|