Ai

BSJikan

New Member
Reaction score
5
How do I set it so that an AI can select a Random Hero from a Tavern?

I plan on making a Hero Arena, but in Melee mode. So you get one Hero, but play him in Melee Mode. This Game mode is more of a fancy for me and a couple friends to play around with, but I figured I'd get some of the best help out there.
 

Tinki3

Special Member
Reaction score
418
How do I set it so that an AI can select a Random Hero from a Tavern?

It would be easier if you made a trigger to make a random hero get selected through random integers via triggers.

Then after the hero is created, you can change the hero's ownership to that of your desire, and his colour.
 

BSJikan

New Member
Reaction score
5
just to confirm I got this right,
1) make a Trigger that lets me choose a Random Hero
2) Make another Trigger that allows me to change ownership of said Random Hero?

Well, isn't there a way I could set up a "Random Button", and just have the AI hit that button via a Trigger or something?
 

Tinki3

Special Member
Reaction score
418
>just to confirm I got this right,
1) make a Trigger that lets me choose a Random Hero
2) Make another Trigger that allows me to change ownership of said Random Hero?


That's right.

>Well, isn't there a way I could set up a "Random Button", and just have the AI hit that button via a Trigger or something?

Yes:

Code:
Force Button
    Events
    Conditions
    Actions
        Game - Force Player 12 (Brown) to press the key X

You would only want the AI to press this key when they have units near a tavern or something.
 
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