| 07-05-2005, 06:15 PM | #1 |
Reposted, a more "clean" post since I know the right trigger thats doing it now. |
| 07-05-2005, 07:00 PM | #2 |
That sole trigger can't crash the game as soon as it starts - a trigger would need to run at startup to do that. So your problem probably lies in another trigger. With a quick glance-over, I didn't notice anything particularly wrong with the trigger, but I might not have looked close enough. |
| 07-05-2005, 07:15 PM | #3 |
Well it crashed me and the host. Its a bad trigger, there is another that ties with it as explained below the trigger. |
| 07-05-2005, 09:29 PM | #4 |
I also see nothing wrong, but I bet if there is somthing we are looking over, its in the: Code:
Wait until ((TpDecide Equal to True) or (((Owner of (Casting unit)) is giving (Owner of (Target unit of ability being cast)) Alliance (non-aggression)) Equal to False)), checking every 0.10 seconds You might want to try using variables for some of those values instead. |
| 07-06-2005, 02:24 PM | #5 |
It is this trigger, I just tested it like 5 times. How would I change the second condition to a variable if its refering to the casting unit, and the target unit of the specific ability? EDIT; I Changed that trigger from or, to just wait until tpdecided=true same thing happens |
| 07-06-2005, 03:40 PM | #6 |
The first trigger now looks like this, and I know its not the problem anymore. Code:
Anti Tp
Events
Unit - A unit Begins casting an ability
Conditions
Or - Any (Conditions) are true
Conditions
(Ability being cast) Equal to Mass Teleport
(Ability being cast) Equal to Item Town Portal
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Target unit of ability being cast)) Equal to (Owner of (Casting unit))
Then - Actions
Do nothing
Else - Actions
Wait until (TpDecided Equal to True), checking every 1.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Casting unit)) is giving (Owner of (Target unit of ability being cast)) Alliance (non-aggression)) Equal to False
Then - Actions
Unit - Remove (Casting unit) from the game
Player - Add 5000 to (Owner of (Target unit of ability being cast)) Current gold
Game - Display to (Player group((Owner of (Target unit of ability being cast)))) for 30.00 seconds the text: Anti Tp has granted...
Game - Display to (Player group((Owner of (Target unit of ability being cast)))) for 30.00 seconds the text: Read |cff32cd32Fair...
Wait 120.00 seconds
Set TpDecided = False
Else - Actions
Wait 120.00 seconds
Set TpDecided = False |
