Hi,
I'm trying to get the Race of each player.
But I'm stucked it found in the functions the Player AttributID I've chosen Race
So my Code looks like this. As you see I'm stucked now ;) Is there actually a way to get the player race or am i triying something impossible
General-If(Conditions)thendo(Actions)elsedo(Actions)IfAndConditions(Raceofplayer1)==Terran(Raceofplayer2)==TerranThenUI-ShowgameUIfor(Allplayers)UI-Display"Your Enemy Is Terran"for(Allplayers)toSubtitleareaElseGeneral-If(Conditions)thendo(Actions)elsedo(Actions)IfAndConditions(Raceofplayer1)==Terran(Raceofplayer2)==ProtossThenUI-ShowgameUIfor(Allplayers)UI-Display"Your Enemy Is Protoss"for(Allplayers)toSubtitleareaElseGeneral-If(Conditions)thendo(Actions)elsedo(Actions)IfAndConditions(Raceofplayer1)==Terran(Raceofplayer2)==ZergThenUI-ShowgameUIfor(Allplayers)UI-Display"Your Enemy Is Zerg"for(Allplayers)toSubtitleareaElse
General-If(Conditions)thendo(Actions)elsedo(Actions)IfAndConditions(Raceofplayer1)==Terran(Raceofplayer2)==TerranThenUI-ShowgameUIfor(Allplayers)UI-Display"Your Enemy Is Terran"for(Allplayers)toSubtitleareaElseGeneral-If(Conditions)thendo(Actions)elsedo(Actions)IfAndConditions(Raceofplayer1)==Terran(Raceofplayer2)==ProtossThenUI-ShowgameUIfor(Allplayers)UI-Display"Your Enemy Is Protoss"for(Allplayers)toSubtitleareaElseGeneral-If(Conditions)thendo(Actions)elsedo(Actions)IfAndConditions(Raceofplayer1)==Terran(Raceofplayer2)==ZergThenUI-ShowgameUIfor(Allplayers)UI-Display"Your Enemy Is Zerg"for(Allplayers)toSubtitleareaElse
but no messages displayed
Looking at your code, it seems that (Race of Player 1) == Terran is completely unnecessary. Try removing that and testing it again. The "And" should also be removed as it is And on default.
All I can think of is that you are testing it locally, and Player 2 is Neutral race by default
before i reply here my difficulty...
i had done some search for similiar functions, and really found that "Controller of Player".
I tried to use it but did not find much use from it,
but after seeing your comment i decided to go there again and explore better that function
and it really is the function i needed.
Thankx
Hi, I'm trying to get the Race of each player. But I'm stucked it found in the functions the Player AttributID I've chosen Race So my Code looks like this. As you see I'm stucked now ;) Is there actually a way to get the player race or am i triying something impossible
What's this? This doesn't look like terrain?
I use this in galaxy code:
Should be similar in GUI
@Kueken531: Go
Well i made this one
but no messages displayed
Looking at your code, it seems that (Race of Player 1) == Terran is completely unnecessary. Try removing that and testing it again. The "And" should also be removed as it is And on default.
All I can think of is that you are testing it locally, and Player 2 is Neutral race by default
This script helped me a lot.
But ... Based on this script ...
What function to use for detecting if the player is user or computer?
My idea is instead of using the function ...
UI - Display "..." for (...) to Subtitle area
I want to run another trigger, only for players who are computer, not users.
Thank to anyone who can help me in this.
Create a Parameter. idk.
Search for "Controller of Player". :)
Heres a Map.
@Mille25: Go
before i reply here my difficulty... i had done some search for similiar functions, and really found that "Controller of Player". I tried to use it but did not find much use from it, but after seeing your comment i decided to go there again and explore better that function and it really is the function i needed. Thankx
And with the great help from @Mugen245: Go
with is sample map ... And what a blessing that was. Now i'm back on track.
GRATEFUL to both, indeed ...
Later i will show the result of your help.