display message to show computer opponent race

Started by holyman2k, March 02, 2010, 10:17:44 PM

Previous topic - Next topic

holyman2k

Right now we can't change our own race or the computer's race, so when we start we have no idea what race we playing against, the the ai add a message to say what race i'm play against like
"ai 5.5 zerg"


helps a lot if you have a particular strategy against a race.

MiCrOMaN1

Where do you see that? I can't for the life of me find that text...
Our Greatest Resource is Our Mind ~ Kareem Abdul-Jabbar
Check this: http://img123.exs.cx/img123/4497/gif1.gif

DKSlayer

Quote from: MiCrOMaN1 on March 03, 2010, 12:09:47 AM
Where do you see that? I can't for the life of me find that text...

That isn't in the script. He is wanting it added. It would be fairly easy At the begining of each Race AI script you could add the following line.

TriggerDebugOutput(1, StringToText("One computer is an Protoss"), true);

Obioudly you would change the protoss to the race name of whatever race AI file you are putting this line into. Then whenever the computer fires up it's AI files then it would pop these messages one for each computer and then showing which race.
You could add this yourself or bug the developer.

chetjan

I would recommend not adding it as you will not always know the race someone else is playing and you can practice scouting. If you still want to add it do what DKSlayer suggests.

Yuna_Q

put below code to function terraninit at terran.galaxy file.

DebugAI("Player "+IntToString(player)+" is "+PlayerRace(player));


and other races too.

chetjan

It didn't work for me, but it could just be me failing (I would still not suggest it)