Recent Topics

Ads

Macro - Role-Play text list

Chat about everything else - ask questions, share stories, or just hang out.
User avatar
blaqwar
Posts: 471

Re: Macro - Role-Play text list

Post#11 » Tue Feb 14, 2017 9:39 pm

Well there you go, you're getting the help of a master addon writer/macro magician/UI mechanic/toast connoiseur. :D

Ads
User avatar
Glorian
Posts: 5004

Re: Macro - Role-Play text list

Post#12 » Wed Feb 15, 2017 12:20 pm

Hmm. Just checked castsequencer today. It activates abilities by their ID.

Have to check later if your own macros have an ID too. Then you can simply fire one macro after the next with only one button.

No randomize but still lots of different ones.
Hell I will do this for my songs. :)

User avatar
Hrolfr
Posts: 24

Re: Macro - Role-Play text list

Post#13 » Wed Feb 15, 2017 12:49 pm

Yes, it is perfect for songs, it just misses the random value. Thank you for checking anyway.

Might be something like that :

/script SAY("Chat", SystemData.ChatLogFilters.SAY, towstring(tostring(L"Khazad","blabla","something")))

But it's not diplaying anything, can't fint the right commands, the only thing I'm sure is /script :D.
Image

User avatar
sullemunk
Addon Developer
Posts: 1233

Re: Macro - Role-Play text list

Post#14 » Wed Feb 15, 2017 3:39 pm

Just came back home, and it only took a few minutes to make it :D (did it most in my mind while i was away)

Code: Select all

/script StringChatTables = {"Phrase 1","Phrase 2","Phrase 3","Phrase 4","Phrase 5","Phrase 6"} ;
SendChatText(L"/say "..towstring(StringChatTables[math.random(1,#StringChatTables)]), L"")
just change the phrases with what you want, or just add more (with a comma , and quotes "" ) . It will automaticly calculate the numbers of phrases in the table and randomize it
Image
Image Ethreal   Image Corque   Image Urgiz   Image Loxley   Image Chilli   Image Maduza

User avatar
Hrolfr
Posts: 24

Re: Macro - Role-Play text list

Post#15 » Wed Feb 15, 2017 3:58 pm

Thank you very much ! May Valaya blessing be upon you ! :D

I'll update first post in case someone is interested !

Edit : this is really awesome :P
Image

User avatar
Glorian
Posts: 5004

Re: Macro - Role-Play text list

Post#16 » Wed Feb 15, 2017 11:30 pm

So you simply put the code in an macro?
Or in a local script file?

User avatar
sullemunk
Addon Developer
Posts: 1233

Re: Macro - Role-Play text list

Post#17 » Thu Feb 16, 2017 10:17 am

Glorian wrote:So you simply put the code in an macro?
Or in a local script file?
put it in a macro
Image
Image Ethreal   Image Corque   Image Urgiz   Image Loxley   Image Chilli   Image Maduza

User avatar
Glorian
Posts: 5004

Re: Macro - Role-Play text list

Post#18 » Thu Feb 16, 2017 11:08 am

Ok will try that.

Ads
User avatar
blacksand
Posts: 13

Re: Macro - Role-Play text list

Post#19 » Thu Jun 22, 2017 4:19 pm

sullemunk wrote:Just came back home, and it only took a few minutes to make it :D (did it most in my mind while i was away)

Code: Select all

/script StringChatTables = {"Phrase 1","Phrase 2","Phrase 3","Phrase 4","Phrase 5","Phrase 6"} ;
SendChatText(L"/say "..towstring(StringChatTables[math.random(1,#StringChatTables)]), L"")
just change the phrases with what you want, or just add more (with a comma , and quotes "" ) . It will automaticly calculate the numbers of phrases in the table and randomize it
But macro lenght is only 255 characters, is there any way to bypass it?

User avatar
sullemunk
Addon Developer
Posts: 1233

Re: Macro - Role-Play text list

Post#20 » Thu Jun 22, 2017 4:45 pm

Well, without making an addon that creates the phrases automaticly, you can make multiple macros; one that sets the phrases and one that randomize and execute them
Image
Image Ethreal   Image Corque   Image Urgiz   Image Loxley   Image Chilli   Image Maduza

Who is online

Users browsing this forum: Gladiolix, Google Adsense [Bot] and 11 guests