• 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.

[Trigger] put computer player ingame.

Status
Not open for further replies.
Level 4
Joined
Jun 9, 2008
Messages
86
i are working on a systeam where if there is 5 or less players ingame it make a dialog and ask if they want to place some computers players so they get more players ingame.

i have made the dialog but now i need to make the action there put computer players in the game at a random starting posistion.

i have looked arround and i don't have an any idea how to make this.

i hope any of you could help me with this :)

best regards

wuss
 
Level 4
Joined
Apr 25, 2008
Messages
75
Well I'm not that great but here goes:

You need triggers that control the computer anyway right? (The AI) So why not just have them initially off and when the players press Yes on the dialog box or whatever it is you have (when you want to add the computer players) why not just make the action for that:
Turn on AI triggers? Anyway I think I've got it the wrong way but good luck anyway.
 
Level 4
Joined
Jun 9, 2008
Messages
86
well, yes, because i use the normal AI i havn't made the AI my self. just need to enable the computer with start troops on the map.
 
Level 4
Joined
Jun 9, 2008
Messages
86
it works now but my new problem is that i need some kind of AI for the computers.
they gets ingame but the aren't moving, i just need them to do as they would in a normal game...
 
Level 4
Joined
Jun 9, 2008
Messages
86
i know they should, but they just standing still :S

they have ress units and then i put the 'run AI' on but they still only standing still :S
 
Level 16
Joined
May 1, 2008
Messages
1,605
Seas =)

Öhm, sry but atm I have some brainlags. So simply you got 5 Players or less. Then the players can open a dialog, where they can choose, if they want to add a CPU Player correct?

Because if you want run the normal AI script you NEED! this triggers first:
  • Melee Game - Create starting units (for all players)
  • Melee Game - Set starting resources (for all players)
Problem would be ( I guess ) - this trigger are for ALL Player, even for those, who are alrdy in game. Just create a custom AI and use this for the "joined" CPU Player - and with custom AI, you can create random AI - always new gameplay
 
Level 4
Joined
Jun 9, 2008
Messages
86
im not so much in with the AI how do i made custom AI?
you have a guide or tool i can use as beginner?

i would like if any one could tell e how tod o this :D
 
Last edited:
Status
Not open for further replies.
Top