Tom Jones
N/A
- Reaction score
- 437
Documentation (Can be found in the attached map as well):
General:
MUI: Depends on usesage.
GUI/JASS: This one is GUI, a JASS version can be found at wc3campaigns by BladeDK
Leaks: Nope.
Requirements:
The custom abilities Max Life Modifier (A000) and Max Mana Modifier (A001).
The GUI triggers Set Max Hp and Set Max Mana.
The variables Loop_Integer, Max_Hp, Max_Mana, Some_Unit.
Import:
Copy/Paste the abilties to your map.
Copy/Paste the triggers to your map.
Check your variables (Ctrl+x) and check if you got all the needed variables.
How to use:
Set a unit to the Some_Unit, set either Max_Hp or Max_Mana to desired value, and run the respective
trigger.
Triggers:
Notes:
Thought I might as well upload it in one place instead of having it uploaded five different times.
Tom Jones.
General:
MUI: Depends on usesage.
GUI/JASS: This one is GUI, a JASS version can be found at wc3campaigns by BladeDK
Leaks: Nope.
Requirements:
The custom abilities Max Life Modifier (A000) and Max Mana Modifier (A001).
The GUI triggers Set Max Hp and Set Max Mana.
The variables Loop_Integer, Max_Hp, Max_Mana, Some_Unit.
Import:
Copy/Paste the abilties to your map.
Copy/Paste the triggers to your map.
Check your variables (Ctrl+x) and check if you got all the needed variables.
How to use:
Set a unit to the Some_Unit, set either Max_Hp or Max_Mana to desired value, and run the respective
trigger.
Triggers:
Code:
Set Max Hp
Events
Conditions
Actions
Set Max_Hp = (Max_Hp - (Integer((Max life of Some_Unit))))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Max_Hp Greater than 0
Then - Actions
Set Loop_Integer = ((Max_Hp - (Max_Hp mod 100)) / 100)
For each (Integer A) from 1 to Loop_Integer, do (Actions)
Loop - Actions
Unit - Add Max Life Modifier to Some_Unit
Unit - Set level of Max Life Modifier for Some_Unit to 4
Unit - Remove Max Life Modifier from Some_Unit
Set Max_Hp = (Max_Hp mod 100)
Set Loop_Integer = ((Max_Hp - (Max_Hp mod 10)) / 10)
For each (Integer A) from 1 to Loop_Integer, do (Actions)
Loop - Actions
Unit - Add Max Life Modifier to Some_Unit
Unit - Set level of Max Life Modifier for Some_Unit to 3
Unit - Remove Max Life Modifier from Some_Unit
Set Max_Hp = (Max_Hp mod 10)
For each (Integer A) from 1 to Max_Hp, do (Actions)
Loop - Actions
Unit - Add Max Life Modifier to Some_Unit
Unit - Set level of Max Life Modifier for Some_Unit to 2
Unit - Remove Max Life Modifier from Some_Unit
Else - Actions
Set Max_Hp = (0 - Max_Hp)
Set Loop_Integer = ((Max_Hp - (Max_Hp mod 100)) / 100)
For each (Integer A) from 1 to Loop_Integer, do (Actions)
Loop - Actions
Unit - Add Max Life Modifier to Some_Unit
Unit - Set level of Max Life Modifier for Some_Unit to 7
Unit - Remove Max Life Modifier from Some_Unit
Set Max_Hp = (Max_Hp mod 100)
Set Loop_Integer = ((Max_Hp - (Max_Hp mod 10)) / 10)
For each (Integer A) from 1 to Loop_Integer, do (Actions)
Loop - Actions
Unit - Add Max Life Modifier to Some_Unit
Unit - Set level of Max Life Modifier for Some_Unit to 6
Unit - Remove Max Life Modifier from Some_Unit
Set Max_Hp = (Max_Hp mod 10)
For each (Integer A) from 1 to Max_Hp, do (Actions)
Loop - Actions
Unit - Add Max Life Modifier to Some_Unit
Unit - Set level of Max Life Modifier for Some_Unit to 5
Unit - Remove Max Life Modifier from Some_Unit
Code:
Set Max Mana
Events
Conditions
Actions
Set Max_Mana = (Max_Mana - (Integer((Max mana of Some_Unit))))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Max_Mana Greater than 0
Then - Actions
Set Loop_Integer = ((Max_Mana - (Max_Mana mod 100)) / 100)
For each (Integer A) from 1 to Loop_Integer, do (Actions)
Loop - Actions
Unit - Add Max Mana Modifier to Some_Unit
Unit - Set level of Max Mana Modifier for Some_Unit to 4
Unit - Remove Max Mana Modifier from Some_Unit
Set Max_Mana = (Max_Mana mod 100)
Set Loop_Integer = ((Max_Mana - (Max_Mana mod 10)) / 10)
For each (Integer A) from 1 to Loop_Integer, do (Actions)
Loop - Actions
Unit - Add Max Mana Modifier to Some_Unit
Unit - Set level of Max Mana Modifier for Some_Unit to 3
Unit - Remove Max Mana Modifier from Some_Unit
Set Max_Mana = (Max_Mana mod 10)
For each (Integer A) from 1 to Max_Mana, do (Actions)
Loop - Actions
Unit - Add Max Mana Modifier to Some_Unit
Unit - Set level of Max Mana Modifier for Some_Unit to 2
Unit - Remove Max Mana Modifier from Some_Unit
Else - Actions
Set Max_Mana = (0 - Max_Mana)
Set Loop_Integer = ((Max_Mana - (Max_Mana mod 100)) / 100)
For each (Integer A) from 1 to Loop_Integer, do (Actions)
Loop - Actions
Unit - Add Max Mana Modifier to Some_Unit
Unit - Set level of Max Mana Modifier for Some_Unit to 7
Unit - Remove Max Mana Modifier from Some_Unit
Set Max_Mana = (Max_Mana mod 100)
Set Loop_Integer = ((Max_Mana - (Max_Mana mod 10)) / 10)
For each (Integer A) from 1 to Loop_Integer, do (Actions)
Loop - Actions
Unit - Add Max Mana Modifier to Some_Unit
Unit - Set level of Max Mana Modifier for Some_Unit to 6
Unit - Remove Max Mana Modifier from Some_Unit
Set Max_Mana = (Max_Mana mod 10)
For each (Integer A) from 1 to Max_Mana, do (Actions)
Loop - Actions
Unit - Add Max Mana Modifier to Some_Unit
Unit - Set level of Max Mana Modifier for Some_Unit to 5
Unit - Remove Max Mana Modifier from Some_Unit
Thought I might as well upload it in one place instead of having it uploaded five different times.
Tom Jones.