BloodReaver
New Member
- Reaction score
- 2
Hey, I would like to know hot to change your -name in a a game and the -color like -wild etc. Thanks
Code:Actions Player - Set name of Player 1 (Red) to HEY! Player - Set name of Player 4 (Purple) to HELLO! Player - Set name of Player 10 (Light Blue) to GREAT!
Name Changer
Events
Player - Player 1 (Red) types a chat message containing -name as A substring
Player - Player 2 (Blue) types a chat message containing -name as A substring
Player - Player 3 (Teal) types a chat message containing -name as A substring
Player - Player 4 (Purple) types a chat message containing -name as A substring
Player - Player 5 (Yellow) types a chat message containing -name as A substring
Player - Player 6 (Orange) types a chat message containing -name as A substring
Player - Player 7 (Green) types a chat message containing -name as A substring
Player - Player 8 (Pink) types a chat message containing -name as A substring
Player - Player 9 (Gray) types a chat message containing -name as A substring
Player - Player 10 (Light Blue) types a chat message containing -name as A substring
Player - Player 11 (Dark Green) types a chat message containing -name as A substring
Conditions
(Substring((Entered chat string), 1, 6)) Equal to -name
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Length of (Entered chat string)) Greater than 27
Then - Actions
Set NewName = (Substring((Entered chat string), 7, 27))
Else - Actions
Set NewName = (Substring((Entered chat string), 7, (Length of (Entered chat string))))
Player - Set name of (Triggering player) to NewName
Events
Player - Player 1 (Red) types a chat message containing -red as An exact match
Player - Player 2 (Blue) types a chat message containing -red as An exact match
Player - Player 3 (Teal) types a chat message containing -red as An exact match
Player - Player 4 (Purple) types a chat message containing -red as An exact match
Player - Player 5 (Yellow) types a chat message containing -red as An exact match
Player - Player 6 (Orange) types a chat message containing -red as An exact match
Player - Player 7 (Green) types a chat message containing -red as An exact match
Player - Player 8 (Pink) types a chat message containing -red as An exact match
Player - Player 9 (Gray) types a chat message containing -red as An exact match
Player - Player 10 (Light Blue) types a chat message containing -red as An exact match
Player - Player 11 (Dark Green) types a chat message containing -red as An exact match
Conditions
Actions
Player - Change color of (Triggering player) to Red, Changing color of existing units
Blue
Events
Player - Player 1 (Red) types a chat message containing -____ as An exact match
Conditions
Actions
Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Actions)
Loop - Actions
Animation - Change (Picked unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency