SetGlobalInt

Started by deedee, Tue 02/03/2004 20:01:33

Previous topic - Next topic

deedee

The help file says:

"Sets the global variable INDEX to VALUE"

question is... how do i know what the index number is to my variables?. (I mean, this does refer to global variables, doesn't it?).

tnx
There can be only one.

AJA

SetGlobalInt(1,10); // sets ags's internal global integer 1 to "10"
GetGlobalInt(1); // returns the value set with setglobalint (=10)

So, this has nothing to do with the variables you create yourself.

deedee

I get it... then, is there a scripting way to change the value of the global variables you create using the interface?

or a way to do so in dialogs?
There can be only one.

Ishmael

I'm not sure if the globalints set with SetGlobalInt are linked to the ones you can use in the interaction editor... but anyway, in dailog, using set-globalint 1 10 has the same effect as SetGlobalInt(1,10); The manual has the dialog commands listed in it... I think it was Tutorial -> Setting up your game -> conversations or something like that.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Scorpiorus

The interaction editor global variables differ from the ordinary globalints. You can only read interaction editor's global variables with the GetGraphicalVariable (string variable_name) function.

~Cheers


SMF spam blocked by CleanTalk