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.
Help? Variables

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 82
I am really confused when it comes to variables and need to explained to me in dumb terms
I am trying to make it so then your character gets sent to a random location... O.o  I'm doing testing on it right now so... I don't get it @__@

*
Rep:
Level 87
Use Control Variables to set a value for your random number.  Choose the Random option, enter 1 as the low number, and for the high number, enter however many possibilities you want for the destination (my example uses 5).

Then create a series of nested conditions, and inside each one, put a different destination.


All you're doing is setting a variable to a random number, and then taking an action depending on the value it contains.


If you have a LOT of locations to teleport to, there's a more efficient way of nesting the conditions, but I won't go into it here.  Someone who's more awake than I (it's 1 in the morning) might like to expand on that.


Always remember you're unique.
Just like everybody else.

**
Rep: +0/-0Level 82
Thanks a lot!

**
Rep: +0/-0Level 82
Okay I do have to say this again because I went in and tested it THANK YOU SO MUCH!!!  O_o if I could give you rep right now I totally would!!

*
Rep:
Level 87
;)  You're welcome.
Always remember you're unique.
Just like everybody else.