Mmm Coffee Posted October 28, 2010 Report Share Posted October 28, 2010 Does anyone know if zmud has built-in variables for HP/Mana/Moves/etc? In the very basic example here, let's say I want to flee if my HP is below 50% Right now I have to trigger off my prompt to populate a variable and then use that variable in my #IF statement. I'm wondering if there's a way I can skip the first step and use a variable zmud already knows = HP (or mana/moves) Link to comment Share on other sites More sharing options...
Hilltop Posted October 28, 2010 Report Share Posted October 28, 2010 If all you want it for is hp, why not use wimpy at 50%? Link to comment Share on other sites More sharing options...
Aulian Posted October 28, 2010 Report Share Posted October 28, 2010 Zing Link to comment Share on other sites More sharing options...
jibber Posted October 28, 2010 Report Share Posted October 28, 2010 A scripted flee is far more useful than a wimpy flee at 50% (imho). Link to comment Share on other sites More sharing options...
The-Nameless Posted October 28, 2010 Report Share Posted October 28, 2010 If you cannot type the four letters required to get out of a fight, perhaps you MIGHT not belong to muds Now somebody give this pig a beer. Link to comment Share on other sites More sharing options...
jibber Posted October 28, 2010 Report Share Posted October 28, 2010 Now, I'm not sure how similar zmud scripting is with tintin++, but this is what I came up with (and it works as far as I can tell): You need to have a prompt like this: <%h/%Hhp %mmn %vmv : %thour %Xtnl> %n%p And as a trigger or .. #act, in tintin++: #ACTION {<%1/%2hp %3 %4 %5 %6 %7 %8 [%9]}={#math divvar {%2/%1};#if {"$divvar" >= "2" && "%9" <= 100 } {#showme HP below 50 PERCENT!;flee} {#nop %9 Fine}} Not sure with zmud, but tintin+ doesn't let you show non-integers with the #math function, so you have to reverse it. Anything at 2 or above (your max hp / min hp) will force you to flee. It also checks %9 (which is the percentage of whoever is fighting) to prove you're in combat. If it's not there, then you're not in combat and it doesn't trigger. Also, whoever is fighting should be at 100% or below. If for some reason they're 101 (happens with lifedrain and vamp touch, energy drain, etc) it won't trigger either. Link to comment Share on other sites More sharing options...
Croyvern Posted October 28, 2010 Report Share Posted October 28, 2010 I want some one to script something for me. Alt + W = Win, would be perfect. Link to comment Share on other sites More sharing options...
jibber Posted October 28, 2010 Report Share Posted October 28, 2010 #macro {\ew} {delete;delete;#showme <119>YOU WIN!<099>;#end} Link to comment Share on other sites More sharing options...
Mmm Coffee Posted October 28, 2010 Author Report Share Posted October 28, 2010 If all you want it for is hp' date=' why not use wimpy at 50%?[/quote'] Wait...there's a wimpy command? :eek: Expanding on my example, I don't just want it for HP value but for anything that is produced in the prompt (without having to evaluate the prompt itself). I know there's some extension capabilities with MXP for zmud but I'm not -that- vested in figuring it out...but if someone already has, please share Link to comment Share on other sites More sharing options...
jibber Posted October 28, 2010 Report Share Posted October 28, 2010 You have to evaluate the prompt. I know ZMUD has some awesome features that use MXP (which is just the mark up language like .css or html for muds. I don't even know if FL has MXP enabled/supported. Gonna have to ask Zhokril on that one.), but it still won't evaluate your prompt for you (since prompts are changeable here). The -easiest- and most precise way to do what you're asking is to evaluate the prompt, script it out, and use it that way. If you need help doing something other than what you had asked, give me a shout. Although I don't use zMUD, I'll look over the manual and see just how much different it is to tintin++ and script it for you. Link to comment Share on other sites More sharing options...
Sandbox Posted October 28, 2010 Report Share Posted October 28, 2010 I want some one to script something for me. Alt + W = Win' date=' would be perfect.[/quote'] just roll a dwarf blm and join cabal of your choice. thats usually auto win right? Link to comment Share on other sites More sharing options...
Hilltop Posted October 29, 2010 Report Share Posted October 29, 2010 You have to evaluate the prompt. I know ZMUD has some awesome features that use MXP (which is just the mark up language like .css or html for muds. I don't even know if FL has MXP enabled/supported. Gonna have to ask Zhokril on that one.), but it still won't evaluate your prompt for you (since prompts are changeable here). The -easiest- and most precise way to do what you're asking is to evaluate the prompt, script it out, and use it that way. If you need help doing something other than what you had asked, give me a shout. Although I don't use zMUD, I'll look over the manual and see just how much different it is to tintin++ and script it for you. ... *hugs his gmud* Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.