Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Random number generator in scripts?

Author
Message
Cruise McClarren
19
Years of Service
User Offline
Joined: 23rd Aug 2005
Location:
Posted: 23rd Nov 2006 22:36
Is it possible to have a random number generator in the FPS scripts? I have tried searching the forums and couldn't find anything on it. So I guess I'll throw this out there

LIFE: "That thing that happens to us when we are too young to die"
~V.J.C. 2003
filya
18
Years of Service
User Offline
Joined: 23rd Aug 2006
Location: USA
Posted: 24th Nov 2006 05:02
Not exactly, but there is a way to randomize things.

:random=X:<do this and that>

will basically do 'this and that' whenever the random number between 0 and X is 1. get it?

-- game dev is fun...but taking up too much time --
Cruise McClarren
19
Years of Service
User Offline
Joined: 23rd Aug 2005
Location:
Posted: 25th Nov 2006 17:12
Basically I want to alter the flashing light script so that the light flashes at random intervals (or at least appears to hehe)


is there a way to have variables in scripts and manipulate them with mathematical operations such as
x = x + 5
or something like that?

LIFE: "That thing that happens to us when we are too young to die"
~V.J.C. 2003

Login to post a reply

Server time is: 2024-11-23 05:24:51
Your offset time is: 2024-11-23 05:24:51