HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hiding unit abilites.

10-23-2004, 07:46 PM#1
AntJAB
Edit: I edited this tread to keep from makign too many so close to each other.
The origonal can be found below, if you care.
I've never bothered with a broad range chat strings, so I ran into a block.
I seem to only find specific players in Player - Chat Message (Player 1-12), when I would like to just be able to check for all players to see if one types the message.
It would be nice to not have to copy the triger for all the players.
A Player types...
instead of
Player 1 / Player 2 / Player 3 types...

----------------------------------------------------
I have an allied computer hero that I would like to be able to sell an item to other playe heros. So I gave the computer hero the select unit ability, no biggy.
However, the computer hero also has other abilities, and when the human's hero is selected you can see the computer's abilities.

The only problem with this is asthetic. I don't mind that players can see them, but I would rather they not.

Thanks.
10-23-2004, 07:52 PM#2
rtm2
Quote:
Originally Posted by AntJAB
I have an allied computer hero that I would like to be able to sell an item to other playe heros. So I gave the computer hero the select unit ability, no biggy.
However, the computer hero also has other abilities, and when the human's hero is selected you can see the computer's abilities.

The only problem with this is asthetic. I don't mind that players can see them, but I would rather they not.

Thanks.
I dont think thats possible...but I swear I think I saw something in the unit section of the trigger editor that said Hide ability. or you could just remove the abilitys unless they are needed.
10-23-2004, 08:02 PM#3
AntJAB
They are definantly needed. But it just struck me, all of his abilities are auras... I could just give him an item with the auras on it. Rofl. I'm stupid.
10-23-2004, 11:06 PM#4
AFB-DieHard
You can just copy the events for each player, you don't have to copy the whole trigger!

Like

Events
Player1 types a message
Player2 types a message
Player3 types a message
...

Actions
Your Actions
10-24-2004, 12:41 AM#5
Guest
You can't do it for `any player types' because blizzard, unfortunately, did not provide a native with that function... and, hm, they didn't make a batch "register all players" function with a loop. I'm afraid the easiest way to register events for all players is to loop in the InitTrig function... the bit underneath the `//========' when you convert a trigger to custom text. The problem being, you can't change the trigger action functions later on if you don't know JASS...

Does WEU have a batch function for this? o.0
10-24-2004, 02:06 AM#6
AntJAB
Unfortunately I don't know much on custom programming, I'm only taking my first Java class this year. As for what DieHard said, I always thought the even list was considered an 'AND', not 'OR'.

Player 1 types...
AND
Player 2 types...
AND
Player 3 types...

instead of
Player 1 types...
OR
Player 2 types...
OR
Player 3 types...

Of course, I could be completely wrong.
And if I am wrong, my life could be so much easier.
10-24-2004, 02:45 AM#7
Guest
It only takes one event to make a trigger run ^ ^

So yes, you can do all of them in one trigger. (that's what GetTriggerPlayer() is for, after all!) But it's still more work than using loops in the InitTrig portion after converting it to JASS.. =P
10-24-2004, 03:38 AM#8
AntJAB
Rofl, I now understand that it only takes one event.
But I didn't understand a single thing yuo said after that. x.x

Happy reputation for all. ;)