Skip to content

Instantly share code, notes, and snippets.

@cydh
Last active June 10, 2016 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cydh/e8167633881f44c76759943a3a1e66ab to your computer and use it in GitHub Desktop.
Save cydh/e8167633881f44c76759943a3a1e66ab to your computer and use it in GitHub Desktop.
This snippet may depreciated, please read https://gist.github.com/cydh/7b77580fc50b8f8b508c38dca296325a | Sample macro for Change Material skill after patching the https://gist.github.com/cydh/e1473eb2a242d221e80a42dce4ed7093. Change the Tsurugi [1] to Steel for simple lines!
macro doConvSteel {
$per = @eval($.weight * 100 / $.maxweight)
# log \$per $per
$count = @invamount (Tsurugi [1])
while ($count > 0 && $per < 90) as loop
do ss GN_CHANGEMATERIAL
pause 2
$idx = @inventory (Tsurugi [1])
# log \$idx $idx
do cm $idx 1
pause 1
$per = @eval($.weight * 100 / $.maxweight)
$count = @invamount (Tsurugi [1])
end loop
:stop
stop
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment