Announcement: Remember: you are giving away your fantastic ideas for free, and somebody else might even make money from them (or appear to). That's just how the world works! If you're worried about it, maybe you shouldn't post your ideas here.


Caravel Forum : DROD Boards : Feature Requests : Add local variables
New Topic New Poll Post Reply
Poster Message
superluminal
Level: Delver
Rank Points: 75
Registered: 05-26-2016
IP: Logged
icon Add local variables (+1)  
Creating new variables is cool and all, but they're all global. I want to be able to create new _My variables that work locally.

That's all.

____________________________
spacelike
08-09-2017 at 09:12 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
hyperme
Level: Smitemaster
Avatar
Rank Points: 1062
Registered: 06-23-2006
IP: Logged
icon Re: Add local variables (+2)  
Place a . at the start of your variable name.

Variable is now local to the NPC instance.

____________________________
[Insert witty comment here]
Qzvlkx?
08-09-2017 at 10:14 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
superluminal
Level: Delver
Rank Points: 75
Registered: 05-26-2016
IP: Logged
icon Re: Add local variables (+1)  
Cool. Thanks!

____________________________
spacelike
08-09-2017 at 10:37 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Feature Requests : Add local variables
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.