 |
andryeevna Newbie
Joined: 28 Jul 2003 Posts: 4
|
Posted: Wed Feb 11, 2004 11:48 am
newbie toggle question |
version 3.62a (freeware)
I want to use the keypad "1" key to cycle through 3 casts
press 1
I cast a
press 1
I cast b
press 1
I cast c
press 1
I cast b
its hard to find answers to small basic questions that I know have been answered before... it gets blended in with those more advanced programmers. Search is down right impossible :) Maybe there should be a newbie forum that would have basic examples for us learning :) |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Feb 11, 2004 5:00 pm |
#VAR {count1} {1}
#KEY {KEY1} {#IF (@count1 = 1) {cast a};#IF (@count1 = 2) {cast b};#IF (@count1 = 3) {cast c;#VAR {count1} {0}};#ADD {count1} {1}}
This may not work. I've never used version 3.62a, so I don't know if all these commands are available. Unsupported means that you will have trouble finding other people to answer your questions and you are mostly on your own. |
|
|
 |
andryeevna Newbie
Joined: 28 Jul 2003 Posts: 4
|
Posted: Wed Feb 11, 2004 7:45 pm |
doesn't work, it just keeps repeating
cast a
I've done something in the past which is almost similar.
#va cast1 cast 1
#va cast2 cast 2
#va cast3 cast 3
then in a trigger
cast%random(1,3)
but in this case I don't want it to be random and I can't find a fuction that would "count"
thanks for trying, anyone else? |
|
|
 |
andryeevna Newbie
Joined: 28 Jul 2003 Posts: 4
|
Posted: Thu Feb 12, 2004 10:40 am |
I guess I'm not a big of a newbie as I thought, I figured it out.
#va do1 cast a;#ke key1 @do2
#va do2 cast b;#ke key1 @do3
#va do3 cast c;#ke key1 @do1
Unsupported means no official support from the author from people who are paid to do so. Unsupported doesn't mean it doesn't exist. |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Feb 12, 2004 6:19 pm |
I didn't say it doesn't exist. I was trying to politely point out that you are using an antiquated version with an extremely small user-base. Most experienced zMUD users, the ones most likely to provide good answers, use the latest beta version. A few, such as myself, use the latest public version. Many of us discovered zMUD long after it went commercial and have never used 3.62, and the ones who did use it probably don't remember it well.
From my own experience, it's difficult to keep track of what was added or changed from one version to the next, and therefore it's difficult to be sure if a script that works now will also work on an earlier version. This is true even for relatively recent versions, such as 6.16, which was only replaced by a new public version a little over a year ago. It's especially true for a version which was replaced by a new public version over 7 years ago.
The script I suggested works in the latest public version. I'm confident that it will work in any version back to 5.55, the earliest version I've used. I'm sorry it doesn't work in 3.62 but I'm not going to bother trying to find out why. I'm glad you found a solution which does work. |
|
|
 |
|
|