| 09-03-2009, 08:25 PM | #1 |
Right, I need help with a little something. I have this spell that can target a Gold Mine. The effect of this spell is that it creates a Dummy Builder which is ordered to build the custom haunted gold mine on the Gold Mine. The triggers work fine if it's an ordinary Haunted Gold Mine which is ordered to be built. When the triggers say "order (last created unit) to build a Custom Haunted Gold Mine at (Position of TempUnit)", nothing happens. When the triggers say "order (last created unit) to build a Haunted Gold Mine at (Position of TempUnit)", you can briefly see the transparent 'blueprint' of the Haunted Gold Mine (despite it not having the model of the Haunted Gold Mine), but then nothing happens. If the Dummy Builder is manually ordered to build the Custom Haunted Gold Mine, it works fine without any problem. The problem is that WarCraft seems unable to trigger-build a custom Haunted Gold Mine. I've tried to circumvent the problem by replacing the Gold Mine with the Custom Haunted Gold Mine and a few other things, but to no avail. Can anyone help me? |
| 09-03-2009, 08:59 PM | #2 |
Get builder and target gold mine and do: call IssueTargetOrderById(whichPeon, <haunted gold mine rawcode>, goldMine) ex: call IssueTargetOrderById(GetTriggerUnit(), 'h000', GetSpellTargetUnit()) |
| 09-04-2009, 01:51 PM | #3 |
It works! thnx a million Bobo_The_Kodo :D Btw, is there an order string for when you leave a build structure menu? Like cclicking on Summon Building, but then hitting escape. Is there a way to detect that? |
