Skip to content

Current questions and answers regarding the map editor.

User Avatar
#2574
Auto-translated
Slovenec:

1) AddHeroCreature ('heroname' , 15, 35)

2) Download the special program. It's called HoMM5MapScriptsEditor.

Radionich:

1) I don't know. I wouldn't recommend anything lower than 1. You can try manually through the editor. Or through scripts. ChangeHeroStat('heroname' , stat_id (numbers from 0 to 8) , 0)

2) I don't think so. It's better to try through a script.
Trigger(REGION_ENTER_AND_STOP_TRIGGER , 'trigger name' , 'function name')

function function name (heroname)
if heroname == 'heroname' (hero name) then
--now the check has triggered, identifying which hero entered the region. Write whatever you want here. If you need to complete a quest:
SetObjectiveState ('objname' , OBJECTIVE_COMPLETED)
Trigger(REGION_ENTER_AND_STOP_TRIGGER , 'trigger name' , nil)
end
end

Whatever