[question] Editing tasks in the mission

1 week 1 day ago - 1 week 1 day ago #1 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.

I'm sorry, but I bad speak English. I use Yandex.Translate.

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

3 days 12 hours ago #2 by danilasar
UP!!!

I'm sorry, but I bad speak English. I use Yandex.Translate.

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

3 days 11 hours ago - 3 days 11 hours ago #3 by betteryouthanme
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:
Objective uncompleted
Objective done
Objective failed
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.

3 days 5 hours ago #4 by danilasar
Thanks, but I meant single player.

I'm sorry, but I bad speak English. I use Yandex.Translate.

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

3 days 5 hours ago #5 by betteryouthanme
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.

3 days 3 hours ago #6 by Stern

Never hate your enemies, it affects your judgment !
The following user(s) said Thank You: Sasha, danilasar

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

Powered by Kunena Forum

Next birthdays

  • Lukasz birthday is in 1 day (34)
  • spartacus birthday is in 8 days (56)
  • Kahuna birthday is in 9 days (32)