Jump to content

How to De-Statue an actor?


Khet

Recommended Posts

Trying to write up a seemingly simple script, here's the scenario.

 

There are eight statues total split into two groups (four around each of two pillars). When the player uses an activator the first statue comes to life and attacks. After the first one is dead, the second comes to life and attacks, and this process repeats until all eight statues are dead.

 

The first part works perfectly, however... when I try to get them to attack the first statue just stands there as if the second part of my script doesn't do anything. Any thoughts would be appreciated, I've been staring at this thing for about two and a half hours now, trying various methods and none work.

 

Here's the script on the first statue.

 

scn EIPoisonStatue01

Short SetIdle

begin OnLoad

If EIAncient.StatueBattle == 0
Statue01.addscriptpackage MQStatuePose
setalert 1
setghost 1
setunconscious 1
setdestroyed 1; so you can't activate
Statue01.setav speed 0; so you can't move it around
;pms effectTG11stone
EndIf

End

Begin GameMode

If EIAncient.StatueBattle == 1
Statue01.RemoveScriptPackage MQStatuePose
setalert 0
setghost 0
setunconscious 0
setdestroyed 0
Statue01.setav speed 98
StartCombat Player
EndIf

End

Begin OnDeath Player

Set EIAncient.StatueKilled to EIAncient.StatueKilled + 1

End

 

And this is the script for the second through eighth statues. The only things that change with these are the numbers for StatueKilled

 

scn EIPoisonStatue02

Short SetIdle

begin OnLoad

If EIAncient.StatueKilled < 1
Statue02.addscriptpackage EIStatuePose
setalert 1
setghost 1
pickidle
setunconscious 1
setdestroyed 1; so you can't activate
Statue02.setav speed 0; so you can't move it around
;pms effectTG11stone
EndIf

End

Begin GameMode

If EIAncient.StatueKilled == 1
Statue02.RemoveScriptPackage EIStatuePose
setalert 0
setghost 0
setunconscious 0
setdestroyed 0
Statue02.setav speed 98
StartCombat Player
EndIf

End 

Begin OnDeath Player

Set EIAncient.StatueKilled to EIAncient.StatueKilled + 1

End

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...