Skip to content

Help for the Heroes 4 Map Editor.

User Avatar
#7
Auto-translated
SandroXXL

Now, let's deal with defeating a monster. Let's say a quest requires us to eliminate a monster that's blocking the road. The quest conditions don't explicitly mention defeating the monster, but it's easily achievable. We'll use the SET BOOLEAN VARIABLE (TRUE/FALSE) option, which, as the name suggests, has only two values: true and false. Double-click the monster that needs to be killed and, in the standard events, select DEFEAT. From now on, in quests, "defeat" will refer to the monster(s) being defeated in battle, not the player. Choose SET BOOLEAN VARIABLE, enter the variable name in the lower field (it should consist ONLY of English letters and numbers), and assign the value TRUE (note that all variables of this type initially have the value FALSE). Now, we need to make the quest believe us. To do this, in the QUEST CONDITIONS field, select the AND option: in the upper field, select the variable we defined, and in the lower field, select the value TRUE. Finally, write in the ON COMPLETION SCRIPT everything you want to happen.
P.S. Don't forget to add messages with prompts, text for the search process, and when the quest is completed. The question allows you to agree or refuse the reward.
I didn't quite understand the part about killing creatures. I tried to do it as you described, but I couldn't find what I needed
А что тут писать-то надо? ;)

Statistics

Welcome our newest member: wayal