Aller au contenu

Photo

on examine trap event?


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
MrZork

MrZork
  • Members
  • 941 messages
I would like to replace the default log text that displays when a character makes a successful attempt to identify a trap. Right now, the log reads something like Take 20 : Tira Trapspotter : Examine Trap : *success* : (20 + 26 = 46 vs. DC 29). I would like to replace that with something that notes the name of the trap examined, as well, e.g. Take 20 : Tira Trapspotter : Examine Trap : *success* : (20 + 26 = 46 vs. DC 29) : Fire Trap, Deadly.

(I know that the trap name shows up in the examine widget that displays. I want it in the log as well.)

I guess there are two parts to this that aren't clear to me. First, how do I hook the examine trap event? Getting to the disarm event is easy, but I am not seeing an analog to OnDisarm that fires when a trap is examined. Second, how do I replace the text that normally appears with the text I would like to appear? Obviously, it would be better if both didn't show up. ;-)

Modifié par MrZork, 16 juillet 2012 - 11:25 .


#2
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
I can only help with the source for the line being printed. It is either

StrRef 10473
<CUSTOM0><CUSTOM1> : <CUSTOM2><CUSTOM3> : *<CUSTOM4>* : (<CUSTOM5> <CUSTOM6> <CUSTOM7> = <CUSTOM8> vs. DC: <CUSTOM9>)

or StrRef 10484
<CUSTOM0> : <CUSTOM1> : *<CUSTOM2>* : (<CUSTOM3> <CUSTOM4> <CUSTOM5> = <CUSTOM6> vs. DC: <CUSTOM7>)

I hope that somehow helps you in your search for a solution.

#3
MrZork

MrZork
  • Members
  • 941 messages
It at least looks like there might be a script that takes care of the skill check and sets those parameters. I am not sure if that means it is one I can hook/modify/override or if it is coded in the engine. I will do some more hunting tomorrow. Thanks, Lightfoot8.