GguyWesker101 Posted December 6, 2018 Share Posted December 6, 2018 (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 December 6, 2018 by charliedfsf Link to comment Share on other sites More sharing options...
IsharaMeradin Posted December 7, 2018 Share Posted December 7, 2018 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 More sharing options...
GguyWesker101 Posted December 7, 2018 Author Share Posted December 7, 2018 (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 December 7, 2018 by charliedfsf Link to comment Share on other sites More sharing options...
Deleted3897072User Posted December 13, 2018 Share Posted December 13, 2018 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. Link to comment Share on other sites More sharing options...
Recommended Posts