ai is wierd

exge

New Member
Reaction score
15
ok, i made a ai that plays the game quite well, the thing is .. why do they keep dropping their items in front of the fountain ....
 
R

Rollo123

Guest
It might be because they are trying to buy items but have a full inventory. Have a look see and if its that i might be able to help you with it.
 

exge

New Member
Reaction score
15
sure .. here you go

Code:
boots of speed good
    Events
        Unit - A unit enters good revive <gen>
    Conditions
        ((Owner of (Entering unit)) controller) Equal to Computer
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Entering unit) has an item of type Boots of Speed) Equal to False
            Then - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Owner of (Entering unit)) Current gold) Greater than or equal to 500
                    Then - Actions
                        Hero - Create Boots of Speed and give it to (Entering unit)
                        Player - Add -500 to (Owner of (Entering unit)) Current gold
                    Else - Actions
            Else - Actions
and no, i checked their inventory ... its not full
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top