ItsMods
Help black ops Random Choosing code - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: Help black ops Random Choosing code (/Thread-Help-black-ops-Random-Choosing-code.html)



black ops Random Choosing code - Gamemaster20 - 03-01-2012

ok so im make a mod called "Slot Machine" its where when u press a button on your keyboard and a random Option it chosen, like roll the dice, but i have a random weapon code but i need a code that chooses a thread by random. Theres more to the mod like killstreaks u get a suprise and a few more things, i still need to think or some thread when u use the slot machine.


RE: black ops Random Choosing code - rotceh_dnih - 03-01-2012

heres some code from My very first mod i ever made when i was very newb im sure you can adopt Smile i think @iAegle helped me back then with that.

Code:
randommessage () { switch(RandomInt(15)) { case 0: self.randommessage = "^1A man's dying is more the survivors' affair than his own."; break; case 1: self.randommessage = "^1If the enemy is in range, so are you."; break; case 2: self.randommessage = "^1War does not determine who is right - only who is left."; break; case 3: self.randommessage = "^1Never forget that your weapon was made by the lowest bidder."; break; case 4: self.randommessage = "^1Teamwork is essential, it gives them other people to shoot at"; break; case 5: self.randommessage = "^1For death begins with life's first breath And life begins at touch of death"; break; case 6: self.randommessage = "^1All that is necessary for evil to succeed is for good men to do nothing"; break; case 7: self.randommessage = "^1If you can't remember, the claymore is pointed toward you."; break; case 8: self.randommessage = "^1It is a blessing to die for a cause, because you can so easily die for nothing."; break; case 9: self.randommessage = "^1Older men declare war. But it's the youth who must fight and die"; break; case 10: self.randommessage = "^1When you have to kill a man it costs nothing to be polite."; break; case 11: self.randommessage = "^1Death takes the good, too good to stay, And leaves the bad, too bad to take away"; break; case 12: self.randommessage = "^1use emotion for the many and reserve reason for the few"; break; case 13: self.randommessage = "^1Battle is an orgy of disorder."; break; case 14: self.randommessage = "^1There is no glory in battle worth the blood it costs"; break; } self iPrintlnBold( self.randommessage ); }