Skip to content

Current questions and answers regarding the map editor.

User Avatar
#433
Auto-translated
In the script, we write: `
function Bon(hero)
sleep(3);
GiveHeroBattleBonus(hero, 1, -7);
end;
Trigger(OBJECT_TOUCH_TRIGGER,'mon','Bon');
` Here, 'mon' is the script name of the monster or hero you are attacking, 1 indicates that the battle spirit will change, and -7 means it will decrease by 7.

Added 15 minutes later
Forgot to mention: the GiveHeroBattleBonus function only works in version 3.1.
 

К А
Стикеры GBF в Telegram