Author Topic: Roll the Dice - Update! 6 More Effects and Time Limit!  (Read 9799 times)

Alright, so this thing picks a random number between 0 and 14.  Depending on the number you picked, you get that effect.

0 - No effect.
1 - Become Quake guy.
2 - Set health to 2.
3 - Adds 25 health.
4 - Become predator (invisible.)
5 - Get sent to the moon!
6 - Nerf jets. (Fuel)
7 - Become a smurf.
8 - Become a giant.
9 - Free Rocket Launcher
10 - Demigod (500 HP, faster than default.)
11 - Become immobile. (100 HP, no movement.)
12 - Be smited.
13 - Become a timebomb.
14 - Double health.

It's a quick script thing and the first real add on I made that wasn't an edit.
Download Version 0.666 BETA

TO DO:
-More roll effects.
-At least 25 by next PUBLIC version.

Commands/Howto;
/rtd to roll the dice.
/rtdver for roll the dice version. Will fix when less lazy.
« Last Edit: December 08, 2011, 09:23:37 PM by brickybob »

What you could do is this
Code: [Select]
$RTD::Count = 2;
$RTD::Effect[0] = "a Slice of Death";
$RTD::Eval[0] = "player.kill();";
$RTD::Effect[1] = "25 HP";
$RTD::Eval[1] = "player.addHealth(25);";
$RTD::Effect[2] = "-25 HP";
$RTD::Eval[2] = "player.addHealth(-25);";
function serverCmdRTD(%client)
{
%r = getRandom(0,$RTD::Count);
announce(%client.name @ " rolled a  " @ %r @ " and got " @ $RTD::Effect[%r]);
givestuff(%client,%r);
}

function givestuff(%client,%rolled)
{
%e = $RTD::Eval[%rolled];
eval(%client @ "." @ $RTD::Eval[%rolled]);
}
To make it easier to add things.

What you could do is this
Code: [Select]
$RTD::Count = 2;
$RTD::Effect[0] = "a Slice of Death";
$RTD::Eval[0] = "player.kill();";
$RTD::Effect[1] = "25 HP";
$RTD::Eval[1] = "player.addHealth(25);";
$RTD::Effect[2] = "-25 HP";
$RTD::Eval[2] = "player.addHealth(-25);";
function serverCmdRTD(%client)
{
%r = getRandom(0,$RTD::Count);
announce(%client.name @ " rolled a  " @ %r @ " and got " @ $RTD::Effect[%r]);
givestuff(%client,%r);
}

function givestuff(%client,%rolled)
{
%e = $RTD::Eval[%rolled];
eval(%client @ "." @ $RTD::Eval[%rolled]);
}
To make it easier to add things.
I'll try it.

Edit: uhhh
Was the givestuff thing really necessary?

Sweet an entirely new dimension to TDM.


get sent to the moon? What does that do?

get sent to the moon? What does that do?
Launches you upwards.  You don't reach the moon, you just go squishy on the floor.

It should be 0-25
I'm tired and I just made this a few hours ago.  I'm going to add more stuff, just drop in some ideas.

There should probably be some kind of limit on how often you can send these things.

Implement spontaneous human combustion

Implement spontaneous human combustion

Yeah make it switch the playertype to instagib and call control k.

Yeah make it switch the playertype to instagib and call control k.
Or spawn an explosion on the player and kill the player.

9 - You will explode in x seconds

Would it be possible to grant players weapons or invulnerability?

Would it be possible to grant players weapons or invulnerability?
Hehe Mininuke

Would it be possible to grant players weapons or invulnerability?
Yeah, but I will need to make more playertypes.