• All, Gmail is currently rejecting messages from my host. I have a ticket in process, but it may take some time to resolve. Until further notice, do NOT use Gmail for your accounts. You will be unable to receive confirmations and two factor messages to login.
Optimizing Scripts

Optimizing Scripts

update:

I removed the 1st question about the inline scripts as the tutorial has already stated. I just didn't read it careful...

@Dcuurent, your optimizing topic tutorial is helpful for me, can you please please add more?

Thank you so much for your hard work!
 
Can someone please help me with the full example of this?

Are you looking for something like this?
C:
void Namer1(char Nama){
    switch(Nama){
    case "Megaman" :
      return "__";
      break;
    case "Roll" :
      return "__";
      break;
    case "Protoman" :
      return "__";
      break;
    case "Bass" :
      return "__";
      break;
    case "Power_MM" :
      return "Power";
      break;
    case "NH_MegaM" :
      return "No_Helmet";
      break;
    case "Roll_8" :
      return "Roll";
      break;
    case "X" :
      return "Megaman";
      break;
    case "Zero" :
      return "__";
      break;
    case "Volnutt" :    // 10
      return "Megaman";
      break;
    default :
      break;
    }
}

FYI it's from character select screen script system and it has been reduced as example.
 
Are you looking for something like this?
C:
void Namer1(char Nama){
    switch(Nama){
    case "Megaman" :
      return "__";
      break;
    case "Roll" :
      return "__";
      break;
    case "Protoman" :
      return "__";
      break;
    case "Bass" :
      return "__";
      break;
    case "Power_MM" :
      return "Power";
      break;
    case "NH_MegaM" :
      return "No_Helmet";
      break;
    case "Roll_8" :
      return "Roll";
      break;
    case "X" :
      return "Megaman";
      break;
    case "Zero" :
      return "__";
      break;
    case "Volnutt" :    // 10
      return "Megaman";
      break;
    default :
      break;
    }
}

FYI it's from character select screen script system and it has been reduced as example.
I understand these, I just don't know how to setup
#define DO_SOMETHING 0
#define DO_SOMETHING_ELSE 1
#define DO_SOMETHING_DIFFERENT 2

Thank you
 
if you add "#define DO_SOMETHING 0" to the top of a script file anytime you type "DO_SOMETHING" the engine will read it as "0".
 
Back
Top Bottom