Jump to content

What´s wrong with my Script?


klusi93

Recommended Posts

Hi!

I am new at Scripting and need some help now. I did the tutorial from toolset wiki and wrote this Script:

 

#include "events_h"

#include "plt_hut_monster"

#include "wrappers_h"

 

void main(){

event ev = GetCurrentEvent();

int nEventType = GetEventType(ev);

 

switch(nEventType)

{

case EVENT_TYPE_TEAM_DESTROYED:

{

 

if (GetEventInteger(ev,0) == 5){

WR_SetPlotFlag(PLT_HUT_MONSTER, MONSTER_SLAIN, TRUE);

 

}

break;

}

 

}

HandleEvent(ev, RESOURCE_SCRIPT_AREA_CORE);

}

 

It seems to compile right, but it has no effect ingame. Any ideas? :wallbash:

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...