Skip to content

Current questions and answers regarding the map editor.

#4687
Auto-translated
Could you provide more details on how to work with ChangeHeroStat()? Specifically, what should be written in the hero parameter identifier, and what value should be assigned to the parameter? What is this parameter in general? :o

Added 35 minutes later
Does anyone know how to make the battle accessible not only for Godric but also for another hero?
function bitvaBGR()
StartCombat("Godric", nil, 1, 32, 790, nil)
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "zombi", "nil")
end
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "zombi", "bitvaBGR")
PlayObjectAnimation("limon26", "death", ONESHOT_STILL )
sleep(7)
RemoveObject("limon26")
sleep(4)
PlayObjectAnimation("limon25", "happy", IDLE)
sleep(4)
Here is the script; it works, but only for the character Godric. How can I make the function accessible for 2 heroes?