Hello, i think that is just that but if you want to know the error, is becouse im using a trigger wich active another but i think that is activating the trigger just one time and that trigger also have the event that ask for any unit death and that couse the error. But that event work very welll when i active the trigger at the beggining of the game.
You cannot disable and enable triggers during run time. This is because disable and enable are GUI compiler commands which govern if the respective objects will generate script or not during translation from GUI to Galaxy.
You can however turn triggers on and off. Triggers that are off will not be fired when events it is attached to occur. They can still be executed using the run trigger action however. If your problem is that you are running a trigger with the run trigger action that is off and it still works you can get around this using a conditional test to check if it really is off and only running it if it is not off. Do note that off trigger objects still do persist as an object so although they have no execution overhead they will still have memory resource overhead.
In order to help you further you will need to explain in detail the error that is happening. This includes both what you want (are expecting) to happen and what actually happens (the error). You should also post the triggers involved and everything related to them even if seemingly unimportant (as some times its the small things causing an error). As well as this you should post a map which can be used to easily and quickly reproduce the error as many difficult errors can only be found/fixed with a bit of hands on.
in my map im just active a mode that is in my trigger "mode mineral" from other trigger that is a dialog window at the begging and if you run my map you will find the error when you click the first option and wait the time go.
this is my map (i'm doing this in spanish that's why i uploaded this)
sry i foget o mention that i gain mineral cost from the unit that you kill.
https://mega.co.nz/#!fwhRBLyJ!hzQjsUPAKFJxZ6QZ1jGRcL1XCeNdyyzEd3Jkjx_tEAE
Like imperial good said, you should just use turn trigger on/off. You can also add a trigger is on condition to the trigger itself and set any run trigger actions to check conditions instead of ignoring them.
What on earth is that? Do you mean an example of a trigger written in Galaxy? Just view the compiled code of your map script as GUI compiles to reasonable ones.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello, i think that is just that but if you want to know the error, is becouse im using a trigger wich active another but i think that is activating the trigger just one time and that trigger also have the event that ask for any unit death and that couse the error. But that event work very welll when i active the trigger at the beggining of the game.
You cannot disable and enable triggers during run time. This is because disable and enable are GUI compiler commands which govern if the respective objects will generate script or not during translation from GUI to Galaxy.
You can however turn triggers on and off. Triggers that are off will not be fired when events it is attached to occur. They can still be executed using the run trigger action however. If your problem is that you are running a trigger with the run trigger action that is off and it still works you can get around this using a conditional test to check if it really is off and only running it if it is not off. Do note that off trigger objects still do persist as an object so although they have no execution overhead they will still have memory resource overhead.
In order to help you further you will need to explain in detail the error that is happening. This includes both what you want (are expecting) to happen and what actually happens (the error). You should also post the triggers involved and everything related to them even if seemingly unimportant (as some times its the small things causing an error). As well as this you should post a map which can be used to easily and quickly reproduce the error as many difficult errors can only be found/fixed with a bit of hands on.
in my map im just active a mode that is in my trigger "mode mineral" from other trigger that is a dialog window at the begging and if you run my map you will find the error when you click the first option and wait the time go. this is my map (i'm doing this in spanish that's why i uploaded this) sry i foget o mention that i gain mineral cost from the unit that you kill. https://mega.co.nz/#!fwhRBLyJ!hzQjsUPAKFJxZ6QZ1jGRcL1XCeNdyyzEd3Jkjx_tEAE
Like imperial good said, you should just use turn trigger on/off. You can also add a trigger is on condition to the trigger itself and set any run trigger actions to check conditions instead of ignoring them.
-do you mean activate that's what im doing -doing condition like those that i alrady did in the vote trigger ends?
i think that im not understanding at all to you.
by the way can anyone send me some explamte of a trigger made by personalizated script.
What on earth is that? Do you mean an example of a trigger written in Galaxy? Just view the compiled code of your map script as GUI compiles to reasonable ones.