computer heroes don't use their skills

P

pixartist

Guest
I make the enemy heroes in my map learn one of their respective skills per trigger but most of the time they just won't use it. how can i make them use their skills more often without triggers ?
 

DBZ-123

TH.net Regular
Reaction score
19
Wait your telling a computer to use its ability's? Then you need to use triggers. Unless a passive
 

theDTD

Active Member
Reaction score
8
>then you need also to use triggers for them to use it,
>ex:
E: computerhero is attacked
C: attacking unit is a hero = true
A: order your computer hero to (use skill)'
 

vypur85

Hibernate
Reaction score
803
Just to mention. Not sure if it's just me but, 'computer slot' players are quite stubborn when being ordered to cast spells (this is true for dummy units, when ability is added, levelled and ordered). Not sure why. This does not happen if the slot is set to 'none' or 'user'.
 

ShadowBlade

New Member
Reaction score
10
If you want them to cast them in the same situation as melee game, do: (freehanded :()
Trigger:
  • AI
    • Melee Game - Run AI
 

igor1222

New Member
Reaction score
2
Trigger:
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Melee Game - Use melee time of day (for all players)
      • Melee Game - Limit Heroes to 1 per Hero-type (for all players)
      • Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
      • Melee Game - Set starting resources (for all players)
      • Melee Game - Remove creeps and critters from used start locations (for all players)
      • Melee Game - Create starting units (for all players)
      • Melee Game - Run melee AI scripts (for computer players)
      • Melee Game - Enforce victory/defeat conditions (for all players)


This is the default trigger everytime you start a new default map with the Editor. What you say (Shadowblade) is, this
Trigger:
  • Actions
    • Melee Game - Run melee AI scripts (for computer players)


This normally makes computer controlled units, such as heroes do as you describe pixartist.
 

istar

New Member
Reaction score
31
i believe that the meelee ai script only works if your custom abilities is made by modding the default ability, not new custom ability
else triggers is the only way i think
 
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