Jump to content

I have a little script/condition question


Recommended Posts

Without saying too much about what's it's for, i'd like to ask if there is a dialogue condition that checks how many times a certain npc has entered a certain cell? I have several "answer" topic versions, and i want each of them to only display after that npc has been in certain cells a certain amount of times.

 

If this isn't possible via scripts or conditions (which are easier to handle), i'll scrap that part of the larger idea, but if it is, i'd very much like to know about it.

 

Thanks in advance! -Gguy

Edited by charliedfsf
Link to comment
Share on other sites

One solution:

Place a trigger volume box over the entire cell. Give the trigger volume box a script which will use the OnTriggerEnter event. Use this event to compare the akActionRef parameter to the desired actor. If a match, increment a global variable. Then use that global variable within any condition statements or other scripts to trigger whatever else you need to do when it reaches a specific value.

Link to comment
Share on other sites

One solution:

Place a trigger volume box over the entire cell. Give the trigger volume box a script which will use the OnTriggerEnter event. Use this event to compare the akActionRef parameter to the desired actor. If a match, increment a global variable. Then use that global variable within any condition statements or other scripts to trigger whatever else you need to do when it reaches a specific value.

 

I'll see what i can do after i get the other things out of the way, thank you.

Edited by charliedfsf
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...