Posted by Rocket Scientist on 2001-06-12
> Date: Tue, 12 Jun 2001 10:16:28 -0700 (PDT)
> From: Shawn Gunn <archduke_of_evil@xxxxx.xxx>
> Subject: Star Wars
>
> Greetings!
> I am new to the list and am a newbie coder for star
> wars (swr 1.0) I am looking to find the code for
> making the force a random affect...at this time it is
> a profession someone can choose(did disable that part
> tho noone can choose it).
> If anyone has the code I would appreciate it greatly
> if they could sent a copy to Evolution@xxxxxxxxx.xxx
> thanks
> Shawn
I don't know what Smaug uses to create random numbers, but find out.
The if statement would look like this on my mud:
If (dice(1,100) >= 63)) // 63% chance
{
<give the guy force power>
}
I pulled the number 63 out of the air, hope this helps!
I'd look in your equivalent of fight.c for calls for random numbers,
there should be plenty in there.
=====
--Aaron Jordan, head programmer of Tmud.
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
Previous post | Next post | Timeline | Home