HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need help with a Info trigger

09-18-2003, 06:46 AM#1
Chryosmere
Umm i need some help with this hero info thing. You click on a question mark thats a unit and it tells you info about the hero on the screen. I got it working with 1 but then i put 2 in and when i click on one of the info units both the info showed up. I don't know why because the conditions make it so u only get the info if u click on that exact unit heres the triggers..

Event:
Player - Player 3 (Teal) Selects a unit

Condition:
((Triggering player) Food max) Equal to 0
(Unit-type of (Triggering unit)) Equal to (Unit-type of Info 0010 <gen>)
((Triggering player) is an enemy of Player 1 (Red)) Equal to True

Action:
Player Group - Add (Triggering player) to Players
Game - Display to Players the text: |cffffcc00Telepathi...
Player Group - Remove (Triggering player) from Players

Then i made another one with is the same but triggering unit which has been clicked is a different unit. And also the info that come on the screen is different. See im justa noob and i stuff up everything lol. Plz Help, thnx.
09-18-2003, 08:46 AM#2
Krakou
This event doesn't have a triggering unit I guess.
Try with something like unit currently selected.
09-18-2003, 09:11 AM#3
Chryosmere
Hmm i'd love to be able to do unit currently selected or sumfin sept there just happens not to be anything like that so i dun havea clue wat to do...
09-18-2003, 09:40 AM#4
Saethori
I think I see the problem here.

Condition:
((Triggering player) Food max) Equal to 0
(Unit-type of (Triggering unit)) Equal to (Unit-type of Info 0010 <gen> )
((Triggering player) is an enemy of Player 1 (Red)) Equal to True


Try making it just (Unit Equal to Info 0010)

If all the heroes are marked with these Info question marks, then unless each one is it's own unit-type (AKA you make a custom unit for each one) then it's going to try to display all the messages at once, and naturally this doesn't work well.


Also, I'm assuming that the 'Food Max = 0' is because it's raised once a hero is selected and you don't them to get info after they get their hero.
09-18-2003, 11:30 AM#5
Chryosmere
Cool, thanks heeps mate i fixed it :D