• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Evolution Pet Trigger

Status
Not open for further replies.
Level 4
Joined
Nov 25, 2010
Messages
59
Hello again guys, please help me... I want to create a rpg with pet system. It begin with egg. The egg is a hero and when the egg is level 10, it has 70% chance to evolve into a phoenix and 30% chance to evolve into a dragon. I think it will be easier when we use unit - replace a unit.

And then let say he evolve into a phoenix, i want him to evolve again into a greater phoenix.. Can you make the trigger??

Credit and rep ofcourse :thumbs_up::thumbs_up::grin:
 
Level 5
Joined
Feb 21, 2009
Messages
136
  • Evolve
    • Events
      • Unit - A unit Gains a level
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Hero level of (Triggering unit)) Equal to 10
          • (Unit-type of (Triggering unit)) Equal to Egg
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random integer number between 1 and 100) Less than or equal to 30
            • Then - Actions
              • Unit - Replace (Triggering unit) with a Dragon using The old unit's relative life and mana
            • Else - Actions
              • Unit - Replace (Triggering unit) with a Phoenix using The old unit's relative life and mana
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Hero level of (Triggering unit)) Equal to 15
              • (Unit-type of (Triggering unit)) Equal to Phoenix
            • Then - Actions
              • Unit - Replace (Triggering unit) with a Greater Phoenix using The old unit's relative life and mana
            • Else - Actions
              • If - Conditions
                • (Hero level of (Triggering unit)) Equal to 15
                • (Unit-type of (Triggering unit)) Equal to Dragon
              • Then - Actions
                • Unit - Replace (Triggering unit) with a Fire Dragon using The old unit's relative life and mana
              • Else - Actions
 
Last edited:
Level 4
Joined
Nov 25, 2010
Messages
59
cool .. i love you... hahaha
but what if the eggs become the dragon, should i add action on the bottom of your trigger at the Else - Actions with

If All Condition are True
Condition : Hero level equal to 15
Equal to Dragon

Then Actions
Unit - Replace Triggering unit with a Fire Dragon

can i ? or it will ruined the trigger?
 
Status
Not open for further replies.
Top