Jump to content

Zmud question about variables


Mmm Coffee

Recommended Posts

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

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...