Author Topic: one time actions  (Read 4177 times)

0 Members and 1 Guest are viewing this topic.

Offline Doan Sephim

one time actions
« on: November 12, 2003, 01:30:23 PM »
i set up a local like:
(local
      FIRSTIMEHERE
)
then i set it to true like:
= FIRSTIMEHERE TRUE

my question is, when i do an action and set it to false, does it "forget" it is false if i leave the room and come back in? in my experience it does, and how do i make it to not change back to true?

thanks!
doan


Artificial Intelligence Competition

Offline robingravel

Re:one time actions
« Reply #1 on: November 12, 2003, 02:10:33 PM »
Hi doan sephim

Use global variable unstead local variable.


Robin Gravel

Offline Doan Sephim

Re:one time actions
« Reply #2 on: November 12, 2003, 02:20:28 PM »
thanks a million! works like a charm.

i hope you people can put up with me for all my dummie questions...the person who was gonna program the game im working on is kinda pressed for time, and isnt very enthusiastic about the project...so im put in the very foriegn situation of learning the language (which is fun...but like learning any other language, it is hard work and very frusterating at times).

doan


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.021 seconds with 17 queries.