Jump to content


Photo

[SOLVED] How to detect the death of an unspecific creature in the active area?


18 replies to this topic

#16 argent77

argent77
  • Modders
  • 679 posts
  • Gender:Male

Posted 10 August 2017 - 01:26 AM

Looks like the minhp/contingency combination outlined above works fine under all kinds of circumstances. I'll mark this topic as solved. Thanks to everyone for their suggestions.



#17 argent77

argent77
  • Modders
  • 679 posts
  • Gender:Male

Posted 10 August 2017 - 10:44 AM

I've got another minor (semi-related) issue remaining that I'd like to fix. To have a creature enter the new map I'm initiating a dialog where the trigger object talks to him/herself:

ActionOverride(LastTrigger, StartDialogOverride("a7!td1", LastTrigger))

The speaker of the dialog text is displayed correctly. But for some reason the replies are printed in the log window as if spoken by a random creature. For example, an iron golem is called "Shambling Mound" and Aerie is called "Nymph" (see screenshot).
self-initiated_dialog.jpg
All of the mentioned creatures were part of the map at one time or another where the dialog takes place. Any idea how to fix it?

The complete trigger script and relevant dialog portion:

Spoiler


#18 Avenger

Avenger
  • Modders
  • 3692 posts
  • Gender:Male
  • Location:Hungary

Posted 12 August 2017 - 01:07 AM

The died trigger is never sent to the area. It is sent to creatures in range (not even all creatures, just those who actually 'see', the dying creature).

 

About the second question

 

ActionOverride(LastTrigger, StartDialogOverride("a7!td1", LastTrigger)) - are you sure you wanted the LastTrigger to talk to its LastTrigger and not itself (Myself).

 

When you are doing an actionoverride, the objects of the overriding action are relative to the targeted object. 

It should be:

 

ActionOverride(LastTrigger, StartDialogOverride("a7!td1", Myself))

 

if you want Lasttrigger to talk to itself.


Edited by Avenger, 12 August 2017 - 01:16 AM.


#19 argent77

argent77
  • Modders
  • 679 posts
  • Gender:Male

Posted 12 August 2017 - 01:46 AM

ActionOverride(LastTrigger, StartDialogOverride("a7!td1", LastTrigger)) - are you sure you wanted the LastTrigger to talk to its LastTrigger and not itself (Myself).

 

When you are doing an actionoverride, the objects of the overriding action are relative to the targeted object. 

It should be:

 

ActionOverride(LastTrigger, StartDialogOverride("a7!td1", Myself))

 

if you want Lasttrigger to talk to itself.

 

It worked! I knew I missed something.

 

Thanks!
 





Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users