got it
call SetHeroStr(d.attacker, R2I(d.str * 1.15), false) Increases max hp and will increase max healing value Im right?
edit didnt saw earlier post XD
Do the maths before calling and see if it works
local real healing = GetUnitState(d.attacker, UNIT_STATE_MAX_LIFE) * Heal())
call BJDebugMsg(R2S(healing )
call SetUnitState(d.attacker, UNIT_STATE_LIFE, GetUnitState(d.attacker, UNIT_STATE_LIFE) + healing )
add to your trigger Dialog - Clear Dialog_Horde
SHOW IN THE END that's the problem, you have in begining, so it won't show button
Dialog Horde
Events
Time - Elapsed game time is 2.00 seconds
Conditions
Actions
Player Group - Pick every player...
check this "http://world-editor-tutorials.thehelper.net/dialogs.php"
edit:
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Dialog - Clear myDialog
Dialog - Change the title of myDialog to "Some text"
Dialog - Create a dialog button for myDialog labeled "Text to...
Give a ability to to kill the creatures in range (big range) of the fountain like a aoe (give a BIG cd, or cd+gold cost), if the fountain (give fountain low hp so mobs can kill it easly) is dead = no aoe.
Time - Every 1 second of game time
Actions
Set integer = integer +1
Events - ??
// if less don't do anything
If integer less or equal to "2" then
//nothing, or another action if you need
elf
// if greater do the action you want "remember to set integer to 0"
If integer greater or equal to "2"...