[question] Editing tasks in the mission

6 years 11 months ago - 6 years 11 months ago #1 by danilasar
[question] Editing tasks in the mission was created by danilasar
Good time of day. Continue to work with H&D3, again faced with a problem: how to edit mission tasks? As I understand it, is responsible for some function in the scripts. Please tell me what function.

Please Log in or Create an account to join the conversation.

6 years 11 months ago #2 by danilasar

Please Log in or Create an account to join the conversation.

6 years 11 months ago - 6 years 11 months ago #3 by betteryouthanme
Replied by betteryouthanme on topic [question] Editing tasks in the mission
Objectives are controlled in the scripts. The command therfore is SetObjectiveStatus(obj, state);
obj and state are both integer numbers. obj is the actual objective as its listed in the maplist.
</ALLOWEDITEMS>
<ALLOWEDPRESETS>"Allied gunner" "Allied sniper" "Allied rifleman" "Allied heavy gunner" "Allied assault gunner"</ALLOWEDPRESETS>
<OBJECTIVE allied_text="15510" axis_text="15510" value="03"/>
<OBJECTIVE allied_text="15518" axis_text="15518" value="03"/>
<OBJECTIVE allied_text="15514" axis_text="15514" value="03"/>
<OBJECTIVE allied_text="15515" axis_text="15515" value="03"/>
<OBJECTIVE allied_text="15519" axis_text="15519" value="03"/>
<OBJECTIVE allied_text="15509" axis_text="15509" value="03"/>
</MAP>

In the example above obj no. 1 would be the objective in maplist with text id 15510
15518 = obj2, 15514 = obj3, and so on
Of course for some gamestyles you need different objectives for both teams, that's why you have here allied and axis text values.
I don't know what value="03" means..

The state can have following values:
0&nbsp;Objective uncompleted
1&nbsp;Objective done
2&nbsp;Objective failed
3&nbsp;Objective failed (->Mission failed)
4Objective hidden

The text id (maplist) can be found and edited in texty.txt (Text\English\TEXTY.txt)

If you need new subtitles you have to edit Dialogs_DD.bin (Sabre) or dialogs.bin (basic game)
Subtitles are triggered by scripts too.
e.g
SUBTITLES_SetOn(1);
SUBTITLES_SetText(56999903);		//"OBJECTIVES CHANGED!"
Delay(4000);
SUBTITLES_SetOn(0);
The text ids for subtitles can be found in Zdenda's Edit Tools.


About your project i would be bit more careful.. I don't think you have bought the game license, naming rights and all that?
Will this be a new Add-On like Sabre Squadron? Just an updated version of the game? Or a complete rebuild with another engine?

The only legal option at the moment would be to re-build the game under a different name.


Two things fill the mind with ever new and increasing wonder and awe - the starry heavens above me and the moral law within me. Immanuel Kant
The following user(s) said Thank You: danilasar

Please Log in or Create an account to join the conversation.

6 years 11 months ago #4 by danilasar
Replied by danilasar on topic [question] Editing tasks in the mission
Thanks, but I meant single player.

Please Log in or Create an account to join the conversation.

6 years 11 months ago #5 by betteryouthanme
Replied by betteryouthanme on topic [question] Editing tasks in the mission
thought so. But that's quite the same.
Mission setup and objectives are stored in Gamedata00.gdt / Gamedata01.gdt .

All research work is listed in the link above. Lots of unknown values. And of course a edit tool for the gdt files would be useful :^^:


Two things fill the mind with ever new and increasing wonder and awe - the starry heavens above me and the moral law within me. Immanuel Kant
The following user(s) said Thank You: danilasar

Please Log in or Create an account to join the conversation.

6 years 11 months ago #6 by Stern

The one who hesitates is lost !
The following user(s) said Thank You: Sasha, danilasar

Please Log in or Create an account to join the conversation.

  • Lukasz birthday is in 10 days (41)
Powered by Kunena Forum