| Author |
Message |
Topic: Beginners script question |
Smudly
Replies: 42
Views: 35626
|
Forum: CMUD General Discussion Posted: Fri Oct 19, 2007 4:09 pm Subject: Direction command |
| In the mud you can type either W or West to go west. The script itself should be sending the complete word (See previus posts). The first line in the choose exits alias displays LastMove and it is a ... |
Topic: Beginners script question |
Smudly
Replies: 42
Views: 35626
|
Forum: CMUD General Discussion Posted: Fri Oct 19, 2007 5:28 am Subject: Not quite there after all |
I just keep going back and forth. I entered the following command on the command line but LastMove is always West.
#oninput {^({north|south|east|west|down})$} {#var LastMove %1} |
Topic: Beginners script question |
Smudly
Replies: 42
Views: 35626
|
Forum: CMUD General Discussion Posted: Mon Oct 15, 2007 5:06 pm Subject: I think I figured it out |
| Maybe some of this is sinking in after all. I traced it all the way to the ifs within thw switch statements ad the ismembr arguments are backwards. I will let you know once I have alittle more t ... |
Topic: Beginners script question |
Smudly
Replies: 42
Views: 35626
|
Forum: CMUD General Discussion Posted: Sun Oct 14, 2007 12:07 am Subject: Beginners script question |
| I have played with it and now both triggers work and it gets to the alias chooseexit. I put a say command as the first line in the choose exit alias and it was displayed. However nothing else happen ... |
Topic: Beginners script question |
Smudly
Replies: 42
Views: 35626
|
Forum: CMUD General Discussion Posted: Sat Oct 13, 2007 11:46 pm Subject: Beginners script question |
The trigger ^({north|south|east|west|down})$ with body below fired but the second trigger- Exits - is not showing fired2
#var LastMove %1
#say "fired"
but the trigger ^~[Exits~: ([a-z ])~]$
#v ... |
Topic: Beginners script question |
Smudly
Replies: 42
Views: 35626
|
Forum: CMUD General Discussion Posted: Sat Oct 13, 2007 11:28 pm Subject: Nothing is happening. |
| I looked in settings and fond the FindMithril class and deleted it. I then went to action and selected execute script and selected the previous script. On the command line I entered #T+ FindMithril ... |
Topic: Beginners script question |
Smudly
Replies: 42
Views: 35626
|
Forum: CMUD General Discussion Posted: Sat Oct 13, 2007 2:41 am Subject: Beginners script question |
Am I looking for a file called Findmithril? If so I do not find any under the CMUD folder.
I have tried the #T+ and #T- commands and the most I get is an invalid direction error popping up oc ... |
Topic: Beginners script question |
Smudly
Replies: 42
Views: 35626
|
Forum: CMUD General Discussion Posted: Sat Oct 13, 2007 2:24 am Subject: Beginners script question |
| It is realy bugging me that this just is not sinking in. Why did I create the #Class findmithril if I am not going to use it.. If I am using it then wouldnt it have been better to create two separ ... |
Topic: Beginners script question |
Smudly
Replies: 42
Views: 35626
|
Forum: CMUD General Discussion Posted: Sat Oct 13, 2007 1:58 am Subject: Your right I still dont get it |
I removed the send #l line and entered FindMithril on the command line and nothing happens. I then did a #T+ FindMithril then tried FindMithril again with the same results.
I also tried pasti ... |
Topic: Beginners script question |
Smudly
Replies: 42
Views: 35626
|
Forum: CMUD General Discussion Posted: Fri Oct 12, 2007 5:01 pm Subject: Gettig closer |
| I have indented the code below and now I get no errors when the script executes. However nothing at all happens. I put in the #send "l" thinking it would activate the triggers. It does display the ... |
Topic: Beginners script question |
Smudly
Replies: 42
Views: 35626
|
Forum: CMUD General Discussion Posted: Fri Oct 12, 2007 3:46 am Subject: Script within code tags |
| Ok. Here is the script inbwtween code tags. By a single file I meant everything below is stored in a single text file and I am trying to execute it by going to Actions->Execute Script and selecti ... |
Topic: Beginners script question |
Smudly
Replies: 42
Views: 35626
|
Forum: CMUD General Discussion Posted: Fri Oct 12, 2007 2:20 am Subject: Still doesnt work |
| I have included the complete class below which I have stored in a single file. When i try and execute it I get "Command List Expected after the first #switch. If I move ("north") up onto the same li ... |
Topic: Beginners script question |
Smudly
Replies: 42
Views: 35626
|
Forum: CMUD General Discussion Posted: Thu Oct 11, 2007 5:21 pm Subject: updated Sript |
#class FindMithril disable
#trig {There is some mithril here} {get mithril;#untrigger MoveAlarm;#t- FindMithril}
#var LastMove "" ""
#oninput {^({north|south|east|west|down})$} {#var LastMove %1}
... |
Topic: Beginners script question |
Smudly
Replies: 42
Views: 35626
|
Forum: CMUD General Discussion Posted: Thu Oct 11, 2007 4:30 pm Subject: Illegal Token |
I added the spaces and now it says illegal token after #class 0
Sorry to be such a pain. |
Topic: Beginners script question |
Smudly
Replies: 42
Views: 35626
|
Forum: CMUD General Discussion Posted: Wed Oct 10, 2007 3:24 am Subject: Syntax error |
| Surprise surprise I am still having problems. Below is the script I am trying to run. When I run the script I get an unmatched bracket error where I have the *****. I managed to get rid of it once ... |
Topic: Beginners script question |
Smudly
Replies: 42
Views: 35626
|
Forum: CMUD General Discussion Posted: Wed Oct 10, 2007 12:08 am Subject: Thanks for the help |
thanks for taking the time to help with this. I will work through the example you have provided and see what I can learn from it.
Thanks for pointing out the issue with getting stuck going in a ... |
Topic: Beginners script question |
Smudly
Replies: 42
Views: 35626
|
Forum: CMUD General Discussion Posted: Tue Oct 09, 2007 2:57 am Subject: Still Dont Get It |
Im sorry but I am having a real hard time grasping this.
What I want to do is
do a look to see what directions are available.
If I can go north move north if not then east it not then west if ... |
Topic: Beginners script question |
Smudly
Replies: 42
Views: 35626
|
Forum: CMUD General Discussion Posted: Mon Oct 08, 2007 8:50 pm Subject: still lost |
| I am still lost. How do I get the script started and get the string to run any fo the functions on? |
Topic: Beginners script question |
Smudly
Replies: 42
Views: 35626
|
Forum: CMUD General Discussion Posted: Mon Oct 08, 2007 8:20 pm Subject: Just looking for some direction |
When ever you move into a new room the first thing you see is '' which lists the available directions in which you can move. Followed by the room description.
How do I check for what exits are ... |
Topic: Beginners script question |
Smudly
Replies: 42
Views: 35626
|
Forum: CMUD General Discussion Posted: Mon Oct 08, 2007 2:20 am Subject: Beginners script question |
| I would like to find my way through a changing area. From my starting point, which can change, i want to identify the exits, check the room description and then decide which way to go, move in that ... |
Topic: Startup problem |
Smudly
Replies: 4
Views: 4703
|
Forum: CMUD General Discussion Posted: Mon Oct 08, 2007 1:16 am Subject: Startup problem |
| Version 1.34. |
Topic: Beginners script question |
Smudly
Replies: 42
Views: 35626
|
Forum: CMUD General Discussion Posted: Mon Oct 08, 2007 12:27 am Subject: Beginners script question |
| I would like to create a script which would look at the available directions, decide which way to go and then move in that direction and repeat until a condition is met. I have looked at the help fi ... |
Topic: Startup problem |
Smudly
Replies: 4
Views: 4703
|
Forum: CMUD General Discussion Posted: Sun Oct 07, 2007 11:19 pm Subject: Startup problem |
| I fogot to mention that it is freezing on Initializing sessions. |
Topic: Startup problem |
Smudly
Replies: 4
Views: 4703
|
Forum: CMUD General Discussion Posted: Sun Oct 07, 2007 11:14 pm Subject: Startup problem |
I have downloaded and installed the demo of CMud. Overall I like the program but I am having the following issues.
I am currently running Vista and it takes me 2 tries every time I want to run CMu ... |
| |