Author |
Message |
Topic: Difficult Trigger problem. Solution Appreciated. |
dysonsphere
Replies: 13
Views: 13298
|
Forum: zMUD General Discussion Posted: Fri Apr 12, 2002 5:07 am Subject: Difficult Trigger problem. Solution Appreciated. |
Actually the really really clever ones will figure out that you are using triggers and like Lightbulb said go to a random sequence or if devious enough will actually count on you to use your triggers ... |
Topic: problem with %replace |
dysonsphere
Replies: 5
Views: 6138
|
Forum: zMUD General Discussion Posted: Thu Apr 11, 2002 5:19 pm Subject: problem with %replace |
[quote]
#IF (@charmie1 = %null) {
#VARIABLE charmie1 %pop( @mobname)
#ECHO charmie1 is @charmie1
}
[quote]
found the problem doh I feel stupid I was using the literal var name for the %p ... |
Topic: problem with %replace |
dysonsphere
Replies: 5
Views: 6138
|
Forum: zMUD General Discussion Posted: Thu Apr 11, 2002 4:32 pm Subject: problem with %replace |
[quote]
If it worked in prior versions and stopped working when you got a new BETA version, it's most likely a beta problem which should be reported on the beta forum.
I'm unable to find a %pop fu ... |
Topic: problem with %replace |
dysonsphere
Replies: 5
Views: 6138
|
Forum: zMUD General Discussion Posted: Thu Apr 11, 2002 4:30 pm Subject: problem with %replace |
also I guess I sould mention the following
here is what I am trying to do:
when I call a mob I have a trigger that captures the mob name than I parse the mob name before I set the variable
the ... |
Topic: problem with %replace |
dysonsphere
Replies: 5
Views: 6138
|
Forum: zMUD General Discussion Posted: Thu Apr 11, 2002 4:19 pm Subject: problem with %replace |
Ok basically what I want to do is as follows:
snipped to show the problem part
#IF (@charmie1fullname = %null) {
#VARIABLE charmie1fullname @mobcalled
#ECHO setting charmie1fullname to @ch ... |
Topic: removing parts of a string list help |
dysonsphere
Replies: 16
Views: 14904
|
Forum: zMUD General Discussion Posted: Sat Dec 15, 2001 9:03 pm Subject: removing parts of a string list help |
DOH!!!!!
man I need more sleep for not catching that one
sheesh
beg ya pardon that'll teach me to stare at computer screens 18 hrs a day
man I feel stupid atm
|
Topic: removing parts of a string list help |
dysonsphere
Replies: 16
Views: 14904
|
Forum: zMUD General Discussion Posted: Sat Dec 15, 2001 7:23 pm Subject: removing parts of a string list help |
I know I made a typo but try it out :)
testlist="one|two|three"
#forall @testlist {#echo %1}
try it and see what happens
but if you do something like
testlist="one|two|thre ... |
Topic: removing parts of a string list help |
dysonsphere
Replies: 16
Views: 14904
|
Forum: zMUD General Discussion Posted: Sat Dec 15, 2001 5:18 pm Subject: removing parts of a string list help |
ok I figured it out arhg what a pain in the a$$
ok here it is and yes it works
#FORALL @list {#IF (%ismember( %i, @somestring)) {#DELITEM somestring %i}}
just wish I didnt have to feed @list ... |
Topic: removing parts of a string list help |
dysonsphere
Replies: 16
Views: 14904
|
Forum: zMUD General Discussion Posted: Sat Dec 15, 2001 4:46 pm Subject: removing parts of a string list help |
ok I found the problem after trying just about every which way in the book and it is
pretty simple
try this out
list="sword|ring|shield";#FORALL @list {#echo %i}
zmud returns
sw ... |
Topic: removing parts of a string list help |
dysonsphere
Replies: 16
Views: 14904
|
Forum: zMUD General Discussion Posted: Sat Dec 15, 2001 4:22 pm Subject: removing parts of a string list help |
figures I'd find a bug
thought it was just my rusty coding that was the problem or
maybe a typo or 2 on my part
I'm gonna see if I can't work around this and if I do I'll post the code
|
Topic: removing parts of a string list help |
dysonsphere
Replies: 16
Views: 14904
|
Forum: zMUD General Discussion Posted: Sat Dec 15, 2001 3:23 pm Subject: removing parts of a string list help |
let me see if I cant explain it in another way
I want to take stringlist a compare it to stringlist b and remove from stringlist a any occurance of string b
so if:
string a {A|big|bad|wolf}
st ... |
Topic: removing parts of a string list help |
dysonsphere
Replies: 16
Views: 14904
|
Forum: zMUD General Discussion Posted: Sat Dec 15, 2001 2:37 pm Subject: removing parts of a string list help |
6.23 beta
|
Topic: removing parts of a string list help |
dysonsphere
Replies: 16
Views: 14904
|
Forum: zMUD General Discussion Posted: Sat Dec 15, 2001 11:36 am Subject: removing parts of a string list help |
nope didnt do it
here is what I got so far that works
here is an example mud line:
a big bad wolf appears
I have the following trigger to grab the line
#trigger &mobget appears {
#var ... |
Topic: removing parts of a string list help |
dysonsphere
Replies: 16
Views: 14904
|
Forum: zMUD General Discussion Posted: Sat Dec 15, 2001 10:13 am Subject: removing parts of a string list help |
here is what I want to do
read a some text in from the mud and store it into a string list
take that string list and remove words based on another string list
ie
mud text: The big bad wolf
... |
Topic: creating a string list from a file |
dysonsphere
Replies: 3
Views: 4864
|
Forum: zMUD General Discussion Posted: Fri Dec 14, 2001 6:55 am Subject: creating a string list from a file |
it didnt work, crashed zmud after a bit, I watch the @line var skyrocket over 65k
I forgot to mention that the level can jump a few
ie there is no level 1 line |
Topic: creating a string list from a file |
dysonsphere
Replies: 3
Views: 4864
|
Forum: zMUD General Discussion Posted: Fri Dec 14, 2001 2:13 am Subject: creating a string list from a file |
Im trying to create a string list from a straight txt file
an example of the data in the file
Level 2:
armor 5 mana
detect invis 5 mana
ventriloquate 5 ma ... |
Topic: databases again |
dysonsphere
Replies: 4
Views: 5469
|
Forum: zMUD General Discussion Posted: Tue Dec 11, 2001 1:30 pm Subject: databases again |
[quote]
1)
When there are quotes surrounding the text you want to capture, then you need to put those quotes in the trigger pattern as well:
TRIGGER {Keywords '&Item.Keywords'} {}
The abov ... |
Topic: databases again |
dysonsphere
Replies: 4
Views: 5469
|
Forum: zMUD General Discussion Posted: Tue Dec 11, 2001 9:15 am Subject: databases again |
ok I got input to a database working except in one case
here is sample mud text
Keywords 'some keywords to define item'
I have the keywords set in my database
and the trigger I use is as fol ... |
Topic: a question about databases |
dysonsphere
Replies: 5
Views: 6217
|
Forum: zMUD General Discussion Posted: Tue Dec 11, 2001 3:55 am Subject: a question about databases |
nope no go
|
Topic: a question about databases |
dysonsphere
Replies: 5
Views: 6217
|
Forum: zMUD General Discussion Posted: Tue Dec 11, 2001 3:16 am Subject: a question about databases |
Ill give it a shot and see what happens
|
Topic: a question about databases |
dysonsphere
Replies: 5
Views: 6217
|
Forum: zMUD General Discussion Posted: Tue Dec 11, 2001 2:54 am Subject: a question about databases |
ok Im new to scripting in zmud but I want to create records in a database
Ive looked through the help files and used the example triggers as a basis but I can't seem to get any information into the d ... |
|