- Joined
- Jan 13, 2008
- Messages
- 13
I was wondering if it is possible to transfer Hero stats into an item thus allowing the item to influence the holder?
This is my idea:
Hero Tower - A Tower that is influenced by the ongoing leveling of the Hero.
Right now I have this trigger set
Ultimately I would like the tower to display "+dmg" in green next to it's original damage when veiwing the stats on the tower. These stats would be altered throughout the game as the hero gains levels and abilities so it would have to be an ongoing system like the trigger I set up that just multiplies a certain attribute.
I would appreciate any feedback or help, thank you.
This is my idea:
Hero Tower - A Tower that is influenced by the ongoing leveling of the Hero.
Right now I have this trigger set
-
Hero Tower Attack
-
Events
- Unit - A unit Is attacked
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Attacking unit)) Equal to Syerian Hero Tower
- HeroRanged Equal to True
-
Then - Actions
- Wait 0.75 seconds
- Unit - Cause (Attacking unit) to damage (Attacked unit), dealing ((Real((Agility of Hero_War (Include bonuses)))) x (Real(2))) damage of attack type Chaos and damage type Normal
- Floating Text - Create floating text that reads (String(((Real((Agility of Hero_War (Include bonuses)))) x (Real(2))))) above (Attacked unit) with Z offset 0.00, using font size 8.00, color (100.00%, 50.00%, 0.00%), and 0.00% transparency
- Set HeroTower_FloatText = (Last created floating text)
- Floating Text - Show HeroTower_FloatText for (All players)
- Floating Text - Set the velocity of HeroTower_FloatText to 64.00 towards 90.00 degrees
- Floating Text - Change HeroTower_FloatText: Disable permanence
- Floating Text - Change the fading age of HeroTower_FloatText to 0.50 seconds
- Floating Text - Change the lifespan of HeroTower_FloatText to 1.00 seconds
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Ultimately I would like the tower to display "+dmg" in green next to it's original damage when veiwing the stats on the tower. These stats would be altered throughout the game as the hero gains levels and abilities so it would have to be an ongoing system like the trigger I set up that just multiplies a certain attribute.
I would appreciate any feedback or help, thank you.