Hello everyone. I'm new and I'm trying to make a trigger for my monk. The triggers is for the Kata transition in Shikudo. It's for my bashing script. And I'm using Mudlet.
The trigger is like this:
^You are now maintaining a kata chain of (\d+) actions.$
if tonumber(matches[2]) >= 5 then
ChangeForm()
end
The triggers has no problem. It executes the ChangeForm function when the Kata chain is over 4 actions.
Here is the ChangeForm function:
function ChangeForm()
if svo.defc.tykonos then
send("transition to willow form")
elseif svo.defc.willow then
send("transition to rain form")
elseif svo.defc.rain then
send("transition to oak form")
elseif svo.defc.oak then
send("transition to willow form")
end
end
My problem is in my ChangeForm function. The first transition is fine, until to the second transition. It stays hitting the first transitions.
Example is.. My form is Tykonos. I fight and get 6 Kata actions, the triggers will do the first transition to Willow form and the Kata chain will reset to 0. The fight continues, until I get the 6 Kata actions again and triggers the transition, but instead of triggering the Rain form, it will stay triggering the Willow form transition.
Sorry for my bad English. It's not my natural language. I really need help in this. Thanks.
0
Comments
lua svo.defc
{
deaf = true,
sileris = "unsure",
boosting = true,
hypersight = true,
alertness = true,
grip = true,
frost = true,
consciousness = true,
regeneration = true,
myrrh = true,
toughness = true,
resistance = true,
curseward = true,
mindseye = true,
constitution = true,
caloric = true,
thirdeye = true,
deathsight = true,
mindnet = true,
meditate = false,
insomnia = true,
willow = false,
levitation = true,
weathering = true,
starburst = false,
cloak = true,
mindtelesense = true,
tykonos = false,
blind = true,
trance = true,
vitality = true,
splitmind = true,
nightsight = true,
speed = true,
selfishness = false,
softfocus = true,
kola = true,
vigilance = true,
bell = true,
rain = true,
mindcloak = true,
venom = true
}
Try making the function display the values of svo.defc.tykonos and the other stance variables when it fires, so that you can see what the status is.
Hmmm.. how can I make it update when I change my form... while I'm in combat..
trigger line: (willow form switch line)
lua: svo.defc.tykantos = false
note that this might mess something up in svof, hence why it's sketchy, but I don't know why svof would need to know what forms you've already done, either.
Just avoid messing with svo entirely and make an independent currentStance variable and track off of that.
Results of disembowel testing | Knight limb counter | GMCP AB files
Here it is:
function ChangeForm()
if svo.defc.tykonos then
send("transition to willow form")
svo.defc.tykonos = false
svo.defc.willow = true
elseif svo.defc.willow then
send("transition to rain form")
svo.defc.willow = false
svo.defc.rain = true
elseif svo.defc.rain then
send("transition to oak form")
svo.defc.rain = false
svo.defc.oak = true
elseif svo.defc.oak then
send("transition to gaital form")
svo.defc.oak = false
svo.defc.gaital = true
elseif svo.defc.gaital then
send("transition to maelstrom form")
svo.defc.gaital = false
svo.defc.maelstrom = true
elseif svo.defc.maelstrom then
send("transition to oak form")
svo.defc.maelstrom = false
svo.defc.oak = true
end
end
Your right Nazihk, I'll make and independent variable soon. Thanks.
GMCP documentation: https://github.com/keneanung/GMCPAdditions
svof github site: https://github.com/svof/svof and documentation at https://svof.github.io/svof