Jump to content

Store string in variables


lucasjose501

Recommended Posts

We all know that in the Geck script we can store informations in variables, like short, ref, float... but strings... :sad:

In C++ i can make a string:

string Var;

Var = "Hello World";

But in the geck i cant do this :sad: My idea is to use a string to determine a folder in the command SwapTexture in order to save line and avoid bugs, because are more than 200 different textures and more than 600 conditions to be analyzed...

 

What I need:

short Var1
Short Var2
String StringVar

;---------------------------------------------------

Set Var1 to 5
Set Var2 to 15
SetString StringVar to "characters\DaughtersofAres\Spine\%g\%g" Var1 Var2

; The result: characters\DaughtersofAres\Spine\5\15
; And in the SwapTexture:

SwapTexture REF "NiTriShape" GetString StringVar

;Or something like that.

I think it probably has no way, but is there any alternative to work with strings in variables you can modify in the script and use on command when you want?

Link to comment
Share on other sites

Unfortunately, there are no string-type variables in the GECK's scripting language and, in general, you are extremely limited in what you can do with non-numeric values in scripts.

An alternative would be to store strings as objects' names (setting them with SetName/SetNameEx), but that method has very specific uses and will not serve your purpose if you are using SwapTexture.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...