Welcome to CWG Project Home
Search
Home · Topics · Downloads · Your Account · Forums · Top 10
 
 


 
 
Who is Online

There are currently, 106 guest(s) and 17 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
 
 

 
 
Modules

· Home
· Content
· Downloads
· FAQ
· Feedback
· Forums
· Journal
· Members List
· Private Messages
· Recommend Us
· Reviews
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Top 10
· Topics
· Web Links
· Your Account
 
 

 
 
Search



 
 

 
  cwg.lazuras.org :: View topic - DG Scripts: %actor.eq(wield).vnum% returns 0
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DG Scripts: %actor.eq(wield).vnum% returns 0

 
Post new topic   Reply to topic    cwg.lazuras.org Forum Index -> Builder Lounge
View previous topic :: View next topic  
Author Message
hodge
CWG - Member


Joined: Sep 18, 2005
Posts: 65

PostPosted: Mon Oct 10, 2011 10:04 pm    Post subject: DG Scripts: %actor.eq(wield).vnum% returns 0 Reply with quote

The character who triggers the script (actor) is wielding a spiked club, vnum 7822.

%actor.eq(wield).vnum% seems to return 0, but %actor.eq(wield).shortdesc% returns 'a spiked club' perfectly.



Thoughts? Something I'm missing?
Back to top
View user's profile Send private message AIM Address
hodge
CWG - Member


Joined: Sep 18, 2005
Posts: 65

PostPosted: Mon Oct 10, 2011 11:02 pm    Post subject: Reply with quote

So, a little more digging turned up Kyle's fishing script (I knew it was there somewhere).

Using this:
Code:
eval wielded %actor.eq(wield)%

followed by
Code:
%wielded.vnum%

works perfectly.

I'm still not 100% clear on why
Code:
 %actor.eq(wield).vnum%

doesn't return the same thing.
Back to top
View user's profile Send private message AIM Address
Kyle
CWG - Honored Elder


Joined: Nov 29, 2006
Posts: 301
Location: British Columbia - Canada

PostPosted: Fri Nov 11, 2011 10:50 pm    Post subject: Reply with quote

Well, I can't think of a good reason...

Let me play a bit and I'll post back.
_________________
The Augmented dimension : mud.themudhost.net port 5000
Owner
Back to top
View user's profile Send private message
Jamdog
CWG - Honored Elder


Joined: Jun 18, 2006
Posts: 1685
Location: Halesowen, England

PostPosted: Thu Nov 17, 2011 1:12 pm    Post subject: Reply with quote

hodge wrote:
I'm still not 100% clear on why
Code:
 %actor.eq(wield).vnum%

doesn't return the same thing.

Not sure either, but you should be able to do something like
Code:
 %%%actor.eq(wield)%%.vnum%

Can't remember the exact syntax for it, but can use % like parentheses. I'm sure someone will post the correct method if mine is wrong, but I was unable to find an example...
_________________

Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Fizban
CWG - Honored Elder


Joined: Nov 26, 2005
Posts: 1390
Location: Shelby Township, Michigan

PostPosted: Mon Dec 05, 2011 2:04 pm    Post subject: Reply with quote

Don't think it will double parse in anything but an eval.

In theory though the syntax would be %%%actor.eq(wield)%.vnum%%

EDIT: Hmm, somehow skipped the first post the first time and just saw the second and subsequent posts, apparently it is parsing right if %actor.eq(wield).shortdesc% evaluates properly, so no clue why only vnum requires an eval line.
_________________

DG Script Reference Forum
4 Dimensions
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    cwg.lazuras.org Forum Index -> Builder Lounge All times are GMT - 4 Hours
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

Powered by phpBB © 2001, 2005 phpBB Group
 
 


 
 


All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest ? 2002 by me
You can syndicate our news using the file backend.php or ultramode.txt
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.24 Seconds