Azrooh
New Member
- Reaction score
- 5
So I've been trying to find a way to add (or subtract) these values when red uses an ability on a unit:
Attack Speed
Hitpoints Regen
Mana Regen
Mana
Hitpoints
Damage
They work off a real value that changes when red types a code.
(-hp xxxx, -damage xxxx, etc)
Variable setup trigger:
How it would work:
Red types -hp 1000
Red casts 'Modify Hitpoints [D]' on a unit.
The target of the ability gains (or has their hitpoints set to) 1000 MAXIMUM hitpoints.
It would go the same for damage, mana, etc.
Attack Speed
Hitpoints Regen
Mana Regen
Mana
Hitpoints
Damage
They work off a real value that changes when red types a code.
(-hp xxxx, -damage xxxx, etc)
Trigger:
- Hitpoints
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Modify Hitpoints [D]
- Actions
- --Unsure--
- Events
Variable setup trigger:
Trigger:
- Set Hitpoints
- Events
- Player - Player 1 (Red) types a chat message containing -hp as A substring
- Conditions
- (Substring((Entered chat string), 1, 3)) Equal to -hp
- (Substring((Entered chat string), 1, 8)) Not equal to -hpregen
- Actions
- Set IncreaseHitpoints = (Real((Substring((Entered chat string), 5, 8))))
- Events
How it would work:
Red types -hp 1000
Red casts 'Modify Hitpoints [D]' on a unit.
The target of the ability gains (or has their hitpoints set to) 1000 MAXIMUM hitpoints.
It would go the same for damage, mana, etc.