Skip to content
User Avatar
#3200
Auto-translated
EnterEsc
2) I mean adding some custom text there, and which function edits this Diary?
3) Can you provide an example script?

2). In the top panel of the editor, you need to activate the Map properties tree. There is a folder called Objectives. Primary is for main quests. Secondary is for side quests. Common is for general quests. Player specific is for quests specific to a particular player. The standard "kill 'em all" quest is a main, general quest. The CaptionFileRef field is for the quest name, and the descriptionFileRef field is for the description.
3). You need to give the cartographer a script name in the window on the left, in the name parameter.
Replace everything written in Cyrillic in the script with what is required:


HERO = 0;
SetObjectEbabled("script_name_of_cartographer",nil);
function cartographer(hero,obj)
HERO = hero;
QuestionBoxForPlayers(GetObjectOwner(HERO),"link_to_file_with_text_for_buying_maps","yes");
end;
function yes()
if GetPlayerResource(GetObjectOwner(HERO),6) >= price_of_maps then
SetPlayerResource(GetObjectOwner(HERO),6, GetPlayerResource(GetObjectOwner(HERO),6)-price_of_maps);
OpenCircleFog(50,50,0,999,GetObjectOwner(HERO));
Trigger(OBJECT_TOUCH_TRIGGER,"script_name_of_cartographer",nil);
else
MessageBoxForPlayers(GetObjectOwner(HERO),"link_to_file_with_text_that_not_enough_money");
end;
end;
Trigger(OBJECT_TOUCH_TRIGGER,"script_name_of_cartographer","cartographer");