|
stark62 Wanderer
Joined: 04 Apr 2003 Posts: 94 Location: United Kingdom
|
Posted: Wed Sep 12, 2012 9:33 pm
Using the Data record Variable |
Ok Zmud Gods - can you help me get going with Variables and the data record option
OK I can get triggers to capture 2 items it seems
#addkey cnames %1 %2
this gives me a variable data record of
Thor Knight
Zuis Knight
Lancelot Paladin
Will Mage
etc
So two questions can i make the record hold three values eg
Thor Knight Angelic
Zuis Knight Diabolic
Lancelot Paladin Pure
Will Mage Evil
Also how do i then refer to the info if i want to trigger something like
#trigger If x happens
set @target Thor
#T+ Knights
#T+ Angelic
things like that
Hope you can help or point me in the right direction |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Sep 12, 2012 10:51 pm |
Check out the stinglist stuff. In Zmud, stringlists can be assigned and directly accessed in datarecord keys.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
stark62 Wanderer
Joined: 04 Apr 2003 Posts: 94 Location: United Kingdom
|
Posted: Wed Sep 12, 2012 11:23 pm |
This might seem stupid Matt but where is the good info in stringlists and how to use them - i know its there somewhere in Zmud manual on site??
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Thu Sep 13, 2012 12:46 am |
There's probably an intro section in the helpfile, but there's also #ADDITEM/%additem(), #DELITEM/%delitem(), #DELNITEM/%delnitem(), and %replaceitem().
And, FYI, the manual on the website is the same as in ZMud. The only difference is that the one on the website has (or, at least, can have) user-contributed comments. |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
stark62 Wanderer
Joined: 04 Apr 2003 Posts: 94 Location: United Kingdom
|
Posted: Thu Sep 13, 2012 8:47 am |
Ok - thanks (MY Help was not working as I had to download new help as my Windows Vista need new version) Now I have help on zmud not just here.
getting there but still not getting it working -
#trigger {(%w) * (%d)yr * (%w) * (%w) Guild}
#additem player %1 %4
this gives me in data record @player
Matt Wizard
Chris Knight
Dave Mage
Sonia Knight
so i have been trying all sorts to ref this eg
#IF (%ismember( %1, @player)) {#Sh %db(@player %1.2)}
but can not seen to get a grasp of this subject yet or am not seeing something
all i am trying to do is say
alias t sonia
set target sonia AND show me sonia is a knight (from the @player var I captured earlier} |
|
|
|
|
|