Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
obor
Wanderer


Joined: 20 Dec 2001
Posts: 56
Location: USA

PostPosted: Sun Aug 17, 2003 5:40 am   

variables not staying in their class folders
 
okay, i have 2 characters that I use. I have class folders for each of them.

I have weaponswitch aliases that I like to use.

i.e.

#al {setstun} {#pr stun1;#pr stun2}

#al {stun} {#VAR weap1 @stun1
#VAR weap2 @stun2
wear @weap1
rem shield
sec @weap2}

so I type "setstun" and then i get prompted for my 2 stunning weapons. I type "stun", and I wield my two predefined stun weapons. This works with a disarm trigger I have set up.

#tr {DISARMS YOU and sends your weapon flying!} {get @weap1
wear @weap1
sec @weap2}

now, here's the problem.

my characters each have all this stuff in their own folder (charname|weaponswitch)

the problem is, i enter it all into the proper folder, but there is always a copy of it made in the base class folder, the <none> folder

i'd like to not have to redefine EVERYTHING each time i log on, hence the different folders for each character. But when I play character1, I have to enter all my weapons. When I log him off and play character2, I have to enter all HIS weapons.

I am sure to disable all classes for the non-active character as well.

now, am I making any sense at all? I hope so. IF so, please epxlain to me what I'm doing wrong. Thanks. :)
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Aug 17, 2003 9:03 am   
 
The simplest solution would be to give each character its own settings file. From the character selection screen, Edit, Files tab, change the Primary. If they aren't sharing the file, they can't possibly get the wrong variable.

You can control what class a variable is made in using the Class field of the #VAR command. You can also control where variables (and other settings) are made by scripts within a particular class by using the "setdef" option of the #CLASS command.
Reply with quote
obor
Wanderer


Joined: 20 Dec 2001
Posts: 56
Location: USA

PostPosted: Mon Aug 18, 2003 1:33 pm   
 
okay, hurm....

i don't use the #var command to make my variables, i use the #pr command

any way i can adjust this?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Aug 18, 2003 11:22 pm   
 
If you aren't willing to change what you do, then probably not.

I suggested three different methods for solving your problem. At least two of them will allow you to continue using #PROMPT if you aren't willing to use #VAR.
Reply with quote
obor
Wanderer


Joined: 20 Dec 2001
Posts: 56
Location: USA

PostPosted: Fri Aug 22, 2003 4:18 am   
 
gotcha, thanks! Is there an easy way to transfer all my info from my character's class folders into a new character connection?

*dense aura* by creating the new character settings file, you mean the icon you double-click on to get the MUD window to connect to the MUD i play. Just make one for "barbarian" which has all my barbarian aliases and triggers, one for "druid", etc?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Aug 22, 2003 7:09 pm   
 
Yes, I meant giving each character its own icon. This is fairly easy.
(If they already have separate icons, skip steps 1, 2, and 4)
1. Right click the existing character, select Copy
2. Right click an empty spot in the character selection screen, select Paste
3. Click the Edit button
4. On the Character tab, fill in the name/password for that character
5. On the Files tab, change the Primary file (make a note of what the original name is)

6. Click the Offline button
7. Click on the Settings menu (not the button), go down to Import, then click on Settings...
8. Browse to your original settings
9. Select the settings you want to import. If in doubt, just import everything and then delete the ones you don't want
10. Save

Another method of transferring settings is to make a copy of the original.
1. After clicking Edit and going to the Files tab, click the Browse button (folder icon) next to Primary.
2. In the browsing window, right-click the file and select Copy
3. Right-click an empty spot and select Paste
4. Right-click the Copy and select Rename
5. After renaming, put the new name in the File Name field then click Open
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net