Problem with variables

Started by Novice, Thu 05/08/2004 06:59:31

Previous topic - Next topic

Novice

Hi everyone! Here's the situation, how do I manipulate variables from any script?

I know about Globals but I must be doing something wrong ???.

This is what I'm trying to do.

1. Talking to one Character increases a Global variable by 1

2. Goto a differant room and if said Global variable increased
Ã,  Ã,  then another Character who was invisible appears in the
Ã,  Ã,  new room.

I've been using the 'GetGlobalInt(x)' but it ain't workin.
I used the SetGlobal but it's no good either.

eg. { Game Set Variable Value = variable Global 1 new value 2

Ã,  Ã,  Ã,  Ã,  Ã, Then another character in another room uses

Ã,  Ã,  Ã,  Ã,  Ã,  Display("The variable changed to %d", GetGlobalInt(1));
Ã,  Ã,  Ã,  Ã, }

No matter what I set the variable value to the knuckle head character
always says "The variable changed to 0". In other words the value of
2 I put in didn't register :o.

I can't figure it out and have started cussin :-[.
Please help.

Thank you. :)

Gilbert

Unfortunately the global variables used in the interaction menu and that of text script are different things.

So you need to use the text script function SetGlobalInt() to set the value instead.


Novice

#2
Gilbot, you're a GENIUS!! ;D

The game is back on schedual and my vocabulary is back to
normal as well. THANK YA!!

How long have you been using this system and about how long did it take to master it?

Guess I better print out the whole documentation huh.

SMF spam blocked by CleanTalk