Skip to content
#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.

Statistics

Welcome our newest member: Emil