Jump to content

EVENT_TYPE_TEAM_DESTROYED not working but works elsewhere


Recommended Posts

So I know most of the time I am just talking to myself here but I swear I never figure out my issues without at least asking someone XD

 

So I am using a script template that works in other areas. I have literally cloned it from the working version (works for 2 separate scripts). I have made sure the script are set up and tied to the the area map, the npcs/hostiles have the team number.

 

I have tried changing the number, moving the script (to a different script), assigning a different area script with the same code, I checked the plot flag (it works if I put it under a different trigger), I have tried different events (like UT_TeamAppears) they do not work either. It seems to be EVENT_TYPE_TEAM_DESTROYED itself not working/firing.

 

I don't know if I have missed something obvious or if this is a fluke or if there is something that can block EVENT_TYPE_TEAM_DESTROYED from firing?

Link to comment
Share on other sites

I can suggest a couple of possibilities -

 

Are you sure the script isn't receiving the expected event? How do you know? If it's because it isn't executing the expected logic, maybe something else is preventing it from doing so. One method I use to troubleshoot issues like that is to use the PrintToLog feature, and print something like "script name received event EVENT_TYPE_TEAM_DESTROYED" when the script is invoked. I've explained elsewhere how to use PrintToLog.

 

Are you sure all of the hostiles on the team are gone? If any of them didn't spawn or got hung up somewhere somehow, that event would never trigger. There are also ways to check the status of all of the creatures in an area...

  • Thanks 1
Link to comment
Share on other sites

Ah!

 

Ty, I tried again with only 2 hostiles, and it all worked (everything fired the next team appears and the plot flag), so one or more must be stuck or hung up somewhere, but I'll have to investigate which one(s) tomorrow, so late here atm, just thought I'd check the forum one last time before bed. Glad I did or else this be the third night, I tossed and turned over this issue XD

 

edit: nvm, 1 hostile was off the map entirely (somehow got placed in the void) X /

But ty, again!

Edited by HollownessDevoured
Link to comment
Share on other sites

  • Recently Browsing   0 members

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