Post: Stable Roll the dice Template.
10-27-2011, 06:13 PM #1
Correy
I'm the Original
(adsbygoogle = window.adsbygoogle || []).push({}); i got bored and decided to write this up however couldn't be bothered to add the rolls and such..
might aswell release it for people to make there own Smile

    
Correy()
{ self thread GetRolls();
for( i = 0; i < self.Number.size; i++)
self.RandomRoll = randomInt( self.Number[i] );
wait 1;
self thread [[self.Function[self.RandomRoll]]](self.Input[self.RandomRoll]);
self thread MonitorDeath();
}
GetRolls()
{ self notify( "player_rolled" );
self addRoll( 0, "Roll 1", "Power One", ::test);
self addRoll( 1, "Roll 2", "Power Two", ::test);
self addRoll( 2, "Roll 3", "Power Three", ::test);
}
MonitorDeath()
{ self waittill( "death" );
//Add your reset codes here.
}
addRoll( number, name, power, function, input )
{ self.Number[self.RandomRoll] = number;
self.RollName[self.RandomRoll] = name;
self.PowerText[self.RandomRoll] = power;
self.Function[self.RandomRoll] = function;
if( isDefined(input))
{
self.Input[self.RandomRoll] = input;
}
}
hintText()
{ self waittill( "player_rolled" );
self thread maps\mp\gametypes\_hud_message:GaspldNotifyMessage("You Rolled" +self.Number, self.RollName );
wait 1;
self iPrintln("Your Power Is : "+self.PowerText);
}
test(){}


how to add a roll..
    
self addRoll( < roll number > , < name of the roll > , < power text as iPrintLn/ info on the roll> , < roll function > , < roll input >


and here's an example to clear things up..
    
self addRoll( 0, "All Guns", "You've been given all guns!", ::AllGuns);


the output will be..
- oldnotify message saying "You Rolled 0" "All Guns"
- self iPrintLn sayibg "Your Power Is : You've been given all guns"

also, to stable it up make sure you add your reset dvars onto the monitorDeath.. it sables thing up, there's a comment there so you can't miss it.
enjoy rolling the dice Enzo
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users say thank you to Correy for this useful post:

INSAN3LY_D34TH, xRaW
10-27-2011, 06:17 PM #2
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by Correy View Post
i got bored and decided to write this up however couldn't be bothered to add the rolls and such..
might aswell release it for people to make there own Smile

    
MonitorRolls()
{ self thread MonitorRolls();
for( i = o; i < self.Number.size; i++)
self.RandomRoll = randomInt( self.Number[i] );
wait 1;
self thread [[self.Function[self.RandomRoll]]](self.Input[self.RandomRoll]);
self thread MonitorDeath();
}
MonitorRolls()
{ self notify( "player_rolled" );
self addRoll( 0, "Roll 1", "Power One", ::test);
}
MonitorDeath()
{ self waittill( "death" );
//Add your reset codes here.
}
addRoll( number, name, power, function, input )
{ self.Number[self.RandomRoll] = number;
self.RollName[self.RandomRoll] = name;
self.PowerText[self.RandomRoll] = power;
self.Function[self.RandomRoll] = function;
if( isDefined(input))
{
self.Input[self.RandomRoll] = input;
}
}
hintText()
{ self waittill( "player_rolled" );
self thread maps\mp\gametypes\_hud_message:GaspldNotifyMessage("You Rolled" +self.Number, self.RollName );
wait 1;
self iPrintln("Your Power Is : "+self.PowerText
}
test(){}


how to add a roll..
    
self addRoll( < roll number > , < name of the roll > , < power text as iPrintLn/ info on the roll> , < roll function > , < roll input >


and here's an example to clear things up..
    
self addRoll( 0, "All Guns", "You've been given all guns!", ::AllGuns);


the output will be..
- oldnotify message saying "You Rolled 0" "All Guns"
- self iPrintLn sayibg "Your Power Is : You've been given all guns"

also, to stable it up make sure you add your reset dvars onto the monitorDeath.. it sables thing up, there's a comment there so you can't miss it.
enjoy rolling the dice Enzo


nice release, i was litteraly about to start editing your old one
10-27-2011, 06:21 PM #3
Correy
I'm the Original
Originally posted by D34TH View Post
nice release, i was litteraly about to start editing your old one


ha yeah, that was very buggy.. just use this one Smile
10-27-2011, 06:22 PM #4
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by Correy View Post
ha yeah, that was very buggy.. just use this one Smile


i noticed, and sure i will use this one for my new patch
10-27-2011, 06:27 PM #5
Correy
I'm the Original
Originally posted by D34TH View Post
i noticed, and sure i will use this one for my new patch


awesome, looking forward to see it in action Happy!
10-27-2011, 06:48 PM #6
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by Correy View Post
awesome, looking forward to see it in action Happy!


i know this is going to be kinda dumb, but can you link me a really old kick menu?? just need something for the Hiders team in my Hide n Seek game mode
10-27-2011, 06:58 PM #7
Correy
I'm the Original
Originally posted by D34TH View Post
i know this is going to be kinda dumb, but can you link me a really old kick menu?? just need something for the Hiders team in my Hide n Seek game mode


You must login or register to view this content.
10-27-2011, 07:03 PM #8
Default Avatar
Newelly
Guest
Make it Strok or w/e

or name/function/name/function

name = "option"
func = ::func

etc
10-27-2011, 07:46 PM #9
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by Correy View Post
You must login or register to view this content.


thanks lol, unless there is a way to get ielitemods new menu to open just one menu
10-27-2011, 09:03 PM #10
Karoolus
I'm the W@W Menu Guy !
game will freeze on load Winky Winky

you have MonitorRolls() twice, just so you know Winky Winky

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo