What I want to do ideally is come up with something so that when you have a powerstone wielded, it does an echo of how much power is left, or a mini-gui with the percentage left so I can keep track of them without having to probe the stone every so often, or alternately a script that when a stone reaches 2% reserves, it automatically unwields and sticks it in my backpack. Everything I have tried so far has been too spammy. x_x
Never put passion before principle. Even if you win, you lose.
If olive oil comes from olives, where does baby oil come from?
If vegetarians eat vegetables, what do humanitarians eat?
1
Comments
If olive oil comes from olives, where does baby oil come from?
If vegetarians eat vegetables, what do humanitarians eat?
on wield powerstone:
p powerstone
on powerstone power line
psctr = <%1>
enchant
on enchant line:
psctr -= 5;
if psctr <= 5:
unwield powerstone
put powerstone in pack
wield powerstone
I can't imagine NOT probing the powerstones and expecting accuracy. You'll need GMCP to have the correct ID at all times. My solution is not the most eloquent, it's just kind of banged out real quick, but I think it gets the job done!
Here's the screencap for the setup of the trigger and relevant settings (multiline AND trigger with a 4 line delta)
Here are the trigger lines for copy+paste:
Here's the code:
IMO, gagging in Mudlet is very complicated for multiline/AND triggers. That was the majority of what I spent time on.
edit: if ianir says everything takes 5% then I'd go with that I also can't recall if probing takes you out of enchanting. I quit being one the other month so I couldn't test real easy.
Wielding doesn't move it to the back of your inventory stack unlike dropping it.
If olive oil comes from olives, where does baby oil come from?
If vegetarians eat vegetables, what do humanitarians eat?
If olive oil comes from olives, where does baby oil come from?
If vegetarians eat vegetables, what do humanitarians eat?
probing doesn't if memory serves. I used to probe cubes a lot when I was trying to figure out how far the enchanting process was already done. Also TIL how an AND trigger works. Useful.
Trigger lines - all perl regex:
^The powerstone is a perfect sphere, smooth and hard as a diamond\. Colours swirl about upon its surface in an exotic patina of hues and shades\. Vibrating with an inner energy, the powerstone holds an inner power all its own\.$
^It has \d+ months of usefulness left\.$
^It weighs 4 ounce\(s\)\.$
^The powerstone is at (\d+)\% efficiency\.$
^It has the following aliases: powerstone, stone, gem\.$
Script:
local pwrleft = multimatches[4][2]
local linenumber = matches[1-5]
for i=0, 5 do
moveCursor(0, getLineNumber() - 1)
deleteLine()
end
deleteLine()
echo("\nPowerstone: ".. pwrleft.. "%")
send("unwield powerstone;put powerstone in backpack;wield powerstone;enchant cube")
echo("NEW POWERSTONE IN USE!")
else end
I also have a second trigger that is just
^You continue enchanting an energy cube, which pulsates with an inner light\.$ (perl regex)
with the output send("probe powerstone") to keep it ticking over.
As can be expected, it will stop by itself when a cube is full (it won't automatically change cubes - not going to automate that part for obvious reasons) and can be stopped by pretty much anything that breaks concentration.
If olive oil comes from olives, where does baby oil come from?
If vegetarians eat vegetables, what do humanitarians eat?