Welcome to the Builder Academy

Question Trigger Switch and Random not working

More
14 Jan 2026 02:27 #10968 by soth
It appears it's parsing the %random% out while saving the trigger and that's why it's not generating a random number on each fired event. Any ideas where that might be at?

It does have quite a few additions, but nothing from what I call on the dg* files though.

Thanks!

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

More
14 Jan 2026 16:23 #10969 by soth
tbamud 2023, nothing changed yet.  Here is the output from trigedit.
Code:
Q) Quit Enter Choice :6 Enter trigger commands: (/s saves /h for help) Nothing. ] switch 82.4% ] --------------------------------------------------- switch %random.4% /s Trigger Editor [3020] 1) Name         : Random Room Messages 2) Intended for : Rooms 3) Trigger types: Global Random 4) Numeric Arg  : 100 5) Arguments    : 6) Commands: Nothing. switch 82.4% W) Copy Trigger Q) Quit Enter Choice :

Kevin

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

More
14 Jan 2026 21:05 #10970 by thomas
Are you using a mud client? Could that be interfering here? I see the input changes from
Code:
%random.100%
to
Code:
28.100%
This makes me think this is changed on input.

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

More
14 Jan 2026 21:34 #10971 by soth
Yes Thomas I am, cmud.  Let me check with just a console.

WOW, you have to be kidding Thomas, it was cmud that was causing the issue all alone. After bringing up a console and telneting into the mud, everything works like it should.

How did you come to the conclusion it was the client?  

Thanks!!

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

More
15 Jan 2026 01:51 #10972 by wlessard1
I get the same problem with CMUD. If I have the PC in the lower right corner showing with an X, I can edit the triggers, if not, it gets funky outputs.

BTW If you are going for a room or full zone messaging? This is my basic schtick for zone wide echoes on zone reset.
Code:
1) Name         : Zone Echo Zone 6 2) Intended for : Rooms 3) Trigger types: Enter 4) Numeric Arg  : 100 5) Arguments    : 6) Commands: wait 1 switch %random.4%   case 1 %zoneecho% 600 The End is here, the Nuclear Reactor is going to blow, the alarm is blaring   break   case 2 %zoneecho% 600 The class bell rings, students are running to get to class, check your wallet   break   case 3 %zoneecho% 600 The class bell rings, students are running to get to class, check your wallet   break   case 4 %zoneecho% 600 The Vice Principal just went by dragging a Cretin Gang member somewhere.     done   break   default %zoneecho% 600 A couple of the Cretins are over in the corner selling some Atomic Joints done W) Copy Trigger Q) Quit Enter Choice :

Hope this helps.

Just a guy coding a mud at home for no reason but the challenge.

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

More
15 Jan 2026 02:35 #10973 by soth

wlessard1 wrote: I get the same problem with CMUD. If I have the PC in the lower right corner showing with an X, I can edit the triggers, if not, it gets funky outputs.

BTW If you are going for a room or full zone messaging? This is my basic schtick for zone wide echoes on zone reset.

Code:
1) Name         : Zone Echo Zone 6 2) Intended for : Rooms 3) Trigger types: Enter 4) Numeric Arg  : 100 5) Arguments    : 6) Commands: wait 1 switch %random.4%   case 1 %zoneecho% 600 The End is here, the Nuclear Reactor is going to blow, the alarm is blaring   break   case 2 %zoneecho% 600 The class bell rings, students are running to get to class, check your wallet   break   case 3 %zoneecho% 600 The class bell rings, students are running to get to class, check your wallet   break   case 4 %zoneecho% 600 The Vice Principal just went by dragging a Cretin Gang member somewhere.     done   break   default %zoneecho% 600 A couple of the Cretins are over in the corner selling some Atomic Joints done W) Copy Trigger Q) Quit Enter Choice :

Hope this helps.

Hey,
Yeah I just clicked on the computer icon on cmud when I edited my trigger and that fixed the problem too :)
I didn't even think about zone wide messages, but that would work better for what I want right now.  Thanks for that suggestion!

LOL, I am that guy too, just an IT guy that wants to have a challenge and have some fun in the process.

Kevin

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

Time to create page: 0.520 seconds