Skip to content

Current questions and answers regarding the map editor.

User Avatar
#5278
Auto-translated
}{0TT@6bI4
The line in the code looks like this:

SetPlayerResource(1,6, GetPlayerResource(1,6)-1000); 


?
This line worked in my script.
Thank you, now everything works:)

Added 47 minutes later
How can I track the progress of completing a quest to kill creatures using *SetObjectiveProgress? That is, there are 3 types of monsters on the map, and the hero must kill them. After each defeated monster, the task should be updated, such as: 1 out of 3 monsters killed, etc. The problem is that I don't know in what sequence the hero will defeat the monsters and where I need to write SetObjectiveProgress ('quest' 1, PLAYER_1)
I hope I wrote it clearly:)