Banner
Xtra Smileys
[Open]
We Unite Gaming
May 23, 2025, 09:26:52 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to We Unite Gaming!
Formerly Wii Unite/Wii Unite Gaming
 
  Home Help Search Arcade Gallery Youtube Channel Chatbox Staff List Login Register  

MOH themed karma cards.

Pages: 1 2 [3] 4   Go Down
  Print  
Author Topic: MOH themed karma cards.  (Read 1226 times)
¤Saucelot¤
Liter of SoL
Administrator
WU Pwn
*

Karma: 24
Offline Offline

Clan: Sons of Liberty [SoL]
Xbox Live: AtThatHardScope
Posts: 1553


Two Scoops Please, thanks.


View Profile WWW
« Reply #30 on: May 07, 2014, 11:44:42 pm »

Well yeah you can prob figure this out lol.  How do you get it to integrate with our forum though?  Never made a mod like this. 
I can post some basic c#, i can come back and finish this later and then convert it but here goes. 
   
//declare namespace and stuff

       //declare your variables up here
   
   void Start () {
      // initialize things here
      Spawn (); // start the "Spawn" function, which actually I could have put the spawn stuff in start I just had it like this because in the script i base this off spawn gets invoked by other things. Idk how **** works in other languages lol ill just leave it like this for now
   }
   
   void Spawn(){
      //get random number
      float rand = Random.Range (0, 10);
      //if random number is 7 or greater, go eff yourself lol, or get a random good card, if less then get a random bad card. 
      if (rand > 6) {
         //insert your idk whatever you got for giving good cards.
      }
      else (rand <= 6){
                      //insert your giving bad cards function.
}

I gotta head out, i'll come back to this in a little bit.  For now this would just execute that problem every time "Spawn" gets invoked, say somebody spins the wheel or w/e. 
Report Spam   Logged

Pages: 1 2 [3] 4   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
© 2008-2014 We Unite Gaming, Wii Unite Gaming, Wii Unite
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy