HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Player - Chat message

08-18-2002, 10:05 PM#1
Mandork
I'm not very good with JASS, or more correctly, I don't know sh*t about it, so I would really appreciate your help with the following task. I need (well, I won't die without it, but still) kind of a chat message "engine" that sets a variable with the player who sent the last matching chat message. I'm making a map for 10 players, so I don't really want to make a trogger for every player. Anyone have a solution?
08-18-2002, 10:17 PM#2
Guest
Add the event for each player and don't refer to the player by their name, but by Triggering Player in the Actions and Conditions.
Multiple events for one trigger are always treated as if they were connected with OR.
Eg:
Events:
Player 1 enters a chat message with "moo" as a direct match
Player 2 enters a chat message with "moo" as a direct match
Actions:
Create 1 Footman for Triggering Player at Center of Playable Map
08-18-2002, 10:34 PM#3
Mandork
Hmm, I really need some sleep.. I definetly should have understood that. Oh well, thanks anyway! :)