OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Ace Productions on 09 Jul 2004, 20:13:09

Title: Stringtable scripting
Post by: Ace Productions on 09 Jul 2004, 20:13:09
Hi again,

Is it possible to script in the stringtable?

i.e.

STRM_Company,Hint Format ["%1",Name Player]: Boys we have company!,


Title: Re:Stringtable scripting
Post by: Artak on 09 Jul 2004, 20:17:17
No.
Title: Re:Stringtable scripting
Post by: Ace Productions on 09 Jul 2004, 20:22:00
Very encouraging Artak!!!

Thanks anyway. :-\
Title: Stringtable scripting (2)
Post by: Duke Dax on 09 Jul 2004, 22:17:29
Don't know why threads are closed so rash...

Of course it is possible to "script" in stringtable!
The stringtable is just a table full of strings! And what can you do with strings? You can execute them with "call"!!!

STR_BLA,   "hint format [{%1},name player]",...

To execute htis string, just type:

call (localize STR_BLA)


And next time plz don't close threads so fast!!!
Title: Re:Stringtable scripting
Post by: Sui on 10 Jul 2004, 03:37:04
/me gets out his sticky tape...

There we go :)

Ace, if you get a 'no' response you can always leave the topic open in hope of a 'yes' answer. Up to you mate ;)