- Joined
- May 20, 2009
- Messages
- 822
I need something to do this so my spell can be MUI compatible.
If it'd help, here's my trigger.
Maybe there's a work-around to this? Idk.
EDIT:
Alternative -
"Basically...The only way I can see this working is firstly removing the original order to build the structure, then issue the same order using the JASS function, which I think ignores the trigger to set the structure to unavailable...Right? I don't actually know. xD
I had another idea that once the build menu is exited (Figuring it someway to pick up on that, like the build order is issued would definitely do that. Or maybe a different unit is selected would be easier) then re-enable all the buildings. But that wouldn't work if someone is still in a build menu while the order from the opposite build menu is still being issued..."
Anything to even slightly push me along will be GREATLY appreciated.
If it'd help, here's my trigger.
-
Human Build Icons
-
Events
- Unit - A unit Is issued an order with no target
-
Conditions
-
Multiple ConditionsOr - Any (Conditions) are true
-
Conditions
- (Unit-type of (Triggering unit)) Equal to (==) Peasant
-
Conditions
-
Multiple ConditionsOr - Any (Conditions) are true
-
Actions
-
-------- IF WORKER PRESSED "BUILD" OR "ADVANCED BUILD" --------
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Multiple ConditionsOr - Any (Conditions) are true
-
Conditions
- (Issued order) Equal to (==) (Order(manashieldon))
- (Issued order) Equal to (==) (Order(manashieldoff))
-
Conditions
-
Multiple ConditionsOr - Any (Conditions) are true
-
Then - Actions
- -------- Advanced Construction --------
- Player - Make Town Hall Unavailable for training/construction by (Owner of (Ordered unit))
- Player - Make Farm Unavailable for training/construction by (Owner of (Ordered unit))
- Player - Make Barracks Unavailable for training/construction by (Owner of (Ordered unit))
- Player - Make Altar of Kings Unavailable for training/construction by (Owner of (Ordered unit))
- Player - Make Lumber Mill Unavailable for training/construction by (Owner of (Ordered unit))
- Player - Make Blacksmith Unavailable for training/construction by (Owner of (Ordered unit))
- Player - Make Scout Tower Unavailable for training/construction by (Owner of (Ordered unit))
- Player - Make Arcane Vault Unavailable for training/construction by (Owner of (Ordered unit))
- Player - Make Workshop Available for training/construction by (Owner of (Ordered unit))
- Player - Make Arcane Sanctum Available for training/construction by (Owner of (Ordered unit))
- Player - Make Gryphon Aviary Available for training/construction by (Owner of (Ordered unit))
- -------- FORCE "BUILD" KEY --------
- Custom script: call IssueImmediateOrderById(GetTriggerUnit(), 851994)
-
Else - Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Issued order) Equal to (==) (Order(windwalk))
-
Then - Actions
- -------- Basic Construction --------
- Player - Make Workshop Unavailable for training/construction by (Owner of (Ordered unit))
- Player - Make Arcane Sanctum Unavailable for training/construction by (Owner of (Ordered unit))
- Player - Make Gryphon Aviary Unavailable for training/construction by (Owner of (Ordered unit))
- Player - Make Town Hall Available for training/construction by (Owner of (Ordered unit))
- Player - Make Farm Available for training/construction by (Owner of (Ordered unit))
- Player - Make Altar of Kings Available for training/construction by (Owner of (Ordered unit))
- Player - Make Barracks Available for training/construction by (Owner of (Ordered unit))
- Player - Make Lumber Mill Available for training/construction by (Owner of (Ordered unit))
- Player - Make Blacksmith Available for training/construction by (Owner of (Ordered unit))
- Player - Make Scout Tower Available for training/construction by (Owner of (Ordered unit))
- Player - Make Arcane Vault Available for training/construction by (Owner of (Ordered unit))
- -------- FORCE "BUILD" KEY --------
- Custom script: call IssueImmediateOrderById(GetTriggerUnit(), 851994)
- Else - Actions
-
If - Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
-------- IF WORKER PRESSED "BUILD" OR "ADVANCED BUILD" --------
-
Events
Maybe there's a work-around to this? Idk.
EDIT:
Alternative -
"Basically...The only way I can see this working is firstly removing the original order to build the structure, then issue the same order using the JASS function, which I think ignores the trigger to set the structure to unavailable...Right? I don't actually know. xD
I had another idea that once the build menu is exited (Figuring it someway to pick up on that, like the build order is issued would definitely do that. Or maybe a different unit is selected would be easier) then re-enable all the buildings. But that wouldn't work if someone is still in a build menu while the order from the opposite build menu is still being issued..."
Anything to even slightly push me along will be GREATLY appreciated.
Last edited: