ttyborg / castlesand

Automatically exported from code.google.com/p/castlesand
0 stars 0 forks source link

Custom strings in missions #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Sebrav an idea how to do that! 
I see that the single missions got their own folder, and that is a good thing 
for my idea  

For example: (This is the AcrossDersert files PLUS my "Idea file") 

Acrossdesert.dat ( You probably know that one  ) 
Acorssdersert.map ( You probably know that one too  ) 
acrossdesert.txt ( Map Description, you see in-game ) 
Acrossdesert.lib <--- !!! 

That "Acrossdesert.lib" could contain the messages that you want to show 
in-game. 
For example: (I don't know how .lib's are constructed, but I'm just trying to 
show my idea). 
Code:

Line=1 
Version=English: "We have encountered enemies. SLAY THEM AT ALL COSTS!" 
Version=German: "Wir haben Feinde gestoßen. Tötet sie um jeden Preis!" 
Version=Polish: "Mamy napotkanych wrogów. Zabij ich za wszelk; cen!" 
Version=Hungarian: "Van találkozott ellenségei. Megölje;ket minden áron!" 
Version=Dutch: "We hebben ondervonden vijanden. Doodt hen ten koste van alles!" 
Version=Russian: (Russian... That's a hard one...  ) 

(These translations are translated with google, and I have removed all the 
bugged text, and that's why I removed all text from Russian. and some other.)

So instead of:

!SHOW_MESSAGE"We have encountered enemies. SLAY THEM AT ALL COSTS!"AFTER_TIME 
4000 

it is:
!SHOW_MESSAGE_1_AFTER_TIME 4000

My longest post so far  

Sincerely, Sebrav

Original issue reported on code.google.com by kromster80@gmail.com on 2 Aug 2010 at 6:28

GoogleCodeExporter commented 9 years ago
We have implemented it as libx files in mission folders. See this for syntax 
usage: http://code.google.com/p/castlesand/wiki/MissionEvents Will be in next 
release.

Original comment by kromster80@gmail.com on 17 Mar 2012 at 6:13