^f0 = green
^f1 = blue
^f2 = yellow
^f3 = red
^f4 = grey
^f5 = pink
^f6 = orange
^f7 = white
^f8 = black
^f9 = cyan
/say "^f9This text is cyan coloured"
bind "T" [ saycommand "^f9"]
^f0 = green = ^fg
^f1 = blue = ^fb
^f2 = yellow = ^fy
^f3 = red = ^fr
^f4 = grey = ^fa
^f5 = pink = ^fm (this is actually supposed to be a "magenta" but the colour changed over time)
^f6 = orange = ^fo
^f7 = white = ^fw
^f8 = black = ^fk
^f9 = cyan = ^fc
^f[0xFF0000] = Pure red
^f[0xFFFFFF] = White
^f[0x000000] = Black
ClassyRain {l Wrote}:Why do you want to know this?
Dratz-_C {l Wrote}:I wonder why the dialog no longer sounds when I talk with an icon and colored text.
Cheers
Dratz-_C {l Wrote}:I wonder why the dialog no longer sounds when I talk with an icon and colored text.
Cheers [Edit: sorry if this was off-topic.]
// compass/voice actions
voices = 0
addvoice = [
voices = (+ $voices 1)
alias (format "voice%1str" $voices) $arg1
alias (format "voice%1snd" $voices) (registersound $arg2 255 512 8 $arg3)
]
addvoice "argh" "voice/argh" 2
addvoice "lucky shot" "voice/luckyshot" 2
addvoice "nice shot" "voice/niceshot" 2
addvoice "boom" "voice/boom" 2
addvoice "damn" "voice/damnit" 2
addvoice "haha" "voice/haha" 2
addvoice "suck" "voice/suckit" 2
addvoice "pzap" "voice/pzap" 2
addvoice "yes~" "voice/yes" 2
addvoice "sorry" "voice/sorry" 2
addvoice "sry~" "voice/sorry" 1 // reuse
addvoice "no problem" "voice/noproblem" 2
addvoice "np~" "voice/noproblem" 1 // reuse
addvoice "no~" "voice/no" 2
addvoice "go go go" "voice/gogogo" 2
addvoice "gogogo" "voice/gogogo" 1 // reuse
addvoice "hang on" "voice/hangon" 2
addvoice "thanks" "voice/thanks" 2
addvoice "ty~" "voice/thanks" 1 // reuse
on_text = [
id = 0
reg = (format "%1~" (filter $arg4)) // the ~ allows absolute matching, like in yes/no/etc
loopwhile i $voices [= $id 0] [
str = (getalias (format "voice%1str" (+ $i 1)))
if (strncasecmp $str $reg (strlen $str)) [ id = (+ $i 1) ]
]
result (getalias (format "voice%1snd" $id))
]
reg = (format "%1~" (filter $arg4)) // the ~ allows absolute matching, like in yes/no/etc
bind "RETURN" [saycommand "^f["(getcolour -1)"]"]
bonifarz {l Wrote}:I like the idea to have your chat colour match your profile colour automatically:
- {l Code}: {l Select All Code}
bind "RETURN" [saycommand "^f["(getcolour -1)"]"]
With this simple one liner in your config.cfg, your chat colour is always identical to the playermodel colour you can set conveniently in the main menu's profile section.
Ulukai {l Wrote}:bonifarz {l Wrote}:I like the idea to have your chat colour match your profile colour automatically:
- {l Code}: {l Select All Code}
bind "RETURN" [saycommand "^f["(getcolour -1)"]"]
With this simple one liner in your config.cfg, your chat colour is always identical to the playermodel colour you can set conveniently in the main menu's profile section.
Hey, that's a great idea! Would be a cool option in the profile menu to make the chat color match the player color!
Users browsing this forum: No registered users and 0 guests