Register to post in forums, or Log in to your existing account
 
:
Search found 303 matches for:
Page 1 of 13 Goto page 1, 2, 3 ... 11, 12, 13  Next
Author Message
  Topic: variable question
Danlo

Replies: 5
Views: 6892

PostForum: CMUD General Discussion   Posted: Mon Jan 24, 2022 11:45 pm   Subject: variable question
%x would match the non-white space, so it eliminates the need of training.
Your (%x) is: (%d)
Should work just fine
The issue isn't writing to the variable. The issue is when he is trying to access ...
  Topic: variable question
Danlo

Replies: 5
Views: 6892

PostForum: CMUD General Discussion   Posted: Sun Jan 23, 2022 7:36 am   Subject: variable question
#show @{strike-number}
Or as Hpoonis says, #Trigger {Your strike-number is: (%d)} {#Var Strikenumber %1}
  Topic: Help with trigger and DB
Danlo

Replies: 11
Views: 2602

PostForum: CMUD General Discussion   Posted: Sun Jan 23, 2022 7:08 am   Subject: Help with trigger and DB
If you was to do...

#LOOPDB @Grade19 {#SHOW %key "=" %val}

what do you see?

He isn't writing to a dbvar, that's why your code did nothing.
You would use #LOOPVIEW {#SHOW %rec} to see what it ...
  Topic: Help with trigger and DB
Danlo

Replies: 11
Views: 2602

PostForum: CMUD General Discussion   Posted: Sun Jan 23, 2022 6:59 am   Subject: Re: Help with trigger and DB

You grin proudly as you slay (*)

I created a database named Grade19 with two columns - Column 1 = Monster Type = Text and Column 2 = Kills Type = Number

Script I currently have

#DBLOAD Grad ...
  Topic: Help!! Problem with window display
Danlo

Replies: 1
Views: 4287

PostForum: zMUD General Discussion   Posted: Mon Nov 05, 2012 10:30 am   Subject: Help!! Problem with window display
Right click on the down arrow that shows past commands. Go to WIndow Options, and Re-Check Show Mud Output option.
  Topic: Map quere
Danlo

Replies: 1
Views: 3926

PostForum: zMUD General Discussion   Posted: Mon May 14, 2012 11:35 am   Subject: Map quere
Nothing that I can think of, no. You could write a script to handle it for you, however.
This script would activate off movement commands, check if you are currently in a walk,
if so, add commands t ...
  Topic: zMUD target script help please.
Danlo

Replies: 3
Views: 8330

PostForum: zMUD General Discussion   Posted: Mon May 14, 2012 11:25 am   Subject: zMUD target script help please.
By using %1 in a trigger pattern, you open yourself to vulnerabilities and abuse by others. Basically, using %1 matches everything, including special characters. Someone can abuse your triggers in-gam ...
  Topic: Room script
Danlo

Replies: 4
Views: 6572

PostForum: zMUD General Discussion   Posted: Wed Apr 04, 2012 2:25 pm   Subject: Room script
You have to set the class of your new trigger to be in a different class to the mapper triggers.
Before you set the trigger in the roomscript, try putting #class "NewTriggerClass"
It should then be ...
  Topic: Reading hp and mana values off the prompt. Help?
Danlo

Replies: 1
Views: 3958

PostForum: zMUD General Discussion   Posted: Wed Apr 04, 2012 2:21 pm   Subject: Reading hp and mana values off the prompt. Help?
It would be easier if your prompt started with a special character such as |.
As such, you will need to create a trigger to capture the mana level. Ignoring
the first 2 pieces of information, which ...
  Topic: how to capture an entire paragraph as room description?
Danlo

Replies: 6
Views: 6982

PostForum: CMUD General Discussion   Posted: Sun Apr 04, 2010 4:07 pm   Subject: how to capture an entire paragraph as room description?
It should automatically grab anything between the roomname and the room exits as the description. If you open up the mapper, and run New Configuration, and go through that. Then after it captures the ...
  Topic: zmud scripts i cant seem to get to work on cmud
Danlo

Replies: 6
Views: 8329

PostForum: CMUD General Discussion   Posted: Sun Apr 04, 2010 7:23 am   Subject: zmud scripts i cant seem to get to work on cmud
Basically, he's saying that to use %1 as a variable, you cannot place it inside quotes. That would tell the script you want it to treat %1 as LITERALLY %1, and not whatever it contains.
  Topic: How do you use the the OR operator in triggers
Danlo

Replies: 3
Views: 4297

PostForum: CMUD General Discussion   Posted: Sun Apr 04, 2010 7:18 am   Subject: How do you use the the OR operator in triggers
For starters, you do not need the * in your trigger pattern. The pattern will match if the words you're searching for appear anywhere in the line anyway. Secondly, to match an item in a string list, y ...
  Topic: Multiline Capture
Danlo

Replies: 4
Views: 5615

PostForum: CMUD General Discussion   Posted: Sun Apr 04, 2010 7:05 am   Subject: Multiline Capture
Wouldn't the problem be that the trigger triggers off (*), and that means it doesn't fire when it receives a null line?
Hence, it does not reset the state of the trigger. A better trigger would be:
...
  Topic: [Solved] Text Replace/Function Call
Danlo

Replies: 14
Views: 16451

PostForum: CMUD Beta Forum   Posted: Fri Apr 02, 2010 4:00 pm   Subject: [Solved] Text Replace/Function Call
Yeah, there's a slight difficulty with %replace turning it into a string and stopping it from further expansion, even %eval wouldn't expand it further, however, the %exec function was able to force it ...
  Topic: [Solved] Text Replace/Function Call
Danlo

Replies: 14
Views: 16451

PostForum: CMUD Beta Forum   Posted: Fri Apr 02, 2010 3:33 pm   Subject: [Solved] Text Replace/Function Call
Try this one:
#trigger {(.*)} {#substitute %subregex(%1, "(\^F)", "@RandHigh")}

Or this one:
#trigger {(.*)} {#substitute %subregex(%1, "(\^F)", "%expand(@RandHigh)")}

This is probably the mos ...
  Topic: [Solved] Text Replace/Function Call
Danlo

Replies: 14
Views: 16451

PostForum: CMUD Beta Forum   Posted: Fri Apr 02, 2010 3:27 pm   Subject: [Solved] Text Replace/Function Call
Really? It doesn't do that for me. It expands it just fine. Hmmm. Maybe a setting somewhere.
  Topic: ZMUD and automapperr Pointers
Danlo

Replies: 1
Views: 3933

PostForum: zMUD General Discussion   Posted: Fri Apr 02, 2010 3:17 pm   Subject: ZMUD and automapperr Pointers
I'm not sure what you need with regards to the water. Maybe you can give us some output of what is happening.
Here's something for you to color the rooms automatically:

#alias onroomcreate {#if %p ...
  Topic: [Solved] Text Replace/Function Call
Danlo

Replies: 14
Views: 16451

PostForum: CMUD Beta Forum   Posted: Fri Apr 02, 2010 2:46 pm   Subject: [Solved] Text Replace/Function Call
Actually yeah, it would, lol.
  Topic: [Solved] Text Replace/Function Call
Danlo

Replies: 14
Views: 16451

PostForum: CMUD Beta Forum   Posted: Fri Apr 02, 2010 2:38 pm   Subject: [Solved] Text Replace/Function Call
However, there is a way around that. By delaying the point at which the function @RandHigh is expanded.
With quotes, like so:

#trigger {(.*)} {#substitute %subregex(%1, "(\^F)", "@RandHigh()")}
  Topic: [Solved] Text Replace/Function Call
Danlo

Replies: 14
Views: 16451

PostForum: CMUD Beta Forum   Posted: Fri Apr 02, 2010 2:25 pm   Subject: [Solved] Text Replace/Function Call
Hmm, you're right. Because its calling the function.
  Topic: [Solved] Text Replace/Function Call
Danlo

Replies: 14
Views: 16451

PostForum: CMUD Beta Forum   Posted: Fri Apr 02, 2010 2:17 pm   Subject: [Solved] Text Replace/Function Call
Ahh. What you want to do, is instead of replace, use subregex.

#trigger {(.*)} {#substitute %subregex(%1, "(\^F)", @randHigh())}
  Topic: Going mad over simple Status capture
Danlo

Replies: 4
Views: 5574

PostForum: zMUD General Discussion   Posted: Fri Apr 02, 2010 1:48 pm   Subject: Going mad over simple Status capture
Also, you can do this:

#SETPROMPT "HP" hp maxhp sp maxsp mp maxmp

And Myddrun, why don't you like setting the variable in the trigger pattern? It does make things easier.
  Topic: Point Counter
Danlo

Replies: 1
Views: 3686

PostForum: zMUD General Discussion   Posted: Fri Apr 02, 2010 1:20 pm   Subject: Point Counter
I did something similar to this once. The hardest part is not adding points, but sorting them out into who has the most points. That's fun.
Here's something for you:

#trigger {{@PlayerList} quest- ...
  Topic: String list population issues
Danlo

Replies: 8
Views: 8822

PostForum: zMUD General Discussion   Posted: Fri Apr 02, 2010 1:07 pm   Subject: Solution to your problem
This should do what you require:

#CLASS {tracker}
#VAR clannames {the Ebon Fist}
#VAR Houseenemies {}
#TRIGGER {Enemies of @ClanNames:} {Houseenemies=%null}
#COND {!%match( %line,"Total:")} ...
  Topic: Zmud 7.21 Command Bar missing glitch
Danlo

Replies: 11
Views: 20650

PostForum: zMUD General Discussion   Posted: Sat Jun 09, 2007 4:46 pm   Subject: Zmud 7.21 Command Bar missing glitch
Otherwise, the other possibility is you've detached the command bar. In which case, you can just follow my above instructions and instead of selecting Show Mud Output, re-Attach the Command Line.
 
Page 1 of 13 Goto page 1, 2, 3 ... 11, 12, 13  Next
All times are GMT
© 2009 Zugg Software. Hosted on Wolfpaw.net