如何製作隨機say&emote一組的巨集? - WOW

Table of Contents

例如以下三組巨集:

--

/s DANCE!
/dance

--

/s Hellow!
/wave

--

/s WOW!
/amaze

--

我希望能做成隨機選其中一組!





我目前的寫法如下:

--

/run SendChatMessage(GetRandomArgument("DANCE!","Hellow!","WOW!"),"SAY")
/script s={"dance","wave","amaze"};DoEmote(s[random(1,3)])

--

但是這樣的效果是說跟表情各自分開的(廢話)

查了很久還是沒找到一組一組的寫法。

請問有沒有會寫巨集的大大能給我一點幫助?

--

All Comments

Lucy avatarLucy2015-03-13
不能這樣寫嗎?
/script rand=random([ 1, 3]);s={"DANCE!","Hellow!","W
Robert avatarRobert2015-03-14
OW!"};e={"dance","wave","amaze"};SendChatMessage(s[ra
nd],"SAY");DoEmote(e[rand])