• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[AI] How to run a different AI script for a Computer Player?

Level 14
Joined
Jan 10, 2023
Messages
260
Is it possible to run a different AI script for the same player?
I don't think so. You might be better off making one AI script that can change races depending on some custom conditions, this might be very difficult, or maybe utilizing unused player slots, having computer players that sit unused until a particular race is chosen.

Both ways seem complicated, but possible. Using unused slots might be easier.

If this is all done at the start of the game, maybe just don't start anything until the host/player configures the AI.
 
You can 100% run a different AI script after already using one.
It is true you can't "turn it off" but you could always just run a blank script for the player.


However you can not run multiple scripts for the same player at once.
 
Level 28
Joined
Feb 2, 2006
Messages
1,638
You can 100% run a different AI script after already using one.
It is true you can't "turn it off" but you could always just run a blank script for the player.


However you can not run multiple scripts for the same player at once.
So why does the AI nothing after running a different script? They only collect gold from the mine. Or are you talking about running an empty script and then a non-empty script but after that you can't change anyhting since the non-empty already runs?!
 
So why does the AI nothing after running a different script? They only collect gold from the mine. Or are you talking about running an empty script and then a non-empty script but after that you can't change anyhting since the non-empty already runs?!
Pretty sure.

As Chaosium said make sure the second script doesn't have any errors otherwise they'll default to just harvesting gold.
 
Top