How to create a computer?

staticfrog

New Member
Reaction score
1
How do you create a computer that spawns units at their building? When you kill the building you win. I'm just testing what you can do world editor and I can't find a way to do this. Would I have to use the AI editor?
 

Nherwyziant

Be better than you were yesterday :D
Reaction score
96
For the training order...
Trigger:
  • Unit - Order BuildingDude_24<gen> to train/upgrade to a Footman


For the victory condition...
Trigger:
  • Win
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Dying unit) Equal to BuildingDude_24 <gen>
    • Actions
      • Game - Defeat (Owner of (Dying unit)) with the message: Defeat!
      • Game - Victory (Owner of (Killing unit)) (Show dialogs, Show scores)
 

staticfrog

New Member
Reaction score
1
Thanks, also I made a custom unit, how do I add it into the game? I know, newb question but I couldn't find the answer in search.
 

Nherwyziant

Be better than you were yesterday :D
Reaction score
96
unit.png


Or if you mean by trigger...
Trigger:
  • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing 270 degrees
 

staticfrog

New Member
Reaction score
1
Thank you so much!!
Testing it now

Doesn't work, just says I win when I enter game.
For the computer trigger I have
Trigger:
  • Computer
    • Events
      • Time - Every 20.00 seconds of game time
    • Conditions
      • (Player 1 (Red) slot status) Equal to Is playing
    • Actions
      • Unit - Order Goblin Merchant 0000 <gen> to train/upgrade to a Footman

For the win I have
Trigger:
  • Win
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Dying unit) Equal to Goblin Merchant 0000 <gen>
    • Actions
      • Game - Defeat (Owner of (Dying unit)) with the message: Defeat!
      • Game - Victory (Owner of (Killing unit)) (Show dialogs, Show scores)

Everything is exactly the same except building

I changed the building to sky-fury tower. I think the problem is that the tower is on my side.
 

Tawnttoo

New Member
Reaction score
36
I believe that you have
Trigger:
  • Melee Game - Enforce victory/defeat conditions (for all players)

still in your map. Delete it.
 
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