If anyone knows, could you please tell me how to transfer the hero's level to a combat script:confused: :
function start()
if the attacker's hero level >=1
cast one spell
if the attacker's hero level >=10
cast one spell
if the attacker's hero level >=20
cast one spell
end:rolleyes:
using a global variable:
x = GetHeroLevel('name of the hero')
SetGameVar('Level', x)in the combat script, get its value:
function Start()
HeroLevel = GetGameVar('Level') + 0
if(HeroLevel >= 1) then
... and so on.