• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Trigger help with running AI script

Status
Not open for further replies.
Level 4
Joined
Oct 1, 2004
Messages
77
Hey guys,

I've been working on my altered melee for some time and I was wondering how would I get the game to run my custom AI I have made Through triggers?

My race is based off the orcs so what I want is when the game starts all computer players who are equal to orcs to run my AI script

Hope that was easy to understand because I'm really lost

thanks

Roadkill
 
Level 19
Joined
Feb 25, 2009
Messages
2,004
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Race of (Picked player)) Equal to Orc
            • Then - Actions
              • AI - Start melee AI script for (Picked player): <Name>.ai
            • Else - Actions
 
Level 4
Joined
Oct 1, 2004
Messages
77
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Race of (Picked player)) Equal to Orc
            • Then - Actions
              • AI - Start melee AI script for (Picked player): <Name>.ai
            • Else - Actions

Legend! I just don't know how to get the "(Race of (Picked player)) Equal to Orc" line in the trigger editor. Do you think you could guide me :D +1 by the way
 
Level 4
Joined
Oct 1, 2004
Messages
77
Cheers Guys, My AI seems a bit stuck at the moment It gets all it's builders and then it pauses... not sure how to make it more active it seems all correct in the building tree. they replace the orc AI yet i've chosen the race to custom, Maybe that's the problem?
 
Status
Not open for further replies.
Top