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?
Recruitment Stage Overlay
Débuté par
Weasel Daddy
, janv. 22 2011 10:33
#1
Posté 22 janvier 2011 - 10:33
#2
Posté 22 janvier 2011 - 11:09
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;
}
}
}
#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
Posté 22 janvier 2011 - 11:44
It worked! Thanks for the help.
#4
Posté 23 janvier 2011 - 12:30
You're welcome.





Retour en haut






