Difference between revisions of "Macro"
(One intermediate revision by the same user not shown) | |||
Line 28: | Line 28: | ||
}</blockquote> | }</blockquote> | ||
=Useful Macros= | ===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. | |||
<blockquote>songwithlyrics</br> | |||
{</br> | |||
if archivelyrics == 1</br> | |||
"/equip instrumentbox \r"</br> | |||
"/useitem left /remove [Instrument] \r"</br> | |||
pause 1</br> | |||
"/equip [Instrument] \r"</br> | |||
pause 15</br> | |||
"/use /part [Music Part 1] \r"</br> | |||
"/use /part [Music Part 2] \r"</br> | |||
"/use /part [Music Part 3] \r"</br> | |||
"/use /part [Music Part 4] \r"</br> | |||
"/use [Music Part 5] \r"</br> | |||
"/useitem left /add [Instrument] \r"</br> | |||
"/narrate [Title] by [Composer] \r"</br> | |||
message "* Ready to auto-sing"</br> | |||
else if archivelyrics == 2</br> | |||
"[Lyrics 1] \r"</br> | |||
else if archivelyrics == 3</br> | |||
"[Lyrics 2] \r"</br> | |||
else if archivelyrics == 4</br> | |||
"[Lyrics 3] \r"</br> | |||
message "* Lyrics finished, macro reset!"</br> | |||
setglobal archivelyrics 0</br> | |||
end if</br> | |||
setglobal archivelyrics + 1</br> | |||
}</br> | |||
"/songname"</br> | |||
{</br> | |||
call songwithlyrics</br> | |||
} | |||
</blockquote> | |||
=Other Useful Macros= | |||
===Stop Macro=== | ===Stop Macro=== | ||
<blockquote>"/stop" | <blockquote>"/stop" |
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"
}