RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[RESOLVED]Variables as a Word not a Number

0 Members and 1 Guest are viewing this topic.

*
Rep:
Level 84
All Hail the Motherboard.
How would I set a Variable instead of an Integer as a String or readable Text. i know \V[] but could i do that in a way that could for example show a name and no not the Actors Name.... I know its kind of Uber specific. but I need a
Variable
As Text
Not
A Number.
« Last Edit: August 26, 2009, 02:22:27 AM by umbrageous »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
You can't do it through events, but you can do it through a little call script:

Code: [Select]
$game_variables[id] = "text"

If you try to use that variable in anything but a set operation in Control Variables, though, it will return an error. I assume you only want it to \v[id] for.

*
Rep:
Level 84
All Hail the Motherboard.

********
Resource Artist
Rep:
Level 94
\\\\\
Project of the Month winner for June 2009
So this would work like:

NPC: Meet me at \v[1].

CallScript: $game_variables[1] = "Awesometown"

and would show up like:

NPC: Meet me at Awesometown.

?

Cause...this is good to know.

*
Rep:
Level 87
Yes, that's exactly how it works.  Of course, you have to set your game variable first, before the NPC speaks.  So your NPC: and CallScript: lines would be swapped around.

I've had issues trying to use it with the Show Choices command, but I think I established that it was only a bug with the UMS I'm using, and when I tried it with the RTP it worked correctly. 
« Last Edit: August 30, 2009, 02:18:16 AM by shaz »
Always remember you're unique.
Just like everybody else.