Thread: NPC DB - CT correlation
-
July 5th, 2020, 14:24 #11
Once again you have come up with a solution for me.
Thanks Trenloe, you're a legend
Cheers, Steve.
-
July 5th, 2020, 14:29 #12
I don't know where your script is running. But if it's outside of the CT, then you'll need to check that wCT (in my example above) isn't nil before getting the windowlist control. Use if wCT then...
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
July 5th, 2020, 14:31 #13
wCT is fine, it returns the combattracker windowinstance, but wCT.list_ctbox_host reurns nil. Here's my testing code, what am I doing wrong ?
Code:local wCT = Interface.findWindow("combattracker_host", "combattracker") Debug.console("wCT",wCT) local tmp=wCT.list_ctbox_host Debug.console("tmp",tmp)
-
July 5th, 2020, 14:38 #14
Which ruleset are you using again?
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
July 5th, 2020, 14:42 #15
It's 5e.
Think I've got it though...
I think local tmp=wCT.list is what I needed.
Thanks you again for your assistance, invaluable as ever
Cheers, Steve.
-
July 5th, 2020, 14:46 #16
Yep, use .list - the control is named "list" within the list_ctbox_host template.
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks