I was under the impression (having just installed this same snippet
myself within the last week) that the triggers for the progs within void
act went at the bottom of the function where the write_to_buffer call is
at... That being the case, it's already being passed the formatted
output w/ all names, short desc's etc in it... Unless you told the
function call to pass the original variable that was passed to void act
(instead of the formatted output that gets sent to the user)... Might
wanna check that...

Richard Lindsey


-----Original Message-----
From: Mervine, Keith [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 20, 2004 12:10 PM
To: Dale
Cc: [email protected]
Subject: RE: ROOM Progs


Heh, yes indeed it will but in a room with 3 objects all having the same
trigger. (opens) it would trigger for all of them(including things you
would open in inventory. :P

What I needed was for it to pass "opens a gold chest" or "opens a silver
chest"

Bascially the action and the obj->short_descr.

In the mean time I just created a new type (TRIG_OPEN) and worked it in.
It now works fine.

Just so everyone knows ACT TRIGGERS will only work on the words it can
decipher (ie opens gets says) This took a little poking about for me to
figure out.

Thanks for the reply!

-K

-----Original Message-----
From: Dale [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 20, 2004 1:10 PM
To: Mervine, Keith; [email protected]
Subject: Re: ROOM Progs


I'm a little confused, act_new needs the $n and $p to display the thing
properly to add all the fun can see and that checks. So wheres your
problem your probably setting the prog up improperly.... Ever tried
triggering it to $n opens $p? And see if that will que off the trigger?

Explain what your trying to do a little more.
----- Original Message ----- 
From: "Mervine, Keith" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, May 20, 2004 9:39 AM
Subject: ROOM Progs


Greets,
I am using the Room / Object progs snippet from Ralgha and I'm having a
small problem. Instead of the p_act_trigger getting the correct argument
from act_new its getting something different.

It should be getting:
Thalor opens a gold chest.

When I snoop with GDB it is showing me that it is passing:
$n opens $p

How can I get it to pass the output (Thalor opens a gold chest) and not
the literal translation of act_new($n opens $p)?

Cheers,
K

-- 
ROM mailing list
[email protected]
http://www.rom.org/cgi-bin/mailman/listinfo/rom



-- 
ROM mailing list
[email protected]
http://www.rom.org/cgi-bin/mailman/listinfo/rom

Reply via email to