Benutzer-Werkzeuge

Webseiten-Werkzeuge


Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu der Vergleichsansicht

scripts_creator [2024/01/07 12:44] (aktuell)
damianut angelegt
Zeile 1: Zeile 1:
 +====== Scripts Creator ======
  
 +The tool which saves time with dialogues implementing and move part of work from scripters to scenario writers.
 +
 +This tool helps team which creates Golden Gate II: Heart of the Goddess modification,​ and [[https://​www.facebook.com/​watch/?​v=1352250732393237|was published 13 September 2023]]. Created by one of member of mentioned above team.
 +
 +[[https://​docs.google.com/​document/​d/​1EZSue6T-lx67iA2Y5QSJUJaEC0L7I9Jc_ZrkJp_zG3Q/​edit?​usp=sharing|Guide PL]]
 +
 +[[https://​docs.google.com/​document/​d/​12spvgcZgduJ53tijfuhi4EBhuupwoIqaFA14_-nQJZc/​edit?​usp=sharing|Guide EN]]
 +
 +
 +I short, installation is possible by [[https://​www.docker.com/​|Docker]]. You can run tool by Docker Desktop or by command line (PowerShell). The program is opened in a default browser.
 +
 +As you can see on the video from linked post from Facebook (logging in not needed), you can paste the dialogue in following format to the browser (text from below image is from "GUIDE EN"):
 +
 +{{::​example_sw.png?​nolink&​400|}}
 +
 +add quest code name (here "​BeliarServant"​) and click "​Convert"​ to achieve following code as the output:
 +
 +<code c++>
 +///////////////////////////////////////////////////////////////////////​
 +//////////////// ​ DiegoOW Hallo
 +///////////////////////////////////////////////////////////////////////​
 +INSTANCE DIA_DiegoOW_Hallo (C_INFO)
 +{
 +    npc             ​= ​    ​DiegoOW;​
 +    nr             ​= ​    2;
 +    condition ​    ​= ​    ​DIA_DiegoOW_Hallo_Condition;​
 +    information ​    ​= ​    ​DIA_DiegoOW_Hallo_Info;​
 +    important ​    ​= ​    ​FALSE;​
 +    permanent ​    ​= ​    ​FALSE;​
 +    description ​    ​= ​    "​(to do)";
 +};
 +func int DIA_DiegoOW_Hallo_Condition ()
 +{
 +    return TRUE;    ​
 +};
 +func void DIA_DiegoOW_Hallo_Info ()
 +{
 +    AI_Output (self, other, "​DIA_DiegoOW_Hallo_12_01"​);​ //Hey, I thought you were dead.
 +    AI_Output (other, self, "​DIA_DiegoOW_Hallo_15_02"​);​ //Yes ... so I was.
 +    AI_Output (other, self, "​DIA_DiegoOW_Hallo_15_03"​);​ //But now I'm back, and looking for proof of the arrival of the dragons.
 +    AI_Output (self, other, "​DIA_DiegoOW_Hallo_12_04"​);​ //Who are you doing that for?
 +
 +    Info_ClearChoices(Dia_DiegoOW_Hallo);​
 +    Info_AddChoice(Dia_DiegoOW_Hallo,"​Beliar.",​Dia_DiegoOW_Hallo_1);​
 +    Info_AddChoice(Dia_DiegoOW_Hallo,"​Xardas",​Dia_DiegoOW_Hallo_2);​
 +
 +};
 +FUNC VOID DIA_DiegoOW_Hallo_1 ()
 +{    Info_ClearChoices(Dia_DiegoOW_Hallo);​
 +    AI_Output (other, self, "​DIA_DiegoOW_Hallo_15_05"​);​ //Beliar.
 +    AI_Output (self, other, "​DIA_DiegoOW_Hallo_12_06"​);​ //Nice. It is proper decision!
 +
 +    START_MISSION(TOPIC_TOPIC_Test,​ "I should to serve Beliar."​);​
 +
 +};
 +FUNC VOID DIA_DiegoOW_Hallo_2 ()
 +{    Info_ClearChoices(Dia_DiegoOW_Hallo);​
 +    AI_Output (other, self, "​DIA_DiegoOW_Hallo_15_07"​);​ //Xardas.
 +    AI_Output (self, other, "​DIA_DiegoOW_Hallo_12_08"​);​ //Xardas the necromancer?​
 +};
 +</​code>​
 +
 +The code of program is possible to browse by Docker. It is a one pitfall with Scripts Creator, that in names of all NPC's speeches is used "​12"​ as voice. Where voices always are vary.
scripts_creator.txt · Zuletzt geändert: 2024/01/07 12:44 von damianut