The Powder Toy
Download
Forum
Browse
Wiki
FAQ
Play online
Register
Login
Discussions
/
The Powder Toy/Lua scripting
/
need help :(
«
1
»
need help :(
ForumTroll
28th Dec 2011
Banned
0
Permalink
This post is hidden because the user is banned
MasterMind555
28th Dec 2011
Member
0
Permalink
@ForumTroll
(View Post)
math.random(int, int) returns a random value between the 2 numbers you put.
Example :
math.random(1,10)
Will return a number between 1 and 10. Make sure you don't write any double or single quotes because that will screw it up.
ForumTroll
28th Dec 2011
Banned
0
Permalink
This post is hidden because the user is banned
MasterMind555
28th Dec 2011
Member
0
Permalink
@ForumTroll
(View Post)
Create a script that spawns a random element at a random position at a random interval
ForumTroll
28th Dec 2011
Banned
0
Permalink
This post is hidden because the user is banned
«
1
»