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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: Sun Jul 10, 2011 1:18 am   

Accessing Variables From Another Package
 
I recall being able to do this, but I don't remember how and I don't see it in the help files. Can anyone reiterate?
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Jul 10, 2011 2:15 am   
 
//module/class/.../varname
_________________
EDIT: I didn't like my old signature
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: Sun Jul 10, 2011 5:42 pm   
 
So if I'm in a Character Package named Erian and I want to access a variable in a Character Package named Saerith I would do:

Code:
cast '//Saerith/AOESpell'
in order to use cast 'spellname' ?
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Jul 10, 2011 10:09 pm   
 
Module. I did not say a word about packages. Packages are files on your computer.
_________________
EDIT: I didn't like my old signature
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: Mon Jul 11, 2011 1:43 am   
 
Ok, I'm using them interchangeably because the "Module" is stored in the Package files and it is called the "Package" Editor.

Did I do it correctly?
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Mon Jul 11, 2011 4:00 am   
 
You'll need a @ before that. It's still a variable reference, just spelling out the path in full.
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: Mon Jul 11, 2011 2:38 pm   
 
Alright, thanks.
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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