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*
Coding buildwalk or walking layout
Posted by Phobos on Fri 26 Oct 2007 01:56 AM — 9 posts, 31,208 views.
Why not just create all the rooms at once using rat?
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
loop goto <low> <high>
http://www.mudbytes.net/index.php?a=pastebin&s=view&pid=2872
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?
I know you said put it in pastebin but would i just copy paste it in or what?
What are you typing for rat?
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
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
Ah, rat doesn't have dynamic args. I forgot about that. You can use loop.
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
Please be very specific everything looks, rather alike
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
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