- Joined
- Jun 23, 2009
- Messages
- 297
I decided to make a personalized pot, but I couldnt find anything in a trigger that healed 1000 hp for a especific unit (if you know, please let me know)
So Ive decided to learn JASS, and I got this far:
But that would only heal all the HP of a unit, wich I dont want...
What do I do next?
Thnks
So Ive decided to learn JASS, and I got this far:
JASS:
//Start
Function Potion takes unit u returns noting
local unit u
loop
set u = Player(1)
exitwhen u == null
call unitstate(u, UNIT_STATE_LIFE, GetUnitState(u, UNIT_STATE_MAX_LIFE))
endloop
endfunction
//End
But that would only heal all the HP of a unit, wich I dont want...
What do I do next?
Thnks
