Author Topic: survivalRP - holywtf bump! and maybe finishing up some loose ends??  (Read 111330 times)


Once you activate the command, the script will get a random number between 0 - 100, and use that to say the percantage of the snow flakes will fall =D
Also Glass you can come to my server to see it
if you want PM me for the pass

Once you activate the command, the script will get a random number between 0 - 100, and use that to say the percantage of the snow flakes will fall =D
Also Glass you can come to my server to see it
if you want PM me for the pass
You're using this right?

mCeil(getRandom() * 100);

I thought getRandom() returns whole numbers.  And that you need actual arguments for it to work.  Moar like getRandom(0,100);

Yeah it does return whole integers,.

Hmm I know the function Im using works, its just it doesnt want to accept a variable as an argument.
Edit: Nvm I got it, the argument had to be between 0.0 and 1.0.
I will now be sending out the new map to the beta server hosters.
« Last Edit: August 03, 2009, 04:59:40 PM by ZSNO »

Hmm I know the function Im using works, its just it doesnt want to accept a variable as an argument.
Edit: Nvm I got it, the argument had to be between 0.0 and 1.0.
I will now be sending out the new map to the beta server hosters.

You would be willing to give that script to me? Would ya?

I thought getRandom() returns whole numbers.  And that you need actual arguments for it to work.  Moar like getRandom(0,100);
Doesn't matter

Either way works, and is correct.

I originally learned it in Java a year ago:
int n = (int)(10.0 * Math.random());

That's what I though Kalphiter. I was going to say, but I didn't.

How are resources coming?

We got it for the most part finished. Just some little things to iron out, and then painting a brick a different resource, which shouldn't be too hard to prevent. We have the resource cost for planting through the paint selection. They are pretty much done.

We did alot more scripting than I originally planned on. You guys did/are doing awesome :D

You would be willing to give that script to me? Would ya?
You have to make sure that your snow is named Precipitation.

K I can do that, anything else?

basically all you need to do is then put the code at the buttom of your .mis.
I guess Ill PM you the code...