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
11-12-2011, 12:37 PM #29
Default Avatar
Newelly
Guest
Originally posted by Correy View Post
i wrote a full paragraph until i clicked on ha. to much partying last night :p
no no, you wish Winky Winky

---------- Post added at 12:03 PM ---------- Previous post was at 11:55 AM ----------



count the chars, same out of rolls :p
    
RollTheDice()
{
self.Rolled = randomInt(10);
if (self.Rolled == 0)
{
self thread athread();
}
if (self.Rolled == 1)
{
self thread athread();
}
if (self.Rolled == 2)
{
self thread athread();
}
if (self.Rolled == 3)
{
self thread athread();
}
if (self.Rolled == 4)
{
self thread athread();
}
if (self.Rolled == 5)
{
self thread athread();
}
if (self.Rolled == 6)
{
self thread athread();
}
if (self.Rolled == 7)
{
self thread athread();
}
if (self.Rolled == Cool Man (aka Tustin)
{
self thread athread();
}
if (self.Rolled == 9)
{
self thread athread();
}
if (self.Rolled == 10)
{
self thread athread();
}
}

    
RollTheDice()
{
self.Rolled = randomInt(10);
self addRollUpside Down Happy:athread);
self addRollUpside Down Happy:athread);
self addRollUpside Down Happy:athread);
self addRollUpside Down Happy:athread);
self addRollUpside Down Happy:athread);
self addRollUpside Down Happy:athread);
self addRollUpside Down Happy:athread);
self addRollUpside Down Happy:athread);
self addRollUpside Down Happy:athread);
self addRollUpside Down Happy:athread);
wait .1;
self thread [[self.F[self.Rolled]]();
}
addRoll(f)
{
i=self.F.size-1;
self.F[self.Rolled][i] = f
}


total characters: 1060

Website used:
You must login or register to view this content.

---------- Post added at 12:37 PM ---------- Previous post was at 12:36 PM ----------

Originally posted by Correy View Post
yeah ikr, i unstalled all my coding programs, cod4.. Everything.
the only thing i have now is maybe skype :p, the only reason im on this now is well, im chatting to you and im waiting to get picked up lmao.

and btw, mine- 412.. yours... 616 or something Winky Winky


your counting words etc not characters -.-
11-12-2011, 12:38 PM #30
Originally posted by Correy View Post
yeah ikr, i unstalled all my coding programs, cod4.. Everything.
the only thing i have now is maybe skype :p, the only reason im on this now is well, im chatting to you and im waiting to get picked up lmao.

and btw, mine- 412.. yours... 616 or something Winky Winky


I deleted everything from cod4 and mw2 the other day.. over 9Gb !! All I have left is the ff viewer and my last patch in case I need to fix anything...
11-12-2011, 12:43 PM #31
Correy
I'm the Original
Originally posted by Newelly2Fresshh View Post
total characters: 1060

Website used:
You must login or register to view this content.

---------- Post added at 12:37 PM ---------- Previous post was at 12:36 PM ----------



your counting words etc not characters -.-


but still, but who cares.. coding sucks.

---------- Post added at 12:43 PM ---------- Previous post was at 12:39 PM ----------

Originally posted by x. View Post
I deleted everything from cod4 and mw2 the other day.. over 9Gb !! All I have left is the ff viewer and my last patch in case I need to fix anything...


mine was like, well more than that ha.. cod4 was 6gb, black ops was 6gb, visual studio (how i make my programs) was like 12gb :fyea:
all gone, my laptops running as smooth as a baby's bottom.. now i can just concentrate on getting myself a job, college, friends and family.. the think which is most important not your fricken cod kd or the smallest code in our case lmao, but the only time i may do a little coding is if i needed too and i doubt i will :p
11-13-2011, 10:54 AM #32
Woof
...hmm
Originally posted by Correy View Post
but still, but who cares.. coding sucks.

---------- Post added at 12:43 PM ---------- Previous post was at 12:39 PM ----------

mine was like, well more than that ha.. cod4 was 6gb, black ops was 6gb, visual studio (how i make my programs) was like 12gb :fyea:
all gone, my laptops running as smooth as a baby's bottom.. now i can just concentrate on getting myself a job, college, friends and family.. the think which is most important not your fricken cod kd or the smallest code in our case lmao, but the only time i may do a little coding is if i needed too and i doubt i will :p


So your pc can't hold an extra 18GB?
Bro you don't need to give up on "coding" programming*, you just need to get a new HDD :p
11-14-2011, 04:21 PM #33
Correy
I'm the Original
Originally posted by BFresshh View Post
So your pc can't hold an extra 18GB?
Bro you don't need to give up on "coding" programming*, you just need to get a new HDD :p


my laptop is fine, i had alot of things on it.. including programming and GFX things.. it's not the fact i had not much memory cause i still had like 80gb left, it's the fact that i've just quit. for good.
11-19-2011, 04:55 PM #34
xRaW
xI2aW-
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

    
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
nice one here. Good release. May Use it for a test Winky Winky
11-20-2011, 12:30 AM #35
Woof
...hmm
Originally posted by xRaW View Post
nice one here. Good release. May Use it for a test Winky Winky

Won't work the way you want it too.
11-20-2011, 12:36 AM #36
xRaW
xI2aW-
Originally posted by reScript View Post
Won't work the way you want it too.
what do you mean? I was planning to add it as a game mode onto a mod menu, and maybe like add random rolls from scripts added into the patch. Like give diff weaps or godmode for 30 secs ect ect
11-20-2011, 12:43 AM #37
Woof
...hmm
Originally posted by xRaW View Post
what do you mean? I was planning to add it as a game mode onto a mod menu, and maybe like add random rolls from scripts added into the patch. Like give diff weaps or godmode for 30 secs ect ect

The script has faults in it, it will not work; just not the way you want it too.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo