Register to post in forums, or Log in to your existing account
 
:
Search found 38 matches for:
Page 1 of 2 Goto page 1, 2  Next
Author Message
  Topic: Temp trigger firing more than once
HariKari

Replies: 1
Views: 3052

PostForum: zMUD General Discussion   Posted: Sat Oct 11, 2003 2:48 am   Subject: Temp trigger firing more than once
I've got a temp trigger on the initial trigger of a multistate trigger that loops lines for the second state. The temp trigger's pattern is ^$ to look for a blank line, but I want to print out a resul ...
  Topic: need variables in a chat script
HariKari

Replies: 3
Views: 6387

PostForum: zMUD General Discussion   Posted: Wed Apr 09, 2003 9:07 am   Subject: need variables in a chat script
Eh. I posted about this a few weeks back.. but I didn't get too much of a response.
(The ansi colors aren't sent to MudMaster.. not sure if they get sent to other zChat users tho)
You'll have to use ...
  Topic: zChat with MM2k - Colors
HariKari

Replies: 3
Views: 5820

PostForum: zMUD General Discussion   Posted: Wed Mar 19, 2003 6:54 pm   Subject: zChat with MM2k - Colors
Ah, ok. I don't really know the other person, but he's in the same clan as the one I'm in for a mud. ;) He said that he installed and tried out for a day and uninstalled to test it out later.. but if ...
  Topic: zChat with MM2k - Colors
HariKari

Replies: 3
Views: 5820

PostForum: zMUD General Discussion   Posted: Wed Mar 19, 2003 6:04 am   Subject: zChat with MM2k - Colors
Hi,

Is there an easy way to send color codes with zChat to MM2k? I've always used zMUD as my mud client, but I used MM2k as my chat client.
At first I wrote out some scripts with %ansi() but that ...
  Topic: Removing items from a list
HariKari

Replies: 14
Views: 19505

PostForum: zMUD General Discussion   Posted: Sat Mar 15, 2003 2:17 am   Subject: Removing items from a list
If the correct way to access a value from a database is %db(variable, key).. is the correct way to add/modify a key value is #addkey instead of variable.key = <value>

Also, how would someone ...
  Topic: Removing items from a list
HariKari

Replies: 14
Views: 19505

PostForum: zMUD General Discussion   Posted: Thu Mar 13, 2003 5:49 am   Subject: Removing items from a list
Btw.. why is it @{%i} ?
Wouldn't that look for a variable with the name of whatever is stored in %i?

  Topic: Removing items from a list
HariKari

Replies: 14
Views: 19505

PostForum: zMUD General Discussion   Posted: Wed Mar 12, 2003 6:46 am   Subject: Removing items from a list
Oh, and for anyone that has a similar situation to this.. the solution Troubadour was almost correct for my situation.

vtValue.goodNum = %2
vtValue.good = %3
vtValue.packNum = %4
vtValue.pack = ...
  Topic: Removing items from a list
HariKari

Replies: 14
Views: 19505

PostForum: zMUD General Discussion   Posted: Tue Mar 11, 2003 4:43 am   Subject: Removing items from a list
So the database can't sort either or can it?

But one way to sort would be with what I was doing earlier.
#forall @vtValues {
vtValue = %concat( %format( "&10.0n", %i.value), " ...
  Topic: Removing items from a list
HariKari

Replies: 14
Views: 19505

PostForum: zMUD General Discussion   Posted: Tue Mar 11, 2003 2:35 am   Subject: Removing items from a list
Is there any easy way to sort a list of record variables?
SELECT * FROM vtValues ORDER BY value DESC

Oh hrmm.. that's kinda interesting ;) MySQL with zMUD!

  Topic: Removing items from a list
HariKari

Replies: 14
Views: 19505

PostForum: zMUD General Discussion   Posted: Tue Mar 11, 2003 1:00 am   Subject: Removing items from a list
Btw.. what do you call these "variable databases"?
I was looking through the help files, but it seems like databases are something else.
I've had some database experience with MySQL, and i ...
  Topic: Removing items from a list
HariKari

Replies: 14
Views: 19505

PostForum: zMUD General Discussion   Posted: Tue Mar 04, 2003 5:30 am   Subject: Removing items from a list
Oooh, that looks good.

I haven't used dbs in zMUD before. I guess I'll look into those now, but it does seem straightforward.

Kinda like arrays/vectors in some other programming languages. blah[ ...
  Topic: Removing items from a list
HariKari

Replies: 14
Views: 19505

PostForum: zMUD General Discussion   Posted: Mon Mar 03, 2003 6:50 am   Subject: Removing items from a list
Is there a way to remove an item from a list if you don't know exactly what the item is?

Mm... usually I would create some sample triggers to explain on the forums, but I'll post part of my actual ...
  Topic: Pattern Matching - Fixed Length String
HariKari

Replies: 4
Views: 7056

PostForum: zMUD General Discussion   Posted: Sat Dec 21, 2002 8:17 am   Subject: Pattern Matching - Fixed Length String
Ok, thanks for the testing info.

I was thinking that specific data would be faster than using variables, but I wasn't too sure.

Thanks again.

  Topic: Pattern Matching - Fixed Length String
HariKari

Replies: 4
Views: 7056

PostForum: zMUD General Discussion   Posted: Fri Dec 20, 2002 7:53 am   Subject: Pattern Matching - Fixed Length String
Anybody know how efficient that would be? But I guess that isn't that big of an issue with faster computers/faster zMUD 6.40

  Topic: Pattern Matching - Fixed Length String
HariKari

Replies: 4
Views: 7056

PostForum: zMUD General Discussion   Posted: Fri Dec 20, 2002 3:41 am   Subject: Pattern Matching - Fixed Length String
Is there an easy way to match a fixed length "string" that can be made up of two characters.

Something like..
XXXXXXAAAAAAA
XXXXXXXXXXXXX
AAAAAAAAAAAAA

The X's will always come befo ...
  Topic: zMapper feature questions -- database stuff
HariKari

Replies: 4
Views: 12138

PostForum: zMapper Discussion   Posted: Tue Aug 06, 2002 10:28 am   Subject: zMapper feature questions -- database stuff
I do not have zMapper, so I do not really know how it works, but I might get it later on.

I was just wondering about the hierarchical zone structure. Would it be a 'zone map' that can be zoomed in ...
  Topic: Wildcard matching
HariKari

Replies: 12
Views: 13920

PostForum: zMUD General Discussion   Posted: Mon Jun 10, 2002 9:36 am   Subject: Wildcard matching
About the (%w) or ({@enemylist}) for the pattern...

It might be more efficient/faster to go with the (%w).

The variable list causes the triggers to be remade on the fly because zMUD does not kno ...
  Topic: autoroller need plz!!!!
HariKari

Replies: 12
Views: 12386

PostForum: zMUD General Discussion   Posted: Tue May 28, 2002 10:20 am   Subject: autoroller need plz!!!!
quote:
If excess spaces interfere, they can easily be removed. For instance,
#TR {Str: (*) Int: (*)$} {#IF %ismember(%strip(%1),@StrNo) {#VAR accept no};#IF %ismember(%strip(%2),@IntNo) {#VAR accept ...
  Topic: Numbers
HariKari

Replies: 2
Views: 4026

PostForum: zMUD General Discussion   Posted: Sat Apr 13, 2002 2:04 am   Subject: Numbers
Actually.. %n catches the ,'s and removes them for you.

#TRIGGER {(%n) gold} {#var gold {%1}}

  Topic: A newbie needing help with triggers
HariKari

Replies: 3
Views: 5634

PostForum: zMUD General Discussion   Posted: Fri Apr 12, 2002 10:10 am   Subject: A newbie needing help with triggers
Maybe... there is probably more output than what you gave for your example.
If you get a blank line or a prompt after each round..

eg:
Someone swings a shining steel longsword at you with all his ...
  Topic: Trigger Question....not as easy as my last one
HariKari

Replies: 11
Views: 7379

PostForum: zMUD General Discussion   Posted: Fri Apr 12, 2002 9:58 am   Subject: Trigger Question....not as easy as my last one
#class autoGrat
#TRIGGER {^INFO~: ~ has gained level (%d)!} {#if (!%ismember( %1, @gratList)) {#additem gratList {%1};#ALARM +%random( 2, 5) {gossip Gratz %1, only %eval( 41-%2) until you get to play ...
  Topic: Substitute at the end
HariKari

Replies: 8
Views: 8224

PostForum: zMUD General Discussion   Posted: Sun Mar 03, 2002 9:08 pm   Subject: Substitute at the end
quote:
#TRIGGER {(%*) massacres (%*)) {#sub {"%1" massacres "%2" ~(15~)}}


I would do something like that, but efficiency keeps poping up. There will be many others than jus ...
  Topic: Substitute at the end
HariKari

Replies: 8
Views: 8224

PostForum: zMUD General Discussion   Posted: Sun Mar 03, 2002 8:55 pm   Subject: Substitute at the end
So this is what I have now..
#TRIGGER {( massacres *.)$} {#SUB {%ansi()%1 ~(15~)}

Is there any efficiency problems with *'s?

  Topic: Substitute at the end
HariKari

Replies: 8
Views: 8224

PostForum: zMUD General Discussion   Posted: Sun Mar 03, 2002 8:51 pm   Subject: Substitute at the end
Also, for #SUB's that begin with a space, or anything that begins with a space. What is a good space filler? Right now I have a %ansi() and that keeps the space at the beginning.

  Topic: Substitute at the end
HariKari

Replies: 8
Views: 8224

PostForum: zMUD General Discussion   Posted: Sun Mar 03, 2002 8:45 pm   Subject: Substitute at the end
I tried some "prompt" triggers, but when they print the data, it's already on the new line.

 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
© 2009 Zugg Software. Hosted on Wolfpaw.net