• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Issues With Transformation Spell

Status
Not open for further replies.
Level 2
Joined
Aug 11, 2007
Messages
12
Alright...I'm making a hero defense map and one of the heroes is Sora. From KH2. Anyway, I'm trying to get a couple of his spells to work, which are his drive forms in KH2. Valor form and Master form both crash the game when they expire.

I know for a fact that this section of code does something when the timer runs out, as without it, everything works fine. This section here only applies to Master, but I think the same bug is in Master that is in Valor.

Any suggestions would be appreciated. =) Other then telling me to do JASS. >.<

Here is my map. I'm sure you will need to look at the other triggers that go with this, so....ya...... Sora's triggers are in the second to last category.

The reason I don't want to paste my trigger here is cause it's sooooo long. =/ :con:

  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • SoraCombo[(Player number of (Triggering player))] Equal to 4
      • SoraMaster[(Player number of (Triggering player))] Not equal to No unit <<<<<<<<I know this isn't the issue, game crashed without this.
    • Then - Actions
      • Set SoraCombo[(Player number of (Triggering player))] = (SoraCombo[(Player number of (Triggering player))] + 50)
      • Animation - Play SoraMaster[(Player number of (Triggering player))]'s slam animation
      • Unit - Make SoraMaster[(Player number of (Triggering player))] Invulnerable
      • Wait 0.20 seconds
      • Animation - Change SoraMaster[(Player number of (Triggering player))]'s animation speed to 0.10% of its original speed
      • Unit - Pause SoraMaster[(Player number of (Triggering player))]
      • Trigger - Turn on MasterFormFinalAttack <gen> <<<<<<<Ignore this, the game crashed without this.
      • Unit - Make SoraMaster[(Player number of (Triggering player))] Vulnerable
    • Else - Actions
Any ideas anyone? :cool:
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
Use Jass doh !

Anyway back on topic, I don't see anything here that can bug the game beside the fact that you told him to do his "slam" animation.
Are you sure he has one ?
Couldn't see anything else so if this doesn't help you, please post all the trigger.
 
Level 2
Joined
Aug 11, 2007
Messages
12
NEBAAA!!!! =P

/emo I just realized that I uploaded a slightly old version..and deleted my newest version with a new and slightly done hero. Argggg...anyway....

He does have a slam animation. He uses the blademaster model, since I haven't found/gotten someone to make a custom model yet.

The whole trigger is epic in length, but I'll post it anyway. =P

This is the transformation trigger. AKA, it's what happens when I use the drive form spells.

  • Form Spell
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Ability being cast) Equal to Valor Form
          • (Ability being cast) Equal to Wisdom Form
          • (Ability being cast) Equal to Master Form
    • Actions
      • Set SoraItemCustomValue[1] = (Custom value of (Item carried by (Triggering unit) of type Valor Form Experience))
      • Set SoraItemCustomValue[2] = (Custom value of (Item carried by (Triggering unit) of type Wisdom Form Experience))
      • Set SoraItemCustomValue[3] = (Custom value of (Item carried by (Triggering unit) of type Master Form Experience))
      • Set SoraItemCustomValue[4] = (Custom value of (Item carried by (Triggering unit) of type Final Form Experience))
      • Hero - Drop the item from slot 5 of (Triggering unit)
      • Set SoraDroppedItem[1] = (Last dropped item)
      • Hero - Drop the item from slot 6 of (Triggering unit)
      • Set SoraDroppedItem[2] = (Last dropped item)
      • Set SoraLoc = (Position of (Triggering unit))
      • Unit - Set the custom value of (Triggering unit) to (Player number of (Owner of (Triggering unit)))
      • Unit - Change ownership of (Triggering unit) to Player 12 (Brown) and Change color
      • Unit - Move (Triggering unit) instantly to (Center of Pause Hero Zone <gen>)
      • Unit - Pause (Triggering unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to Valor Form
        • Then - Actions
          • Unit - Create 1 Valor Form for (Player((Custom value of (Triggering unit)))) at SoraLoc facing Default building facing degrees
          • Set SoraValor[(Player number of (Player((Custom value of (Triggering unit)))))] = (Last created unit)
          • Trigger - Turn off FormHitsLevel5 <gen>
          • Hero - Set (Last created unit) experience to SoraItemCustomValue[1], Hide level-up graphics
          • Trigger - Turn on FormHitsLevel5 <gen>
          • Special Effect - Create a special effect at (Position of (Last created unit)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
          • Special Effect - Destroy (Last created special effect)
          • Special Effect - Create a special effect at (Position of (Last created unit)) using Abilities\Spells\Human\MarkOfChaos\MarkOfChaosTarget.mdl
          • Special Effect - Destroy (Last created special effect)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Ability being cast) Equal to Wisdom Form
            • Then - Actions
              • Unit - Create 1 Wisdom Form for (Player((Custom value of (Triggering unit)))) at SoraLoc facing Default building facing degrees
              • Set SoraWisdom[(Player number of (Player((Custom value of (Triggering unit)))))] = (Last created unit)
              • Trigger - Turn off FormHitsLevel5 <gen>
              • Hero - Set (Last created unit) experience to SoraItemCustomValue[2], Hide level-up graphics
              • Trigger - Turn on FormHitsLevel5 <gen>
              • Special Effect - Create a special effect at (Position of (Last created unit)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
              • Special Effect - Destroy (Last created special effect)
              • Special Effect - Create a special effect at (Position of (Last created unit)) using Abilities\Spells\Other\Charm\CharmTarget.mdl
              • Special Effect - Destroy (Last created special effect)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Ability being cast) Equal to Master Form
                • Then - Actions
                  • Unit - Create 1 Master Form for (Player((Custom value of (Triggering unit)))) at SoraLoc facing Default building facing degrees
                  • Set SoraMaster[(Player number of (Player((Custom value of (Triggering unit)))))] = (Last created unit)
                  • Trigger - Turn off FormHitsLevel5 <gen>
                  • Hero - Set (Last created unit) experience to SoraItemCustomValue[3], Hide level-up graphics
                  • Trigger - Turn on FormHitsLevel5 <gen>
                  • Special Effect - Create a special effect at (Position of (Last created unit)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
                  • Special Effect - Destroy (Last created special effect)
                  • Special Effect - Create a special effect at (Position of (Last created unit)) using Abilities\Spells\Orc\Disenchant\DisenchantSpecialArt.mdl
                  • Special Effect - Destroy (Last created special effect)
                • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Hero level of (Triggering unit)) Greater than or equal to 15
          • (Hero level of (Triggering unit)) Less than 30
        • Then - Actions
          • Unit - Set level of Fire for (Last created unit) to 2
          • Unit - Set level of Blizzard for (Last created unit) to 2
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Hero level of (Triggering unit)) Equal to 30
            • Then - Actions
              • Unit - Set level of Fire for (Last created unit) to 3
              • Unit - Set level of Blizzard for (Last created unit) to 3
            • Else - Actions
      • Set SoraForm[(Player number of (Player((Custom value of (Triggering unit)))))] = (Last created unit)
      • Hero - Give SoraDroppedItem[1] to (Last created unit)
      • Hero - Give SoraDroppedItem[2] to (Last created unit)
      • Selection - Select (Last created unit) for (Player((Custom value of (Triggering unit))))
      • Hero - Make (Player((Custom value of (Triggering unit)))) Heroes gain 0.00% experience from future kills
      • Hero - Create Valor Form Experience and give it to (Last created unit)
      • Item - Set the custom value of (Last created item) to SoraItemCustomValue[1]
      • Hero - Create Wisdom Form Experience and give it to (Last created unit)
      • Item - Set the custom value of (Last created item) to SoraItemCustomValue[2]
      • Hero - Create Master Form Experience and give it to (Last created unit)
      • Item - Set the custom value of (Last created item) to SoraItemCustomValue[3]
      • Hero - Create Final Form Experience and give it to (Last created unit)
      • Item - Set the custom value of (Last created item) to SoraItemCustomValue[4]
      • Countdown Timer - Start SoraFormDuration as a One-shot timer that will expire in 120.00 seconds
      • Countdown Timer - Create a timer window for SoraFormDuration with title Drive Form ends in....
      • Set SoraFormDurationWindow[(Custom value of (Triggering unit))] = (Last created timer window)
      • Countdown Timer - Hide SoraFormDurationWindow[(Custom value of (Triggering unit))]
      • Countdown Timer - Show SoraFormDurationWindow[(Custom value of (Triggering unit))] for (Player((Custom value of (Triggering unit))))
      • Wait 120.00 seconds
      • Countdown Timer - Destroy SoraFormDurationWindow[(Custom value of (Triggering unit))]
      • Unit - Change ownership of (Triggering unit) to (Player((Custom value of (Triggering unit)))) and Change color
      • Set SoraItemCustomValue[1] = (Custom value of (Item carried by SoraForm[(Player number of (Owner of (Triggering unit)))] of type Valor Form Experience))
      • Set SoraItemCustomValue[2] = (Custom value of (Item carried by SoraForm[(Player number of (Owner of (Triggering unit)))] of type Wisdom Form Experience))
      • Set SoraItemCustomValue[3] = (Custom value of (Item carried by SoraForm[(Player number of (Owner of (Triggering unit)))] of type Master Form Experience))
      • Set SoraItemCustomValue[4] = (Custom value of (Item carried by SoraForm[(Player number of (Owner of (Triggering unit)))] of type Final Form Experience))
      • Hero - Drop the item from slot 5 of SoraForm[(Player number of (Owner of (Triggering unit)))]
      • Set SoraDroppedItem[1] = (Last dropped item)
      • Hero - Drop the item from slot 6 of SoraForm[(Player number of (Owner of (Triggering unit)))]
      • Set SoraDroppedItem[2] = (Last dropped item)
      • Set SoraLoc = (Position of SoraForm[(Player number of (Owner of (Triggering unit)))])
      • Set SoraValor[(Player number of (Owner of (Triggering unit)))] = No unit
      • Set SoraWisdom[(Player number of (Owner of (Triggering unit)))] = No unit
      • Set SoraMaster[(Player number of (Owner of (Triggering unit)))] = No unit
      • Unit - Remove SoraForm[(Player number of (Owner of (Triggering unit)))] from the game
      • Set SoraForm[(Player number of (Owner of (Triggering unit)))] = No unit
      • Unit - Move (Triggering unit) instantly to SoraLoc
      • Unit - Unpause (Triggering unit)
      • Hero - Make (Owner of (Triggering unit)) Heroes gain 100.00% experience from future kills
      • Item - Set the custom value of (Item carried by (Triggering unit) of type Valor Form Experience) to SoraItemCustomValue[1]
      • Item - Set the custom value of (Item carried by (Triggering unit) of type Wisdom Form Experience) to SoraItemCustomValue[2]
      • Item - Set the custom value of (Item carried by (Triggering unit) of type Master Form Experience) to SoraItemCustomValue[3]
      • Item - Set the custom value of (Item carried by (Triggering unit) of type Final Form Experience) to SoraItemCustomValue[4]
      • Hero - Give SoraDroppedItem[1] to (Triggering unit)
      • Hero - Give SoraDroppedItem[2] to (Triggering unit)
      • Selection - Select (Triggering unit) for (Owner of (Triggering unit))
      • Player - Disable Valor Form for (Owner of (Triggering unit))
      • Player - Disable Wisdom Form for (Owner of (Triggering unit))
      • Player - Disable Master Form for (Owner of (Triggering unit))
      • Countdown Timer - Start SoraFormRecast as a One-shot timer that will expire in 180.00 seconds
      • Countdown Timer - Create a timer window for SoraFormRecast with title Drive recast in...
      • Set SoraFormRecastWindow[(Player number of (Owner of (Triggering unit)))] = (Last created timer window)
      • Countdown Timer - Hide SoraFormRecastWindow[(Player number of (Owner of (Triggering unit)))]
      • Countdown Timer - Show SoraFormRecastWindow[(Player number of (Owner of (Triggering unit)))] for (Owner of (Triggering unit))
      • Wait 180.00 seconds
      • Countdown Timer - Destroy SoraFormRecastWindow[(Player number of (Owner of (Triggering unit)))]
      • Player - Enable Valor Form for (Owner of (Triggering unit))
      • Player - Enable Wisdom Form for (Owner of (Triggering unit))
      • Player - Enable Master Form for (Owner of (Triggering unit))

This trigger is the attack trigger, of which that small bit in my first post is a part of.
  • Attack and XP Gain
    • Events
      • Player - Player 1 (Red) Presses the Up Arrow key
      • Player - Player 2 (Blue) Presses the Up Arrow key
      • Player - Player 3 (Teal) Presses the Up Arrow key
      • Player - Player 4 (Purple) Presses the Up Arrow key
      • Player - Player 5 (Yellow) Presses the Up Arrow key
      • Player - Player 6 (Orange) Presses the Up Arrow key
      • Player - Player 7 (Green) Presses the Up Arrow key
      • Player - Player 8 (Pink) Presses the Up Arrow key
      • Player - Player 9 (Gray) Presses the Up Arrow key
      • Player - Player 10 (Light Blue) Presses the Up Arrow key
    • Conditions
      • ((Triggering player) is in SoraPGroup) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • SoraCombo[(Player number of (Triggering player))] Equal to 0
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • SoraValor[(Player number of (Triggering player))] Not equal to No unit
              • (Hero level of SoraValor[(Player number of (Triggering player))]) Less than 5
            • Then - Actions
              • For each (Integer A) from 1 to (Number of units in (Units in (Region centered at (Position of SoraValor[(Player number of (Triggering player))]) with size (400.00, 400.00)) owned by Player 12 (Brown))), do (Actions)
                • Loop - Actions
                  • Hero - Add 4 experience to SoraValor[(Player number of (Triggering player))], Show level-up graphics
                  • Item - Set the custom value of (Item carried by SoraValor[(Player number of (Triggering player))] of type Valor Form Experience) to ((Custom value of (Item carried by SoraValor[(Player number of (Triggering player))] of type Valor Form Experience)) + 4)
            • Else - Actions
          • Set SoraCombo[(Player number of (Triggering player))] = (SoraCombo[(Player number of (Triggering player))] + 50)
          • Animation - Play Sora[(Player number of (Triggering player))]'s attack animation
          • Animation - Play SoraValor[(Player number of (Triggering player))]'s attack animation
          • Animation - Play SoraMaster[(Player number of (Triggering player))]'s attack animation
          • Unit Group - Pick every unit in (Units in (Region centered at (Position of Sora[(Player number of (Triggering player))]) with size (400.00, 400.00)) owned by Player 12 (Brown)) and do (Unit - Cause Sora[(Player number of (Triggering player))] to damage (Picked unit), dealing (50.00 x ((Real((Hero level of Sora[(Player number of (Triggering player))]))) x (1.50 x (Real((Agility of Sora[(Player number of (Triggering player))] (Include bonuse
          • Unit Group - Pick every unit in (Units in (Region centered at (Position of SoraValor[(Player number of (Triggering player))]) with size (400.00, 400.00)) owned by Player 12 (Brown)) and do (Unit - Cause SoraValor[(Player number of (Triggering player))] to damage (Picked unit), dealing (100.00 x ((Real((Hero level of SoraValor[(Player number of (Triggering player))]))) x (1.50 x (Real((Agility of SoraValor[(Player number of (Triggering player))]
          • Unit Group - Pick every unit in (Units in (Region centered at (Position of SoraMaster[(Player number of (Triggering player))]) with size (400.00, 400.00)) owned by Player 12 (Brown)) and do (Unit - Cause SoraMaster[(Player number of (Triggering player))] to damage (Picked unit), dealing (150.00 x ((Real((Hero level of SoraMaster[(Player number of (Triggering player))]))) x (1.75 x (Real((Agility of SoraMaster[(Player number of (Triggering player
          • Wait 0.45 seconds
          • Set SoraCombo[(Player number of (Triggering player))] = (SoraCombo[(Player number of (Triggering player))] - 49)
          • Wait 2.00 seconds
          • If (SoraCombo[(Player number of (Triggering player))] Less than 4) then do (Set SoraCombo[(Player number of (Triggering player))] = 0) else do (Do nothing)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • SoraCombo[(Player number of (Triggering player))] Equal to 1
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • SoraValor[(Player number of (Triggering player))] Not equal to No unit
                  • (Hero level of SoraValor[(Player number of (Triggering player))]) Less than 5
                • Then - Actions
                  • For each (Integer A) from 1 to (Number of units in (Units in (Region centered at (Position of SoraValor[(Player number of (Triggering player))]) with size (400.00, 400.00)) owned by Player 12 (Brown))), do (Actions)
                    • Loop - Actions
                      • Hero - Add 4 experience to SoraValor[(Player number of (Triggering player))], Show level-up graphics
                      • Item - Set the custom value of (Item carried by SoraValor[(Player number of (Triggering player))] of type Valor Form Experience) to ((Custom value of (Item carried by SoraValor[(Player number of (Triggering player))] of type Valor Form Experience)) + 4)
                • Else - Actions
              • Set SoraCombo[(Player number of (Triggering player))] = (SoraCombo[(Player number of (Triggering player))] + 50)
              • Animation - Play Sora[(Player number of (Triggering player))]'s attack animation
              • Animation - Play SoraValor[(Player number of (Triggering player))]'s attack animation
              • Animation - Play SoraMaster[(Player number of (Triggering player))]'s attack animation
              • Unit Group - Pick every unit in (Units in (Region centered at (Position of Sora[(Player number of (Triggering player))]) with size (400.00, 400.00)) owned by Player 12 (Brown)) and do (Unit - Cause Sora[(Player number of (Triggering player))] to damage (Picked unit), dealing (100.00 x ((Real((Hero level of Sora[(Player number of (Triggering player))]))) x (2.00 x (Real((Agility of Sora[(Player number of (Triggering player))] (Include bonus
              • Unit Group - Pick every unit in (Units in (Region centered at (Position of SoraValor[(Player number of (Triggering player))]) with size (400.00, 400.00)) owned by Player 12 (Brown)) and do (Unit - Cause SoraValor[(Player number of (Triggering player))] to damage (Picked unit), dealing (175.00 x ((Real((Hero level of SoraValor[(Player number of (Triggering player))]))) x (2.00 x (Real((Agility of SoraValor[(Player number of (Triggering player))]
              • Unit Group - Pick every unit in (Units in (Region centered at (Position of SoraMaster[(Player number of (Triggering player))]) with size (400.00, 400.00)) owned by Player 12 (Brown)) and do (Unit - Cause SoraMaster[(Player number of (Triggering player))] to damage (Picked unit), dealing (200.00 x ((Real((Hero level of SoraMaster[(Player number of (Triggering player))]))) x (2.25 x (Real((Agility of SoraMaster[(Player number of (Triggering player
              • Wait 0.45 seconds
              • Set SoraCombo[(Player number of (Triggering player))] = (SoraCombo[(Player number of (Triggering player))] - 49)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • SoraCombo[(Player number of (Triggering player))] Equal to 2
                • Then - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • SoraValor[(Player number of (Triggering player))] Not equal to No unit
                      • (Hero level of SoraValor[(Player number of (Triggering player))]) Less than 5
                    • Then - Actions
                      • For each (Integer A) from 1 to (Number of units in (Units in (Region centered at (Position of SoraValor[(Player number of (Triggering player))]) with size (400.00, 400.00)) owned by Player 12 (Brown))), do (Actions)
                        • Loop - Actions
                          • Hero - Add 4 experience to SoraValor[(Player number of (Triggering player))], Show level-up graphics
                          • Item - Set the custom value of (Item carried by SoraValor[(Player number of (Triggering player))] of type Valor Form Experience) to ((Custom value of (Item carried by SoraValor[(Player number of (Triggering player))] of type Valor Form Experience)) + 4)
                    • Else - Actions
                  • Set SoraCombo[(Player number of (Triggering player))] = (SoraCombo[(Player number of (Triggering player))] + 50)
                  • Animation - Play Sora[(Player number of (Triggering player))]'s attack animation
                  • Animation - Play SoraValor[(Player number of (Triggering player))]'s attack animation
                  • Animation - Play SoraMaster[(Player number of (Triggering player))]'s attack animation
                  • Unit Group - Pick every unit in (Units in (Region centered at (Position of Sora[(Player number of (Triggering player))]) with size (400.00, 400.00)) owned by Player 12 (Brown)) and do (Unit - Cause Sora[(Player number of (Triggering player))] to damage (Picked unit), dealing (150.00 x ((Real((Hero level of Sora[(Player number of (Triggering player))]))) x (2.50 x (Real((Agility of Sora[(Player number of (Triggering player))] (Include bonus
                  • Unit Group - Pick every unit in (Units in (Region centered at (Position of SoraValor[(Player number of (Triggering player))]) with size (400.00, 400.00)) owned by Player 12 (Brown)) and do (Unit - Cause SoraValor[(Player number of (Triggering player))] to damage (Picked unit), dealing (250.00 x ((Real((Hero level of SoraValor[(Player number of (Triggering player))]))) x (2.25 x (Real((Agility of SoraValor[(Player number of (Triggering player))]
                  • Unit Group - Pick every unit in (Units in (Region centered at (Position of SoraMaster[(Player number of (Triggering player))]) with size (400.00, 400.00)) owned by Player 12 (Brown)) and do (Unit - Cause SoraMaster[(Player number of (Triggering player))] to damage (Picked unit), dealing (250.00 x ((Real((Hero level of SoraMaster[(Player number of (Triggering player))]))) x (2.75 x (Real((Agility of SoraMaster[(Player number of (Triggering player
                  • Wait 0.45 seconds
                  • Set SoraCombo[(Player number of (Triggering player))] = (SoraCombo[(Player number of (Triggering player))] - 49)
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • SoraCombo[(Player number of (Triggering player))] Equal to 3
                    • Then - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • SoraValor[(Player number of (Triggering player))] Not equal to No unit
                          • (Hero level of SoraValor[(Player number of (Triggering player))]) Less than 5
                        • Then - Actions
                          • For each (Integer A) from 1 to (Number of units in (Units in (Region centered at (Position of SoraValor[(Player number of (Triggering player))]) with size (400.00, 400.00)) owned by Player 12 (Brown))), do (Actions)
                            • Loop - Actions
                              • Hero - Add 4 experience to SoraValor[(Player number of (Triggering player))], Show level-up graphics
                              • Item - Set the custom value of (Item carried by SoraValor[(Player number of (Triggering player))] of type Valor Form Experience) to ((Custom value of (Item carried by SoraValor[(Player number of (Triggering player))] of type Valor Form Experience)) + 4)
                        • Else - Actions
                      • Set SoraCombo[(Player number of (Triggering player))] = (SoraCombo[(Player number of (Triggering player))] + 50)
                      • Animation - Play Sora[(Player number of (Triggering player))]'s slam animation
                      • Animation - Play SoraValor[(Player number of (Triggering player))]'s slam animation
                      • Animation - Play SoraMaster[(Player number of (Triggering player))]'s slam animation
                      • Unit Group - Pick every unit in (Units in (Region centered at (Position of Sora[(Player number of (Triggering player))]) with size (400.00, 400.00)) owned by Player 12 (Brown)) and do (Unit - Cause Sora[(Player number of (Triggering player))] to damage (Picked unit), dealing (200.00 x ((Real((Hero level of Sora[(Player number of (Triggering player))]))) x (3.00 x (Real((Agility of Sora[(Player number of (Triggering player))] (Include bonus
                      • Unit Group - Pick every unit in (Units in (Region centered at (Position of SoraValor[(Player number of (Triggering player))]) with size (400.00, 400.00)) owned by Player 12 (Brown)) and do (Unit - Cause SoraValor[(Player number of (Triggering player))] to damage (Picked unit), dealing (300.00 x ((Real((Hero level of SoraValor[(Player number of (Triggering player))]))) x (2.75 x (Real((Agility of SoraValor[(Player number of (Triggering player))]
                      • Unit Group - Pick every unit in (Units in (Region centered at (Position of SoraMaster[(Player number of (Triggering player))]) with size (400.00, 400.00)) owned by Player 12 (Brown)) and do (Unit - Cause SoraMaster[(Player number of (Triggering player))] to damage (Picked unit), dealing (350.00 x ((Real((Hero level of SoraMaster[(Player number of (Triggering player))]))) x (3.25 x (Real((Agility of SoraMaster[(Player number of (Triggering player
                      • Special Effect - Create a special effect at (Position of Sora[(Player number of (Triggering player))]) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
                      • Special Effect - Destroy (Last created special effect)
                      • Special Effect - Create a special effect at (Position of SoraValor[(Player number of (Triggering player))]) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
                      • Special Effect - Destroy (Last created special effect)
                      • Wait 0.45 seconds
                      • Set SoraCombo[(Player number of (Triggering player))] = (SoraCombo[(Player number of (Triggering player))] - 49)
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • SoraValor[(Player number of (Triggering player))] Not equal to No unit
                        • Then - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • SoraValor[(Player number of (Triggering player))] Not equal to No unit
                              • (Hero level of SoraValor[(Player number of (Triggering player))]) Less than 5
                            • Then - Actions
                              • For each (Integer A) from 1 to (Number of units in (Units in (Region centered at (Position of SoraValor[(Player number of (Triggering player))]) with size (400.00, 400.00)) owned by Player 12 (Brown))), do (Actions)
                                • Loop - Actions
                                  • Hero - Add 4 experience to SoraValor[(Player number of (Triggering player))], Show level-up graphics
                                  • Item - Set the custom value of (Item carried by SoraValor[(Player number of (Triggering player))] of type Valor Form Experience) to ((Custom value of (Item carried by SoraValor[(Player number of (Triggering player))] of type Valor Form Experience)) + 4)
                            • Else - Actions
                          • Animation - Play SoraValor[(Player number of (Triggering player))]'s slam animation
                          • Unit Group - Pick every unit in (Units in (Region centered at (Position of SoraValor[(Player number of (Triggering player))]) with size (400.00, 400.00)) owned by Player 12 (Brown)) and do (Unit - Cause SoraValor[(Player number of (Triggering player))] to damage (Picked unit), dealing (400.00 x ((Real((Hero level of SoraValor[(Player number of (Triggering player))]))) x (3.25 x (Real((Agility of SoraValor[(Player number of (Triggering player))]
                          • For each (Integer A) from 1 to 6, do (Actions)
                            • Loop - Actions
                              • Special Effect - Create a special effect at ((Position of SoraValor[(Player number of (Triggering player))]) offset by 200.00 towards (100.00 x (Real((Integer A)))) degrees) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
                              • Special Effect - Destroy (Last created special effect)
                          • Wait 0.45 seconds
                        • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • SoraMaster[(Player number of (Triggering player))] Equal to No unit
                        • Then - Actions
                          • Wait 0.45 seconds
                          • Set SoraCombo[(Player number of (Triggering player))] = 0
                        • Else - Actions
                          • Wait 4.50 seconds
                          • Set SoraCombo[(Player number of (Triggering player))] = 0
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • SoraCombo[(Player number of (Triggering player))] Equal to 4
                          • SoraMaster[(Player number of (Triggering player))] Not equal to No unit
                        • Then - Actions
                          • Set SoraCombo[(Player number of (Triggering player))] = (SoraCombo[(Player number of (Triggering player))] + 50)
                          • Animation - Play SoraMaster[(Player number of (Triggering player))]'s slam animation
                          • Unit - Make SoraMaster[(Player number of (Triggering player))] Invulnerable
                          • Wait 0.20 seconds
                          • Animation - Change SoraMaster[(Player number of (Triggering player))]'s animation speed to 0.10% of its original speed
                          • Unit - Pause SoraMaster[(Player number of (Triggering player))]
                          • Trigger - Turn on MasterFormFinalAttack <gen>
                          • Unit - Make SoraMaster[(Player number of (Triggering player))] Vulnerable
                        • Else - Actions
 
Last edited:
Level 2
Joined
Aug 11, 2007
Messages
12
Hehe.

That's why I didn't want to post both of those triggers. It would probably be easiest to understand and avoid pain if you opened the map. Not sure why, but maybe...? :eekani:
 
Status
Not open for further replies.
Top