Advertisement
RyanCordell

arghs

Mar 7th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.98 KB | None | 0 0
  1. str modsOn = "";
  2. int start = 0;
  3. //Everytime a new mod is applied, do the following steps:
  4. //  * Start out with (
  5. //  * Construct the string to include Mod + ModQuantity in a specific order (P1B2A3, etc)
  6. //  * Keep in mind to not add on top but to do the mod stitching all in one go
  7. //  * End with )
  8.  
  9. SCRIPT "ModConstructor" (void)
  10. {
  11.     modsOn = "(";
  12.  
  13.     if(powerMods || bulkMods || agilityMods || techMods || sniperMods || firestormMods || nanoMods)
  14.     {
  15.         modsOn = StrParam(s: modsOn, s:"P", i:powerMods);
  16.         modsOn = StrParam(s: modsOn, s:"B", i:bulkMods);
  17.         modsOn = StrParam(s: modsOn, s:"A", i:agilityMods);
  18.         modsOn = StrParam(s: modsOn, s:"T", i:techMods);
  19.         modsOn = StrParam(s: modsOn, s:"S", i:sniperMods);
  20.         modsOn = StrParam(s: modsOn, s:"F", i:firestormMods);
  21.         modsOn = StrParam(s: modsOn, s:"N", i:nanoMods);
  22.     }
  23.  
  24.     modsOn = StrParam(s: modsOn, s:")");
  25.     if(!powerMods && !bulkMods && !agilityMods && !techMods && !sniperMods && !firestormMods && !nanoMods)
  26.         modsOn = " ";
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement