Welcome to the Builder Academy

Question Argh! Why doesn't this trigger fire?

More
07 Jan 2018 01:10 #7305 by Sascha
So I wrote this, and it works beautifully, 100% of the time.

Name: 'Washerwoman starts and ends her chore on timer', VNum: [ 750], RNum: [ 359]
Trigger Intended Assignment: Mobiles
Trigger Type: Global Random , Numeric Arg: 100, Arg list: None
Commands:
* Washerwoman goes home at the end of the day.
* Time to end for the day.
wait until 20:00
emote looks sleepy.
wait 3 s
yawn
wait 10 s
say I don't think I can wash one more bit today.
wait 10 s
emote folds the dry laundry and places it in a basket.
wait 2 s
emote puts her hands behind her back and stretches.
wait 2 s
say Ah, definitely time to go home!
wait 2 s
emote picks up a laundry basket and walks away.
%teleport% %self% 1900
* Time to start the laundry.
wait until 08:00
%teleport% %self% 715
%echo% A washerwoman bustles into the square.
wait 1 s
yawn
say It's morning already!
wait 3 s
emote starts sorting clothes into piles.
wait 2 s
emote holds up a shirt and clucks her tongue.
wait 2 s
emote says something under her breath about someone being raised in a barn.

Then I wrote this one, and it won't fire off at all.

Name: 'Gambler moves to tavern and back on timer', VNum: [ 2113], RNum: [ 792]
Trigger Intended Assignment: Mobiles
Trigger Type: Global Random , Numeric Arg: 100, Arg list: None
Commands:
* Gambler moves to and from the tavern.
* Time to go to the tavern.
wait until 20:00
emote sighs and looks around the Green in the twilight.
wait 3 s
say Well. I think it's time for a good ale.
wait 2 s
say Off to the King's Blessing it is!
wait 2 s
emote walks off towards the bazaar.
%teleport% %self% 2187
emote takes a seat by the fire.
wait 2 s
say Evening all!
em lights his pipe and sits back.
* Time to go to the Green.
wait until 08:00
sigh
wait 2 s
em gets to his feet, bleary-eyed and grumbling.
wait 2 s
say I better move along.
wait 2 s
em holds his head and groans.
wait 2 s
say Creator help me, what a headache...
wait 2 s
emote leaves the common room.
%teleport% %self% 2172
emote walks into the green and stands by the well.

I have tried rewriting the trigger; purging and resetting the mob; purging and resetting the whole zone; rebooting the mud; sacrificing good beer to the gods... no matter what, the washerwoman trigger works, and the gambler one does not.

Where am I messing up on this? Can anyone see?

Will you stand against the coming Storm? After the Breaking: STORMRIDERS MUD - atbmud.dune.net port 4000

Please Log in or Create an account to join the conversation.

More
07 Jan 2018 08:18 #7306 by JTP
Do you have nohassle on ?

Please Log in or Create an account to join the conversation.

More
07 Jan 2018 13:12 #7307 by thomas
Can you provide stat output for a mob with each script?

Please Log in or Create an account to join the conversation.

More
07 Jan 2018 15:27 #7308 by Sascha
Hi JTP,

I don't think nohassle applies to these, as it's being run on time and not dependent upon a player being in the room. Plus, it works on one mob and not the other, without me toggling nohassle on or off.

As a side note, while I was in the same room as the washerwoman just now, pulling those mob stats, the trigger went off and worked exactly as written. I have also checked to be sure that the target rooms aren't flagged differently.



Thomas, here are the stats on each mob:

stat washerwoman
female MOB 'a washerwoman' IDNum: [50255], In room [ 715], Loadroom : [65535]
Keyword: woman washerwoman, VNum: [ 726], RNum: [ 242]
L-Des: A washerwoman is here with a stack of laundry.
D-Des: Hair bound back in a kerchief, this woman has arms toned from her labors. She
looks kind enough, but that heavy wooden laundry paddle in her hands might have
more than one use. She looks like nothing gets by her and she'd probably be a
great source for local rumors.
Mobile, Lev: [ 3], XP: [ 900], Align: [ 0]
Str: [11/0] Int: [11] Wis: [11] Dex: [11] Con: [11] Cha: [11]
Hit p.:[30/30+3] Mana p.:[10/10+3] Move p.:[50/50+3]
Gold: [ 0], Bank: [ 0] (Total: 0), AC: [81+0/10], Hitroll: [ 1], Damroll: [ 0], Saving
throws: [0/0/0/0/0]
Pos: Standing, Fighting: Nobody, Attack type: hit, Default position: Standing
NPC flags: SENTINEL ISNPC AWARE WIMPY MEMORY
Mob Spec-Proc: None, NPC Bare Hand Dam: 1d2
Carried: weight: 0, items: 0; Items in: inventory: 0, eq: 4
Master is: <none>, Followers are: <none>
AFF: NOBITS
Triggers:
Global Variables:
Global context: 0
lastloaded: plain leather shoes

