- Joined
- Feb 25, 2009
- Messages
- 38
Okay, so i'm trying to make a custom hero that evolves (using multiple separate heroes) when it reaches max level
but i want the evolved hero to keep all the bonuses it might have gotten from Tomes
Agi/Str/Int is easy enough, but i'm having trouble transferring the Tome of Health effect, or making it stack, to be precise..
I'm making it simple, and using this formula for the tomes:
i.e
A hero has 1000hp. It picks up two Tomes of Health, each giving +50 max hp.
The hero now has 1100 max hp.
It then evolves (gets swapped out with a completely different hero)
How do i get the two tomes transferred over without having to use a trillion triggers?
Note: Yes, i know my triggers are leaky as fuck. I'm not a pro, mkay? ;P
but i want the evolved hero to keep all the bonuses it might have gotten from Tomes
Agi/Str/Int is easy enough, but i'm having trouble transferring the Tome of Health effect, or making it stack, to be precise..
I'm making it simple, and using this formula for the tomes:
-
Stats
-
Events
-
Unit - A unit Acquires an item
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item-type of (Item being manipulated)) Equal to Tome of Strength
-
-
Then - Actions
-
Set str (Real that saves the bonus from any picked up tome) = (str + 1)
-
-
Else - Actions
-
-
-
-
evolve 1
-
Events
-
Game - Slave(A Real that follows the level of the hero) becomes Equal to 10.00
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of Hero) Equal to Stage 1
-
-
Then - Actions
-
Set Slave = 1.00
-
Unit - Replace Stage 1 with a Stage 2 using The old unit's relative life and mana
-
Set Hero = (Last replaced unit)
-
Hero - Set Hero (Unit variable that follows and changes as the hero evolves) Hero-level to 1, Hide level-up graphics
-
Hero - Modify Strength of Hero: Add str
-
Hero - Modify Agility of Hero: Add agi
-
Hero - Modify Intelligence of Hero: Add int
-
-
Else - Actions
-
-
-
i.e
A hero has 1000hp. It picks up two Tomes of Health, each giving +50 max hp.
The hero now has 1100 max hp.
It then evolves (gets swapped out with a completely different hero)
How do i get the two tomes transferred over without having to use a trillion triggers?
Note: Yes, i know my triggers are leaky as fuck. I'm not a pro, mkay? ;P