Hi,
I have the following code:
++ TellTopic [obj1, obj2, obj3, obj4]
"A generic response. "
;
I would like to reference the matchObj name property that triggered this, can someone point me in the right direction?
Thanks,
– Mike
Hi,
I have the following code:
++ TellTopic [obj1, obj2, obj3, obj4]
"A generic response. "
;
I would like to reference the matchObj name property that triggered this, can someone point me in the right direction?
Thanks,
– Mike
Maybe gAction.getDobj(), or probably gAction.getIobj()? (They also have convenience macros in adv3.h: gDobj and gIobj.) They return the current action’s (gAction) direct and indirect object.
I had tried gDobj (that returned the NPC) and gIobj crashed the terp’ with a null reference so I gave up on that and came looking here.
I just searched adv3.h for those convenience macros and I found gTopicText – that did the trick…
Thanks, Nikos!
– Mike