Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Coding buildwalk or walking layout

Coding buildwalk or walking layout

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Phobos   (79 posts)  Bio
Date Fri 26 Oct 2007 01:56 AM (UTC)
Message
I seem to be wasting alot of time building because i have to goto <vnum> before i can make an exit to that room. My question is how would i go about making it where i can do "redit exit <direction> <vnum> without having to go to the room before hand. If anyone can help me please explain in depth with great detail so i can do this and not end up with more questions then i started with *thank you*
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #1 on Fri 26 Oct 2007 02:15 AM (UTC)
Message
Why not just create all the rooms at once using rat?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Gohan_TheDragonball   USA  (183 posts)  Bio
Date Reply #2 on Fri 26 Oct 2007 02:44 AM (UTC)
Message
i use the loop snippet, not sure where it is these days, so i put it in pastebin:

loop goto <low> <high>

http://www.mudbytes.net/index.php?a=pastebin&s=view&pid=2872
Top

Posted by Phobos   (79 posts)  Bio
Date Reply #3 on Fri 26 Oct 2007 02:50 AM (UTC)
Message
Where would i put this snipit, rat wont work with this for some reason it says goto where twice.

I know you said put it in pastebin but would i just copy paste it in or what?
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #4 on Fri 26 Oct 2007 03:03 AM (UTC)
Message
What are you typing for rat?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Phobos   (79 posts)  Bio
Date Reply #5 on Fri 26 Oct 2007 03:12 AM (UTC)
Message
im typing

rat 600 700 goto
rat 600 700 create
rat 600 700 make

ive tried several but if you have any suggestions i would be happy to listen to your thoughts anythings better then what i can think of now....which is nothing lol
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #6 on Fri 26 Oct 2007 04:56 AM (UTC)
Message
Ah, rat doesn't have dynamic args. I forgot about that. You can use loop.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Phobos   (79 posts)  Bio
Date Reply #7 on Fri 26 Oct 2007 05:32 AM (UTC)
Message
Ok i put the loop in the bin but where theres like a zillion files in there?

Please be very specific everything looks, rather alike
Top

Posted by Gohan_TheDragonball   USA  (183 posts)  Bio
Date Reply #8 on Fri 26 Oct 2007 07:23 AM (UTC)
Message
sorry i guess i assumed a little on your level of xp, what i gave you the link for is the code for the actual do_loop command. you can copy/paste that into really any file that you choose, i have it in act_wiz.c since its an admin command but whatever floats your boat. next you will need to add the appropriate command definitions in mud.h and the correct calls in tables.c assuming smaug 1.8 doesn't have something like bfd. as for the tables.c calls, you will have to see how they are done and copy, there should be two places, i would search in the file for "goto" or whatever command you choose and go from there. as for mud.h do a search for do_goto, it will look something like this:
DECLARE_DO_FUN( do_goto );
you will put in:
DECLARE_DO_FUN( do_loop );

do a make clean and recompile, after you hotboot/restart, in the mud you will have to create the command like so(see help cedit):
cedit loop create
cedit loop level 51
cedit save cmdtable
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


29,451 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.