New question: I've tried doing
Number1 = (* $Number1 4)
or Number1 = (/ $Number1 2)
it doesn't recognise the syntax. Can I have the symbols for multiply and divide? Also, what language does sandbox use? Maybe that would help if I come across anything else syntax related.
Old question: Say I want to make you play a guessing game with an npc, and you have to guess the right number. How can I make the right number be random? Just looking for the syntax
Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.
In the meantime please join the new Discord Server!
If you have any questions please e-mail me through the Platinum Arts website.
In the meantime please join the new Discord Server!
If you have any questions please e-mail me through the Platinum Arts website.
What is the syntax for multiply and divide?
- Venima
- Support Team
- Posts: 259
- Joined: February 17th, 2010, 4:56 am
- Name: Tombstone
- IRC Username: Venima
- Location: Somewhere in the eternal planes between the living and the dead
What is the syntax for multiply and divide?
Last edited by Venima on February 17th, 2010, 5:40 pm, edited 3 times in total.
Tombstone's Tournament round 2 has begun! Tombstone's Posting Tournament
Try out my: CFG Easy Text Editor (Note: still in beta)
-----Venima


Try out my: CFG Easy Text Editor (Note: still in beta)
-----Venima


Re: How do I create a randomly generated number?
rnd x will return a pseudo-random number between 0 and x - 1
the functionality is used in a great many places
the functionality is used in a great many places
This is not a url, clicking it is pointless
- Venima
- Support Team
- Posts: 259
- Joined: February 17th, 2010, 4:56 am
- Name: Tombstone
- IRC Username: Venima
- Location: Somewhere in the eternal planes between the living and the dead
Re: How do I create a randomly generated number?
so for example I could do:
chosen_number = rnd 4 (the range being 0 to 3)
or
chosen_number = (+ $chosen_number rnd 4)
right?
chosen_number = rnd 4 (the range being 0 to 3)
or
chosen_number = (+ $chosen_number rnd 4)
right?
Tombstone's Tournament round 2 has begun! Tombstone's Posting Tournament
Try out my: CFG Easy Text Editor (Note: still in beta)
-----Venima


Try out my: CFG Easy Text Editor (Note: still in beta)
-----Venima


- Venima
- Support Team
- Posts: 259
- Joined: February 17th, 2010, 4:56 am
- Name: Tombstone
- IRC Username: Venima
- Location: Somewhere in the eternal planes between the living and the dead
Re: What is the syntax for multiply and divide?
New question
Tombstone's Tournament round 2 has begun! Tombstone's Posting Tournament
Try out my: CFG Easy Text Editor (Note: still in beta)
-----Venima


Try out my: CFG Easy Text Editor (Note: still in beta)
-----Venima


- Venima
- Support Team
- Posts: 259
- Joined: February 17th, 2010, 4:56 am
- Name: Tombstone
- IRC Username: Venima
- Location: Somewhere in the eternal planes between the living and the dead
Re: How do I create a randomly generated number?
Ok for anyone else reading this you have to put rnd x withing brackets e.g. (rnd 10)Hirato wrote:rnd x will return a pseudo-random number between 0 and x - 1
the functionality is used in a great many places
Tombstone's Tournament round 2 has begun! Tombstone's Posting Tournament
Try out my: CFG Easy Text Editor (Note: still in beta)
-----Venima


Try out my: CFG Easy Text Editor (Note: still in beta)
-----Venima

