Author Topic: send one of several text to an ingame chat  (Read 1862 times)

Hanzsel

  • Guest
send one of several text to an ingame chat
« on: February 02, 2018, 05:06:45 PM »
Hi,
I would like to send one of several text to an ingame chat based on something I say.
It's no problem sending a single command but I like va to send one of several.
Is this possible?

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: send one of several text to an ingame chat
« Reply #1 on: February 02, 2018, 05:29:04 PM »
Can you elaborate?


If you're looking to send a random phrase from a list, you can use the "{TXTRANDOM:}" token:
Code: [Select]
Quick Input, '{TXTRANDOM:Hello;Hi;Howdy}'

You can also embed this token inside another to provide more variation:
Code: [Select]
{TXTRANDOM:Howdy-ho {TXTRANDOM:partner;buddy};{TXTRANDOM:Hello;Hi;Howdy} {TXTRANDOM:there;}}