Jump to content
Casio91Fin

Stringtable.xml problem

Recommended Posts

Hey.

How do I get this to work right when it doesn't really seem to help even a wiki site

https://community.bistudio.com/wiki/Stringtable.xml

 

The problem is this.

//#1 Clear Village (Oreokastro)

text #1 Attack the Oreokastro and destroy the enemy completely = STR_CAS_Text1

[allPlayers, ["task1"],["$STR_CAS_.Text1","Oreokastro",""],[4600,21400], true, 99, true, "attack", true] call BIS_fnc_taskCreate;

 

how this should be done?

Share this post


Link to post
Share on other sites
10 hours ago, Casio91Fin said:

text #1 Attack the Oreokastro and destroy the enemy completely = STR_CAS_Text1

[allPlayers, ["task1"],["$STR_CAS_.Text1","Oreokastro",""],[4600,21400], true, 99, true, "attack", true] call BIS_fnc_taskCreate;

 

Assuming you have your mission's stringtable.xml set up correctly as per the examples given, and STR_CAS_Text1 is the correct Key ID given, the usage in the call should be:

[allPlayers, ["task1"],[Localize "STR_CAS_Text1","Oreokastro",""],[4600,21400], true, 99, true, "attack", true] call BIS_fnc_taskCreate;

 

$ is used when setting the string text in a config (e.g., Description.ext is a config).

Running a script or scripted function, localize is used to get the string text.

 

For a little more clarity, although BIS_fnc_taskCreate is a defined config function, its code is compiled from script and you're calling its code.

 

Share this post


Link to post
Share on other sites
22 hours ago, opusfmspol said:

 

Assuming you have your mission's stringtable.xml set up correctly as per the examples given, and STR_CAS_Text1 is the correct Key ID given, the usage in the call should be:


[allPlayers, ["task1"],[Localize "STR_CAS_Text1","Oreokastro",""],[4600,21400], true, 99, true, "attack", true] call BIS_fnc_taskCreate;

 

$ is used when setting the string text in a config (e.g., Description.ext is a config).

Running a script or scripted function, localize is used to get the string text.

 

For a little more clarity, although BIS_fnc_taskCreate is a defined config function, its code is compiled from script and you're calling its code.

 

thank you

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×