Jump to content

Recommended Posts

Posted (edited)

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
Posted

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.

Posted (edited)

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
Posted

Another way would be to attach a script to a player alias with an OnCellAttach() event that, it this is the cell of interest, increments either a global or the player's rank in a special faction, which can then be tested in dialogue conditions.

  • Recently Browsing   0 members

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