You can't have objects casting spells at the moment randomly in combat. First, theres no trigger type that will check to see if the wielder is in combat, and if you make a random trigger, the problem is that there is no 'actor' variable thats assigned to object. The only way I've found to make an object cast during combat is with a 'command' trigger where the wielder has to use a command to activate the weapon. I don't know about the death trigger, I haven't used it... but there doesn't need to be an 'end' at the end unless you're also using an 'if' statement. Tom Dailey wrote: > Hello, > > The death trigger for mobs does not seem to be working. > Has anyone else had this problem? > > Also, I'm trying to get an object to cast a spell during fighting, > but it's just not working. Here's the script code. Any help is > appreciated. > > Trigger Intended Assignment: Objects > Trigger Type: Random , Numeric Arg: 100, Arg list: None > Commands: > if %actor.fighting% > oecho %name% rumbles to life! > dg_cast 'fireball' %actor.fighting% > end > > The death prog > > Trigger Intended Assignment: Mobiles > Trigger Type: Death , Numeric Arg: 100, Arg list: None > Commands: > say You've done it now, %actor.name%!! > emote gives a bloodcurdling wail! > mload 30901 > end > > +------------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | > +------------------------------------------------------------+ +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST