Author |
Message |
Topic: Problem with selecting room exit choices |
animal2011
Replies: 21
Views: 19609
|
Forum: zMUD General Discussion Posted: Thu Feb 24, 2011 10:32 pm Subject: Problem with selecting room exit choices |
Yep, try this:
#VAR directions {north|east|south|west|northeast|northwest|southeast|southwest|down|up}
#VAR short_directions {n|e|s|w|ne|nw|se|sw|d|u}
#VAR reverse_directions {s|w|n|e|sw|se|nw|ne ... |
Topic: Problem with selecting room exit choices |
animal2011
Replies: 21
Views: 19609
|
Forum: zMUD General Discussion Posted: Thu Feb 24, 2011 10:08 pm Subject: Problem with selecting room exit choices |
Not sure how I missed the need to replace 'and' in the arguments with pipes. Sorry about that, and good catch, Myrkul.
Right now, I think the problem is that you don't have quotes around the %1 in ... |
Topic: Problem with selecting room exit choices |
animal2011
Replies: 21
Views: 19609
|
Forum: zMUD General Discussion Posted: Thu Feb 24, 2011 9:46 pm Subject: Problem with selecting room exit choices |
Guess I'll have to find some sort of zmud workaround as I plain old can't afford to buy cmud right now :( |
Topic: Problem with selecting room exit choices |
animal2011
Replies: 21
Views: 19609
|
Forum: zMUD General Discussion Posted: Thu Feb 24, 2011 9:31 pm Subject: Problem with selecting room exit choices |
so in cmud that would work?
can zmud triggers be imported to cmud? |
Topic: Problem with selecting room exit choices |
animal2011
Replies: 21
Views: 19609
|
Forum: zMUD General Discussion Posted: Thu Feb 24, 2011 9:27 pm Subject: Problem with selecting room exit choices |
yeah, when it returned the blank result, the exits variable was blank and when it keeps picking the first listed exit the exits variable only contains 1 entry. |
Topic: Problem with selecting room exit choices |
animal2011
Replies: 21
Views: 19609
|
Forum: zMUD General Discussion Posted: Thu Feb 24, 2011 9:06 pm Subject: Problem with selecting room exit choices |
ok, here is an example
There are four obvious exits: enter stall, east, north and northwest.
>
A delirious traveller arrives from the north.
> |
Topic: Problem with selecting room exit choices |
animal2011
Replies: 21
Views: 19609
|
Forum: zMUD General Discussion Posted: Thu Feb 24, 2011 8:11 pm Subject: Problem with selecting room exit choices |
Thanks Myrkul, I was just totally failing at nesting the and section, if nothing else I now know how to properly nest replaceables :D
Sadly, it still doesn't seem to work as intended, on some scree ... |
Topic: Problem with selecting room exit choices |
animal2011
Replies: 21
Views: 19609
|
Forum: zMUD General Discussion Posted: Thu Feb 24, 2011 7:52 pm Subject: Problem with selecting room exit choices |
I tried that earlier today and ended up adding a whole new line for replacing the and with |, is there a way to replace all ,'s and ands with | in 1 replace command? I tried the help files and searchi ... |
Topic: Problem with selecting room exit choices |
animal2011
Replies: 21
Views: 19609
|
Forum: zMUD General Discussion Posted: Thu Feb 24, 2011 7:34 pm Subject: Problem with selecting room exit choices |
OK, thanks for the help, however I entered that and it created the trigger and the variables however most times when I look, after the 5 second alarm it enters a blank line rather than a direction lik ... |
Topic: Problem with selecting room exit choices |
animal2011
Replies: 21
Views: 19609
|
Forum: zMUD General Discussion Posted: Thu Feb 24, 2011 4:35 pm Subject: Problem with selecting room exit choices |
ok, had a slight breakthrough here...
#forall {%replace( "%1", ",", "|")} {#additem exits %i}
#ALARM "a1" +5 {
#1 %item( @exits, %random( 1, %numitems( @exits)))
#var exits {}
}
seems ... |
Topic: Problem with selecting room exit choices |
animal2011
Replies: 21
Views: 19609
|
Forum: zMUD General Discussion Posted: Thu Feb 24, 2011 3:29 pm Subject: Problem with selecting room exit choices |
Hi,
Wondering if anyone could clear this problem up for me...
I am trying to make a set of triggers to walk in random, existing directions. My plan was to use something like this:
pattern
Th ... |
|