ZooeyBot
ZooeyBot copied to clipboard
[Informational] Using the same script for both Assault time (AT) and non Assault time (ATなし)
Greetings fellow skyfarers,
With the introduction of user defined variables in your Lua scripts, you can do something like described below to reuse the same script for both AT and non AT. This is done by creating from the very start of the battle a variable named "assault_time" (or any other fancy name which you would like) and checking whether it is defined:
if turn == 1 and character_1.charge_gauge == 100 then
booleans["assault_time"] = true
end
if booleans["assault_time"] == nil then
--[[Command list for non-assault time (ATなし-)-]]
else
--[[Command list for assault time (AT)--]]
end
I hope you will find this feature useful!