• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Advanced Build Menu

Status
Not open for further replies.
Level 7
Joined
May 11, 2008
Messages
177
I have trigger set to make a custom build menu.. only problem is the AI does not read this function even though its a custom AI.. Is there a build menu i can use to make AI realize the build menu is there??

My Trigger Set Up
Event
Unit - Unit Begins Casting an Ability
Conditions
N/A
Action
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Condictions
(Ability being cast) Equal to Advance Build (NOTE-CUSTOM ABILITY)
Then - Actions
Unit - Replace (Casting Unit) with a Peasant using old units life n mana
Selection - Select (Last Created Unit) for (Owner of (Casting Unit))
Game - Force (Owner of (Triggering unit)) to press the key B
Else - Actions

NOTE - This part of the Trigger is just vise versa to turn advanced builder back to regular builder...........

Action
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Build (REGULAR ABILITY)
Then - Actions
Unit - Replace (Casting Unit) with a Peasant using old units life n mana
Selection - Select (Last Created Unit) for (Owner of (Casting Unit))
Game - Force (Owner of (Triggering unit)) to press the key B
Else - Actions
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
Use last replaced unit instead of last created unit.

Then if the force B key doesn't work, replace it with this:
  • Custom script: call IssueImmediateOrderById( bj_lastReplacedUnit , 851994 )
It's a direct order to open up the build menu. You can remove the select unit if you use this.
 
Level 7
Joined
May 11, 2008
Messages
177
WOW i am shocked... no glitched and smooth trigger set-up.. nice job man... +rep

just one more question so i dont have to open anther thread... instead of having a "UPKEEP" settings in the top right of the interface can i put a mini oil icon there with a oil amount????
 
Level 7
Joined
May 11, 2008
Messages
177
oh well oil is now extra gold ;)..... hey Maker that trigger you helped me out with works great.. only problem is the peasant on the CUSTOM AI still does not use it... i dont kno if this is important but i have the "Advanced Build" ability over the "WindWalk" ability.. btw i am using Blizzards Default AI Editor..
 
Status
Not open for further replies.
Top