Jump to content
HonoredThieves7

Random number generator question

Recommended Posts

I'm using TF_RandomNumberGenerator v1.0.0 to generate random numbers. I already made ones with 1-#, but now I want to make one that has 1 to 100, but counting by 10s. I'm not sure how to make this one work.

Share this post


Link to post
Share on other sites

I'm not familiar with the plugin but I don't really get the request either. Surely using intervals of 10 for this is the same as using 1-10 (...10x10=100).

Edit:

Or to phrase it another way. If your outcomes are 10, 20, 30....100 then its the same as 1, 2, 3....10.

Share this post


Link to post
Share on other sites

What's the different between using a plugin and a variable to make a random number?

What's the concept behind the numbers, so we know how to help implement it into your concept. Right now, "i need random numbers" is rather confusing.

 

 

I'm not sure about the plugin itself, but you can use the editor to make your increments a few ways actually.

For instance, having to variables.

One for your number to be randomised.

One for your multplication

 

So VAR1 x VAR2 = random number x 10

and after each event add on 10 unit to your multiplication, so that it increases.


 

set variable1 to "random 1-10"

set var2 to "constant 10"

var1 x var2 = random x 10

set var2 "add 10" = var2 should now be 20

 

Thats the gist of the variables anyway if your using an event page to trigger them.

 

Share this post


Link to post
Share on other sites

To piggyback on what Takeo said, you can easily do RNG with a "control variable" command, so I'm thinking the plugin was meant for a unique purpose or the scripter just didn't realize it.

Share this post


Link to post
Share on other sites

Thank you for all your suggestions and options. Let me clarify a bit more first about the plugin. The plugin generates a random number by having you set it through a plugin command. Then shows a text command telling you what number you got. The variable idea that you guys mentioned did come to mind, however, I wasn't sure how to do the text command showing what number got rolled. Also, the plugin allows loops so you can click it and get a number generated every time. I found a similar loop in the generator itself, but when I tried it, the game froze up and I couldn't move the character.

Share this post


Link to post
Share on other sites

If you want to display a variable amount in a text box, just use;

\v[x]

x = the variable ID you are calling.

 

The event itself is super simple;

Spoiler

This is for a simple random number generator if you want a random number.

numgen_by_takeo212-dbywdus.png

 

And this is if you want it to be increments of 10.

numgen2_by_takeo212-dbyyev3.png

 

 

 

I tested it and it works fine, without any problems.

 

I don't know anything about the plugin itself, but this should do the same thing, and you can use it for different variables too.

Edited by Takeo212

Share this post


Link to post
Share on other sites

Thank you so much. I really appreciate it. I'm still new with some parts of the software and didn't know how to use the variables.

 

Thanks again!

Share this post


Link to post
Share on other sites

This topic has been closed per poster's request.

 

If you wish to reopen this thread for any reason please contact a moderator.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted