Skip to content

Current questions and answers regarding the map editor.

User Avatar
#937
Auto-translated
In the Kind property, set it to COLLECT_RESOURCES. In Parameters, first specify the resource type, and then the quantity.
Also, a script will be needed, albeit a simple one, to later remove these resources. Here's an example:
function Sera_Gold()
if GetObjectiveState(quest name)==OBJECTIVE_COMPLETED then
SetPlayerResource(1,SULFUR,GetPlayerResource(1,SULFUR)-20);
Trigger(OBJECTIVE_STATE_CHANGE_TRIGGER,hut quest name, nil);
end;
end;
Trigger(OBJECTIVE_STATE_CHANGE_TRIGGER,hut quest name, "Sera_Gold");
 

К А
Стикеры GBF в Telegram