Ai

cleeezzz

The Undead Ranger.
Reaction score
268
Code:
AI AOW
    Events
        Time - Every 20.00 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in AI_BG and do (Actions)
            Loop - Actions
                Set AI_AOW_Loc = (Position of (Picked unit))
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Life of (Picked unit)) Less than 10000.00
                    Then - Actions
                        Destructible - Pick every destructible within 1000.00 of AI_AOW_Loc and do (Actions)
                            Loop - Actions
                                Set AI_Tree = (Picked destructible)
                        Unit - Order (Picked unit) to Night Elf Ancients - Eat Tree AI_Tree
                    Else - Actions
                        Unit - Order (Picked unit) to Night Elf Ancients - Root AI_AOW_Loc
                Custom script:   call RemoveLocation(udg_AI_AOW_Loc)

this code picks all Ancients of War owned by the AI, its supposed to eat a tree if its life is under max and root if its max. but for some reason, its rooting when it has less than 10000 hp. i believe its the actual blizzard AI doing this but im not running any AI scripts. help?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top