Aller au contenu

Photo

Recruitment Stage Overlay


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Weasel Daddy

Weasel Daddy
  • Members
  • 2 messages
I'm trying to make a recruitment mod, and I got the tutorial about how to make one, but when I was trying to finish a script it wouldn't compile. The script is supposed to put my characters recruitment stage over the original recruitment stage making them both appear. Here's the script:


void main()
{
case EVENT_TYPE_MODULE_GETCHARSTAGE:
{
   SetPartyPickerStage("my_char_stage", "partypicker");
   break;
}
}




I'm new to scripting so for all I know this could be completly wrong, but I can't quite figure out whats wrong with it.
Any ideas?

#2
ladydesire

ladydesire
  • Members
  • 1 928 messages
The following should compile for you.



#include "utility_h"

void main()

{

event ev = GetCurrentEvent();

int nEventType = GetEventType(ev);

switch(nEventType)

{

case EVENT_TYPE_MODULE_GETCHARSTAGE:

{

SetPartyPickerStage("my_char_stage", "partypicker");

break;

}



}

}

#3
Weasel Daddy

Weasel Daddy
  • Members
  • 2 messages
It worked! Thanks for the help.

#4
ladydesire

ladydesire
  • Members
  • 1 928 messages
You're welcome.