• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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