HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How do i do a chat command

08-13-2006, 03:36 AM#1
Lord_of_heaven
like someone writes something and it shows it in a text to everyone (like in d&d)
08-13-2006, 03:45 AM#2
DioD
Trigger:
Untitled Trigger 001
Collapse Events
Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
Conditions
Collapse Actions
Floating Text - Create floating text that reads (Entered chat string) at (Center of (Playable map area)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Show (Last created floating text) for Player Group - Player 8 (Pink)
Floating Text - Change the fading age of (Last created floating text) to 4.00 seconds

this will monitor any chat event for player 1.

i never used gui for texttags, but you can use something like this
08-13-2006, 04:43 AM#3
Lord_of_heaven
Trigger:
Event
Player - Player 1 (Red) types a chat message containing as A substring
Condition
Action
Game - Display to (all players) for 20.00 seconds the text: (Entered chat string)


That what i did but how can i put a name infront?
08-13-2006, 05:36 AM#4
DioD
Cant understand you...
Plz make some comment for your last post.
08-13-2006, 10:25 AM#5
Fireeye
Alright, first please post your Triggers better, it doesn't look nice.
Second, here's your trigger.
Trigger:
Collapse Events
Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
Conditions
Collapse Actions
Game - Display to (All players) for 20.00 seconds the text: ((Name of (Triggering player)) + (: + (Entered chat string)))
08-13-2006, 05:26 PM#6
Lord_of_heaven
Oh ty and ill b carefull but where you took the +(:+(Entered chat string)))
08-13-2006, 05:46 PM#7
Blade.dk
"Concatenate Strings"