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!
I'm working on a RPG, and I need it so that when the hero walks into the circle of power with a certain item at level 10, it will change to a different hero. Thank you in advance
(Hero level of (Triggering unit)) Greater than or equal to 10
((Triggering unit) has an item of type ITEM_TYPE) Equal to True
(Unit-type of (Triggering unit)) Equal to HERO_TYPE
Actions
Set TempLoc = (Position of (Triggering unit))
Set TempExp = (Hero experience of (Triggering unit))
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item carried by (Triggering unit) in slot (Integer A))) Not equal to ITEM_TYPE
Then - Actions
Set TempItem[(Integer A)] = (Item-type of (Item carried by (Triggering unit) in slot (Integer A)))
Else - Actions
Unit - Remove (Triggering unit) from the game
Unit - Create 1 CHANGE_TYPE for (Owner of (Triggering unit)) at TempLoc facing 0.00 degrees
Set Hero[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
Hero - Set (Last created unit) experience to TempExp, Hide level-up graphics
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
Hero - Create TempItem[(Integer A)] and give it to (Last created unit)
Selection - Select (Last created unit) for (Owner of (Triggering unit))
Custom script: call RemoveLocation(udg_TempLoc)
HERO_TYPE is the hero type of the first hero (the one that walks into the circle).
ITEM_TYPE is the item type of the item required to... evolve, or whatever.
CHANGE_TYPE is the hero type of the final hero (the evolution).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.