- Joined
- Aug 11, 2009
- Messages
- 594
I have a boss that I want up to 5 boulders rolling around the room. However, only the first one spawns. The game message "Boulder spawn" shows up everytime but no missile is created other than first one. Anyone has a suggestion what could cause the issue?
EDIT: Made a region and used it instead of the pre set variable "Out2_BossPoint" as MissileStart and it solved the problem. Maybe the missile system destroy the variable or something because I used the same variable (Out2_BossPoint) to respawn the Boss, and he didnt after spawning one boulder.
But yeah, now everything works xD
-
OP2 Boss Spell
-
Events
- Game - DamageEvent becomes Equal to 1.00
-
Conditions
-
And - All (Conditions) are true
-
Conditions
- IsDamageAttack Equal to True
- (Unit-type of DamageEventSource) Equal to |cffff0000Mountain Breaker|r (OP 2)
-
Conditions
-
And - All (Conditions) are true
-
Actions
- Unit - Set mana of DamageEventSource to ((Mana of DamageEventSource) + 200.00)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Mana of DamageEventSource) Equal to 1000.00
-
Then - Actions
- Unit - Order DamageEventSource to Orc Tauren Chieftain - War Stomp.
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Out2_BoulderCount Less than 5
-
Then - Actions
- Set VariableSet Out2_BoulderCount = (Out2_BoulderCount + 1)
- Set VariableSet Out2_Randomizer = (Random integer number between 1 and 2)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Out2_Randomizer Equal to 1
-
Then - Actions
- Game - Display to (All players) the text: Boulder spawn
- Set VariableSet MissileStart = Out2_BossPoint
- Set VariableSet MissileStartZ = 0.00
- Set VariableSet MissileFinish = (Random point in OP2 Boulder West <gen>)
- Set VariableSet MissileFinishZ = 0.00
- Set VariableSet MissileModel = Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
- Set VariableSet MissileSpeed = 200.00
- Set VariableSet MissileSource = Out2_Boss
- Set VariableSet MissileOwner = Neutral Hostile
- Set VariableSet MissileCollision = 200.00
- Set VariableSet MissileScale = 6.00
- Set VariableSet Missile_onHit = OP2 Boulder onHit <gen>
- Set VariableSet Missile_onFinish = OP2 Boulder onFinish <gen>
- Trigger - Run MissileCreate <gen> (ignoring conditions)
-
Else - Actions
- Game - Display to (All players) the text: Boulder spawn
- Set VariableSet MissileStart = Out2_BossPoint
- Set VariableSet MissileStartZ = 0.00
- Set VariableSet MissileFinish = (Random point in OP2 Boulder East <gen>)
- Set VariableSet MissileFinishZ = 0.00
- Set VariableSet MissileModel = Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
- Set VariableSet MissileSpeed = 200.00
- Set VariableSet MissileSource = Out2_Boss
- Set VariableSet MissileOwner = Neutral Hostile
- Set VariableSet MissileCollision = 200.00
- Set VariableSet MissileScale = 6.00
- Set VariableSet Missile_onHit = OP2 Boulder onHit <gen>
- Set VariableSet Missile_onFinish = OP2 Boulder onFinish <gen>
- Trigger - Run MissileCreate <gen> (ignoring conditions)
-
If - Conditions
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
-
Events
EDIT: Made a region and used it instead of the pre set variable "Out2_BossPoint" as MissileStart and it solved the problem. Maybe the missile system destroy the variable or something because I used the same variable (Out2_BossPoint) to respawn the Boss, and he didnt after spawning one boulder.
But yeah, now everything works xD
Last edited: