Hey there, been a while ..
So recently i picked up an idea and the map itself is no problem, but i have started getting into AI and trying to incorporate it with triggers cause the AI Editor will not work for my purpose.
Well story aside this is the first of probably many triggers but i have already encountered a problem where it will start to do what it is supposed to do and then just ... stop ..
Im guessing it's because the "position of unit" is not large enough for the building and thus it can not build it, any suggestions?
So recently i picked up an idea and the map itself is no problem, but i have started getting into AI and trying to incorporate it with triggers cause the AI Editor will not work for my purpose.
Well story aside this is the first of probably many triggers but i have already encountered a problem where it will start to do what it is supposed to do and then just ... stop ..
Im guessing it's because the "position of unit" is not large enough for the building and thus it can not build it, any suggestions?
-
BotBuild
-
Events
- Time - Every 3.00 seconds of game time
- Conditions
-
Actions
-
Player Group - Pick every player in BotGroup and do (Actions)
-
Loop - Actions
- Set VariableSet BotCheckBuildable = (Position of BotBuilder[(Player number of (Picked player))])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Terrain type at BotCheckBuildable) Equal to Lordaeron Summer - Rock
-
Then - Actions
- Unit - Order BotBuilder[(Player number of (Picked player))] to Move To StartUnitPoints[(Player number of (Picked player))]
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- BotBuilding[(Player number of (Picked player))] Equal to False
-
Then - Actions
- Unit - Order BotBuilder[(Player number of (Picked player))] to build a Barracks at (Position of BotBuilder[(Player number of (Picked player))])
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Custom script: call RemoveLocation(udg_BotCheckBuildable)
-
Loop - Actions
-
Player Group - Pick every player in BotGroup and do (Actions)
-
Events