Trigger: Washerwoman kit I, VNum: [ 749], RNum: [ 358]
Trigger Intended Assignment: Mobiles
Trigger Type: Load , Numeric Arg: 100, Arg list: None

Trigger: Washerwoman gossip - Braem, VNum: [ 737], RNum: [ 347]
Trigger Intended Assignment: Mobiles
Trigger Type: Speech , Numeric Arg: 100, Arg list: rumor || rumors

Trigger: Random washerwoman actions, VNum: [ 738], RNum: [ 348]
Trigger Intended Assignment: Mobiles
Trigger Type: Greet , Numeric Arg: 100, Arg list: None

Trigger: Washerwoman starts and ends her chore on timer, VNum: [ 750], RNum: [ 359]
Trigger Intended Assignment: Mobiles
Trigger Type: Global Random , Numeric Arg: 100, Arg list: None
Wait: 622, Current line: emote looks sleepy.
Variables: None


male MOB 'a villager' IDNum: [53247], In room [ 2172], Loadroom : [65535]
Keyword: gambler man villager, VNum: [ 2115], RNum: [ 481]
L-Des: A man rattles a cup with dice.
D-Des: A cheerful grin and big brown eyes make this man look like he's trying too hard
to look innocent.
Mobile, Lev: [ 5], XP: [ 2500], Align: [ 0]
Str: [11/0] Int: [11] Wis: [11] Dex: [11] Con: [11] Cha: [11]
Hit p.:[51/51+5] Mana p.:[10/10+5] Move p.:[50/50+5]
Gold: [ 50], Bank: [ 0] (Total: 50), AC: [66+0/10], Hitroll: [ 1], Damroll: [ 0],
Saving throws: [1/1/1/1/1]
Pos: Standing, Fighting: Nobody, Attack type: hit, Default position: Standing
NPC flags: SENTINEL ISNPC AWARE STAY-ZONE NO_CHARM NO_SLEEP NO_BLIND
Mob Spec-Proc: None, NPC Bare Hand Dam: 1d2
Carried: weight: 0, items: 0; Items in: inventory: 0, eq: 5
Master is: <none>, Followers are: <none>
AFF: NOBITS
Triggers:
Global Variables: None
Global context: 0

Trigger: Generic gambler - kit, VNum: [ 2111], RNum: [ 790]
Trigger Intended Assignment: Mobiles
Trigger Type: Load , Numeric Arg: 100, Arg list: None

Trigger: Random gambler actions, VNum: [ 2112], RNum: [ 791]
Trigger Intended Assignment: Mobiles
Trigger Type: Random , Numeric Arg: 100, Arg list: None

Trigger: Gambler moves to tavern and back on timer, VNum: [ 2113], RNum: [ 792]
Trigger Intended Assignment: Mobiles
Trigger Type: Global Random , Numeric Arg: 100, Arg list: None

Trigger: Generic lantern use for mobs, VNum: [ 419], RNum: [ 287]
Trigger Intended Assignment: Mobiles
Trigger Type: Global Random , Numeric Arg: 100, Arg list: None

Will you stand against the coming Storm? After the Breaking: STORMRIDERS MUD - atbmud.dune.net port 4000

Please Log in or Create an account to join the conversation.

More
07 Jan 2018 15:41 #7309 by JTP
Was a thought, because when i have nohassle on i dont see trigger messages :)

Please Log in or Create an account to join the conversation.

More
07 Jan 2018 16:41 #7310 by Sascha
Totally worth a shot. :)

Will you stand against the coming Storm? After the Breaking: STORMRIDERS MUD - atbmud.dune.net port 4000

Please Log in or Create an account to join the conversation.

Time to create page: 0.185 seconds