- Joined
- Jun 1, 2007
- Messages
- 98
Hi. I'm having a problem with three triggers. They are all similar so i will only post one on here, but whenever it is triggered, the game crashes! What is the problem?
It's supposed to add 50 to an integer but it doesn't! It just crashes instantly as soon as you buy the item (auto-use)
I think it's because the unit isn't a hero, as yayafosho said. I guess i'll have to remake the whole triggers for the map...
Will get back to you and post the info
It's supposed to add 50 to an integer but it doesn't! It just crashes instantly as soon as you buy the item (auto-use)
-
UpDist
-
Events
- Unit - A unit Uses an item
-
Conditions
- (Item-type of (Item being manipulated)) Equal to Upgrade Distance
-
Actions
- Set TPlayer = (Owner of (Triggering unit))
- Set Distance[(Player number of TPlayer)] = (Distance[(Player number of TPlayer)] + 50)
- Game - Display to (All players) the text: Distance upgraded!
- Set Score[(Player number of TPlayer)] = (Score[(Player number of TPlayer)] + 5)
-
Events
I think it's because the unit isn't a hero, as yayafosho said. I guess i'll have to remake the whole triggers for the map...
Will get back to you and post the info