Macro

From Bards Field
Revision as of 07:10, 22 August 2024 by Bingro (talk | contribs) (→‎With all /parts and lyrics)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Standard Macro Templates[edit]

Without /parts[edit]

"/title"

{
"/equip instrumentbox \r"
"/useitem left /remove [Instrument] \r"
"/equip [Instrument] \r"
pause 5
"/use [Music with max. 512 characters] \r"
"/narrate [Title] by [Composer] \r"

}


With all /parts[edit]

"/title"

{
"/equip instrumentbox \r"
"/useitem left /remove [Instrument] \r"
"/equip [Instrument] \r"
pause 5
"/use /part [Music Part 1] \r"
"/use /part [Music Part 2] \r"
"/use /part [Music Part 3] \r"
"/use /part [Music Part 4] \r"
"/use [Music Part 5] \r"
"/narrate [Title] by [Composer] \r"

}

With all /parts and lyrics[edit]

This first macro is needed for the song macro to work. Just copy it into the macro file.

"/archivelyricshelp"

{
message " "
message "¥ Enter the command to play the desired song."
message "¥ Hit enter to re-submit the command to sing the next line of lyrics."
message "¥ You can also use a command followed by numbers to sing lines manually."
message "¥ For example, /gts1 /gts2 all the way to /gts16."
message "¥ Use \archivelyricsreset to reset the lyrics macro if needed."
message " "
}

"/archivelyricsreset"
{
setglobal archivelyrics 1
message "¥ Macro reset, ready to sing!"

}

Each next line of the lyrics will show after you send /songname repeatedly after your initial start.

songwithlyrics

{
if archivelyrics == 1
"/equip instrumentbox \r"
"/useitem left /remove [Instrument] \r"
pause 1
"/equip [Instrument] \r"
pause 15
"/use /part [Music Part 1] \r"
"/use /part [Music Part 2] \r"
"/use /part [Music Part 3] \r"
"/use /part [Music Part 4] \r"
"/use [Music Part 5] \r"
"/useitem left /add [Instrument] \r"
"/narrate [Title] by [Composer] \r"
message "* Ready to auto-sing"
else if archivelyrics == 2
"[Lyrics 1] \r"
else if archivelyrics == 3
"[Lyrics 2] \r"
else if archivelyrics == 4
"[Lyrics 3] \r"
message "* Lyrics finished, macro reset!"
setglobal archivelyrics 0
end if
setglobal archivelyrics + 1
}
"/songname"
{
call songwithlyrics
}

Other Useful Macros[edit]

Stop Macro[edit]

"/stop"

{
"/equip instrument \r"
"/useitem left /remove Gitor\r"
"/equip Gitor\r"
pause 5
"/use /stop \r"
"/useitem left /add Gitor\r"

}