Okay so I'm finally getting a bit better with managing triggers... however there are still some problems I have.
ATM I have it so theres an item in the map which must be brought to a certain location for a trigger to enable... so i made the event "item enters region"
however tis also makes it so if the person just walks into the region with the item inside their inventory, the trigger enables...
After the trigger enables the item is supposed to teleport back to its initial location through a point i put. but when its in the inventory its impossible to 'move' the item unit BACK to where it came from! thus the trigger continuously occurs if u keep walking into the same region... (this increases the score by 1 so obviously if u can abuse it and just keep walking in and out thats bad)
Is there anyway to make it only trigger outside of the unit? Or is there anyway to have the item drop out of the unit so it can be moved back? Or any other solution I can't think of?
I don't have much experience with the actual items themselves, but if you can use Unit Enters Region, instead of item, and set the unit to the item, perhaps it will only register when the item is dropped in the region. You should be able to move a item that has been dropped.
+ I have it so i just move around a specific unit i've placed manually on the map... so .. if i create a new instance... obviously the trigger wont work the same for that same unit... I of course have no idea how to work around that because I'm pretty new to this... :/
The workaround would be to use a variable to represent your unit instead of a value. When you create a new instance, simply set the variable to hold the new instance instead of the old one.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Okay so I'm finally getting a bit better with managing triggers... however there are still some problems I have.
ATM I have it so theres an item in the map which must be brought to a certain location for a trigger to enable... so i made the event "item enters region"
however tis also makes it so if the person just walks into the region with the item inside their inventory, the trigger enables...
After the trigger enables the item is supposed to teleport back to its initial location through a point i put. but when its in the inventory its impossible to 'move' the item unit BACK to where it came from! thus the trigger continuously occurs if u keep walking into the same region... (this increases the score by 1 so obviously if u can abuse it and just keep walking in and out thats bad)
Is there anyway to make it only trigger outside of the unit? Or is there anyway to have the item drop out of the unit so it can be moved back? Or any other solution I can't think of?
I don't have much experience with the actual items themselves, but if you can use Unit Enters Region, instead of item, and set the unit to the item, perhaps it will only register when the item is dropped in the region. You should be able to move a item that has been dropped.
Ah sorry, the i DID use Unit enters Region for it... the unit though is the item that i placed on the map!
And thats what i thought, but unfortunately it seems the item makes the unit also register as the item...
@Mursh_: Go
Can't you remove the item out of the inventory with a trigger? And then create a new instance of the item at the point where u want it?
Just an idea, i don't have much experience with items/inventory stuff...
Ahh, but how exactly do you do that?
+ I have it so i just move around a specific unit i've placed manually on the map... so .. if i create a new instance... obviously the trigger wont work the same for that same unit... I of course have no idea how to work around that because I'm pretty new to this... :/
My suggestion is attempt to use the Remove Unit trigger to get rid of the item.
Then remake it where you want it.
@Mursh_: Go
The workaround would be to use a variable to represent your unit instead of a value. When you create a new instance, simply set the variable to hold the new instance instead of the old one.