| 09-23-2002, 10:59 AM | #1 |
Guest | How to make a message appear to the person in a region? note:i want the msg to appear only to the person in the region not everyone or all ppl in a team! |
| 09-23-2002, 12:48 PM | #2 |
Try this: E: whatever trigger the display of the message C: A: pick every player in the region and display to picked player "lkasejrflidunlijn........" |
| 09-23-2002, 04:23 PM | #3 |
is there a 'pick player in region' action?? i tink you can only pick players from player group... can you pls clarify your solution?? thanks! :) |
| 09-23-2002, 06:11 PM | #4 |
Guest | Players aren't confined to regions. Units, however, are. If by "person in a region" you mean "The Player controlling some Unit in a region," you could do this: Pick every Unit in (Units in Region) and Display Text to Player(Owner of(Picked Unit)) A problem with this is if the Player has more than one Unit in the region, it would display the text multiple times. A solution would be to set up a boolean array: For A = 1 to 12 Set Display_Text[A] = False Pick every Unit in (Units in Region) and Set Display_Text[Player Number(Owner of(Picked Unit))] = True Pick every Player matching condition Display_Text[Player Number(Matching Player)] = True and Display Text to (Picked Player) If you mean literally where the Player is looking on the map, you may be able to do something with camera bounds, but I'm not sure how that would work. |
| 09-23-2002, 09:32 PM | #5 |
If you only want to display the message upon ENTERING the region, then you could do this: Event: A unit owned by [Player] enters [Region] Actions: Display to (All players matching condition (Owner of (Entering Unit/Triggering Unit) = Matching Player)) the text [Text] If you want to display it to everyone in a region at a GIVEN TIME, then you can probably use MagRoader's method. Be more specific though. |
| 09-24-2002, 04:13 AM | #6 |
Thanks for correcting me! Sorry about the careless mistake I had made. ;) MagRoader's trigger should work well. |
| 09-24-2002, 01:38 PM | #7 |
frankly speaking, i dont tink any of the solutions listed here will work... that is, unless you've proven it to work in a multiplayer situation... cos the display of text only occurs to player groups... so if you dont set the players themselves into different player groups first, no matter how you match them to the conditions, it will still display the text to a number of players and not only to the one triggering the event... moreover, you cant set which specific player you wanna display the text to... im looking for a solution as well but to no avail... i was looking at the triggers in WarChasers... i tink blizzard tried to do the same thing but doesnt work... |
| 09-24-2002, 03:47 PM | #8 |
Guest | If you're faced with a player group, you can use "Player Group(Player)" (It's called "Convert player to player group"). This will make a Player Group consisting of one player. That player can be "Triggering Player," "Picked Player," "Owner of Unit," "Player with Number #," etc. This is, literally, "setting the players into player groups first." Edit: Therefore, you can send text to the player you want. If you want to send it to player 1, for example, do Send Text to (Player Group(Player(1)). "All players matching condition" is also a player group. Edit 2: In Warchasers they did it under the "HeroSkillSelection" category. |
| 09-24-2002, 08:20 PM | #9 |
hmmmz... sounds logical... wil try tat out! thnx! ) |
