Forums Index >> Modding >> How do you decrease/increase the rate/chance of ge...



Page : <1> :


The question says it all folks


Saturday, April 02, 2005 at 6:16:54 PM

Open special.cs and scroll to the bottom
U will see this:

 

$NumPupTypes = 3;
$pupTypes[0] = "SpeedyProjectile";
$pupTypes[1] = "BounceProjectile";
$pupTypes[2] = "SplashProjectile";

$pupSnds[0] = "ActivateSpeedy";
$pupSnds[1] = "ActivateBounce";
$pupSnds[2] = "ActivateSplash";

 

Now, supose we want the area projectile to have a higher chance of getting the powerup, lets add 1 to $NumPupTypes and double the splash projectile one, making the number inside [ and ] the same as $NumPupTypes - 1 (if you add one more dont change old ones) doing the same with the sound, so it would be:

 

$NumPupTypes = 4;
$pupTypes[0] = "SpeedyProjectile";
$pupTypes[1] = "BounceProjectile";
$pupTypes[2] = "SplashProjectile";
$pupTypes[3] = "SplashProjectile";

$pupSnds[0] = "ActivateSpeedy";
$pupSnds[1] = "ActivateBounce";
$pupSnds[2] = "ActivateSplash";
$pupSnds[3] = "ActivateSplash";

 

Now to decrease the chance we would have to double all others, like:

 

$NumPupTypes = 5;
$pupTypes[0] = "SpeedyProjectile";
$pupTypes[1] = "BounceProjectile";
$pupTypes[2] = "SplashProjectile";
$pupTypes[3] = "SpeedyProjectile";
$pupTypes[4] = "BounceProjectile";

$pupSnds[0] = "ActivateSpeedy";
$pupSnds[1] = "ActivateBounce";
$pupSnds[2] = "ActivateSplash";
$pupSnds[3] = "ActivateSpeedy";
$pupSnds[4] = "ActivateBounce";

 

Hope this helps,
Art Crazy


Last edited: Tuesday, April 05, 2005 at 11:20:35 AM

Tuesday, April 05, 2005 at 11:20:05 AM

Dang art u beat me to it

Tuesday, April 05, 2005 at 7:29:46 PM

-.- oh, well that's common sense lol. Thought it was some sort of function:: script.


Wednesday, April 06, 2005 at 4:29:47 PM

Run over it more or less often. Works every time for me!

Wednesday, April 06, 2005 at 6:23:17 PM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald