Difference between revisions of "Macro"
Line 29: | Line 29: | ||
===With all /parts and lyrics=== | ===With all /parts and lyrics=== | ||
This first macro is needed for the song macro to work. Just copy it into the macro file. | |||
<blockquote>"/archivelyricshelp"</br> | |||
{</br> | |||
message " "</br> | |||
message "¥ Enter the command to play the desired song."</br> | |||
message "¥ Hit enter to re-submit the command to sing the next line of lyrics."</br> | |||
message "¥ You can also use a command followed by numbers to sing lines manually."</br> | |||
message "¥ For example, /gts1 /gts2 all the way to /gts16."</br> | |||
message "¥ Use \archivelyricsreset to reset the lyrics macro if needed."</br> | |||
message " "</br> | |||
}</br> | |||
</br> | |||
"/archivelyricsreset" </br> | |||
{</br> | |||
setglobal archivelyrics 1</br> | |||
message "¥ Macro reset, ready to sing!"</br> | |||
}</blockquote> | |||
Each next line of the lyrics will show after you send /songname repeatedly after your initial start. | Each next line of the lyrics will show after you send /songname repeatedly after your initial start. | ||
Line 63: | Line 83: | ||
} | } | ||
</blockquote> | </blockquote> | ||
=Other Useful Macros= | =Other Useful Macros= |
Latest revision as of 06:10, 22 August 2024
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"
}