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


 
 
Who is Online

There are currently, 127 guest(s) and 24 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 - trigger help
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

trigger help

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


Joined: Sep 10, 2009
Posts: 86

PostPosted: Tue Jul 19, 2011 11:59 pm    Post subject: trigger help Reply with quote

I'm having a bit of a problem with a trigger. The trigger is meant to heal the PC when it is spread over the body, but if it's in the PC's inventory it doesn't let them use it...it does let them use it if they drop it...could somebody tell me what i'm doing wrong?

Code:
Name: 'embaming fluid',  VNum: [  302], RNum: [   26]
Trigger Intended Assignment: Objects
Trigger Type: Command , Numeric Arg: 100, Arg list: spread
Commands:
set sa %send% %actor%
set ea %echoaround% %actor%
if %arg% == fluid || %arg% == jar || %arg% == embalm
  %sa% You spread the embalming fluid over your body.
  %ea% %actor.name% spreads the embalming fluid over %actor.hisher% body.
  dg_cast 'cure light' %actor.name%
  %purge% %self%
end
Back to top
View user's profile Send private message
welcor
CWG - Honored Elder


Joined: Feb 02, 2004
Posts: 748
Location: Norway, Europe

PostPosted: Wed Jul 20, 2011 6:22 am    Post subject: Reply with quote

See http://www.builderacademy.net/Oasis_DG_pages/contents/obj_triggers.htm#Command - the NArg i wrong.

For this trigger to fire on carried objects, the numeric arg must be 2
_________________
For all intents and purposes retired trigedit maintainer (new name for DG scripts from next version)
Build for yourself at the Builder Academy.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MysticNerian
CWG - Member


Joined: Sep 10, 2009
Posts: 86

PostPosted: Wed Jul 20, 2011 9:00 am    Post subject: Reply with quote

thanks welcor I was looking for that help page because I had lost it a while back

*bookmarking again*

that solved my problem
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    cwg.lazuras.org Forum Index -> CWG - Rasputin 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.23 Seconds