Jump to content

Help-zMUD Training Trigger Broken (Trigger included) Can't Figure Out Why


P_body

Recommended Posts

Here are three versions I've tried to write for this training trigger, and none of them work.

 

What I want. A training trigger that will delay firing the command that starts the loop over.

 

 

Here are the three I tried. Now I know it's possible from the helpfiles @ http://www.zuggsoft.com/library/trigadv.htm%C2'> just don't know how to do it myself.

 

 

Here is what I've tried so far. The trigger itself is fine and it fires. But the Conditional isn't pulled into the trigger when I import the file "settings, import, script ASCII" and when I manually add it it doesn't do anything either. Even though ZMUD seems to recognize that it's a condition....Help?

 

 

 

1

#CLASS 0
#CLASS {Char|Training}
#TRIGGER {You tell your group 'Get up and keep going.'} {wake;v;v;v;v;v;v;sle}
#COND {} {;get up and keep going.} {Wait|Param=6000}
 
 
 
2
#CLASS 0
#CLASS {Char|Training}
#TRIGGER {You tell your group 'Get up and keep goin.'} {wake;v;v;v;v;v;v;sle;#ALARM +5 {;Get up and keep goin.}}
#TRIGGER {You go to sleep.} {#CW high,red;#WAIT 5000;;get up and keep goin.}
 
3
#CLASS 0
#CLASS {Char|Training2}
#TRIGGER {You tell your group 'get up and keep movin.} {wake;v;sle}
#COND {} {;get up and keep movin.} {Wait|Param=2000}
 
 
 
 
 
Link to comment
Share on other sites

ZMUD is lame. The better clients do your triggers for you and only require you to define the variables. :P

 

Just out of curiosity, does it drop the condition from the file, or does the condition just not work?

 

I have no doubt that there are better ways to do it, I don't really mess with ZMUD enough to be skilled with it, but maybe try this? The multiple commands just look funny to me.

#TRIGGER You wake and stand up.#TRIGGER {skill/spell success text}#TRIGGER {skill/spell failure text}#CONDITION {} {skill/spell command}

With a supplementary trigger

#TRIGGER You don't have enough mana.#TRIGGER They are not here.#CONDITION {} {sleep} {Wait|Param=120000}#CONDITION {} {wake}

Obviously, you can set the wait to however long you want/need.

 As I said before, I'm not a wizard at ZMUD, but I think those should work. Maybe. Probably forgetting something. Also, I'm sure there's a way to condense them into one trigger, but the loop setup ZMUD uses is weird to me, so I'm not going to touch it. 

Link to comment
Share on other sites

It drops the condition entirely. So its confusing.

Any ideas?

Zmud is by far the easiet to set simple triggers. All you do is ser variabkes. But the advamced triggers with conditions...the help files only explain them the way i showed.

Btw, your triggers dont quite make sense. Can you explain with a real example youd use or have used?

Link to comment
Share on other sites

Admit defeat.

 

Lick. My. Boots.

 

 

I finally figured out a work around. :P 

 

 

Thanks for your help Enethier. I actually took part of what you did, combined with the zmud help files and made something very rudementary, but effective, and it still allows me to enter any other commands I want whenever I want without throwing off the trigger. (e.g. food and drink, who'ing, where'ing, etc.)

Link to comment
Share on other sites

All you really need is a very simple trigger that repeats the spell/skill after the last attempt. Even assuming you are 100% ambushed with no warning, you will be at most one attempt spammed in which is at least as safe as manually training. You can, of course, do whatever while training as well without interrupting it.

 

Works perfectly for solo training or while your group sleeps. I had no problems training every skill/spell to 100% without risking PK through such a simple trigger.

Link to comment
Share on other sites

@Celerity

Valid point. But what I'm trying for is to spell train AND catch the tick, most ticks anyway, to gain that extra mana for longer training cycles before sleep. Nearly impossible to do because of the variability of the tick. But im shooting for a rough average, like what i might try to do if attempting manually.

EDIT: if i used a simple trigger like you're suggesting, do i have to manually sleep and wake back up? Or at least wake back up. I can just set a second trigger that puts me to sleep when the mud gets the out of mana message. But i want to make a trigger that will auto wake me back up when My mana pool is back close to full. I wanna automate it. :)

Thoughts?

Link to comment
Share on other sites

In my case, I used a trigger to sleep on out of mana and to wake on full mana triggered from my prompt for spells. My normal 25 second where trigger would update the prompt reasonably fast. The cycle repeated after the first cast after waking.

To catch every tick do 5 rounds of casting. 6 for nearly every tick and more rounds for a lower chance.

Link to comment
Share on other sites

Let's say your prompt looks like this:

 

<123/123hp 456/456m 789/789mv><123g><123tnl><Time: 2100> Mounted

 

Should be something like:

#TRIGGER {<123/123hp 456/456m 789/789mv><123g><123tnl><Time: (%d)> Mounted} {#if(%1>@Time,FireTrigger,Null)

Time = %if(%1>@Time,@Time,%1)}

 

That example may work for a time, but it's only going to count up to 23 and then go nowhere.  The point is putting the time in a variable then comparing it with your prompt time.  If it matches, nothing happens.  If the new time is different than the variable time, then your trigger fires and replaces the old time with the new.

 

Hope that gives you a bit of direction to go with.

 

Additionally, I have no idea if that would be the most efficient way to do it.  But it's a way to do it.

Link to comment
Share on other sites

Yes, you could condense it to just #TRIGGER {<Time: (%d)>} {xxx}.  Wake up on the tick.

Or through the #TRIGGER {456/456m} {stand}

Or you could do both.

 

#TRIGGER {<(%d)/(%d)hp (%d)/(%d)m (%d)/(%d)mv><123g><123tnl><Time: (%d)> Mounted}

Then you can play all day with:

#IF(%1=%2,"FullHitPoints"...

#IF(%3=%4,"FullMana"...

#IF(%7=%1,"What are the odds?"...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...