[Trigger] Trigger Crashing the Game | Don't know why

Status
Not open for further replies.
Level 6
Joined
Aug 2, 2009
Messages
130
I'm trying to make a trigger that creates some units, gives one an item and they all attack the player.
BUaKCAp.jpg

When the 5 mins are up, the game crashes.:confused:
 
Instead of creating the item and placing it on the ground, use the "Hero - Create item for hero" action, 95% sure it works for normal units too.

For debugging, just set the every 300 sec to 10 sec so you don't have to wait 5 min everytime you want to debug..
I'll try that, thanks.

:vw_wtf::confused::huh:

Edit: Tested it out and I get the same error. I might have to just [order "last created unit" to "right click" the "last created item"]
 
Last edited:
Try the trigger without the item action. Does it still crash?

Do the units you create have any custom models?

If it does still crash without the item action and no custom models, post the map.
 
Try the trigger without the item action. Does it still crash?

Do the units you create have any custom models?

If it does still crash without the item action and no custom models, post the map.

Removed the item action and with iseedeadpeople is see the created units just standing there, not Attack-moving. I just need to find a way to make the unit group attack-move to a random player building. I can do without the item.
 
If you are using Inventory(Hero) as your inventory ability for the unit, the game will crash, because you cannot give units without attributes tomes that increase attributes.

For example you create a tome of agility and give it to a unit with Inventory(Hero) the game will crash, because units don't have agility.
 
Makes sense. So I'd have to either make them not auto-use on pick-up or change the lists. About the unit group of player buildings. I should be able to have them added to the group as they are built and removed as they are destroyed, so that might fix that issue.
I'll be back later with an update.

Update: I changed all the items to not be used on pick-up and changed the way buildings are added to the Player Buildings Unit Group (Added when construction is finished and removed when it dies). Everything seems to be working fine! Thanks guys!
 
Last edited:
Status
Not open for further replies.
Back
Top