View Single Post
Old 01-12-2012, 07:52 PM   #52
Qui-Gon Glenn
@Qui-Gon Glenn
Digory Kirke's Bafflement
Qui-Gon Glenn's Avatar
Join Date: May 2007
Location: Irune
Posts: 1,491
Current Game: KotOR awww yeah
Folder extraordinaire  Helpful!  Forum Veteran  Veteran Modder 
Originally Posted by JCarter426
I used these for a script that switches the active PC to a party member. I needed to get the integer of the current PC and store it, check if who I'm turning into is available, make sure the two aren't the same, remove who I'm switching to from the party if present so the game doesn't CRASH, add the other party members back into the party (with the integer), and various other things - and give different error messages depending on the situation. Took me days to sort out all the possibilities.
Most interesting... The reason why I wondered this is because at the beginning of my SERIOUS scripting adventures, something you actually helped me with once upon a time, and sadly most of the thread was lost to a website database issue. Anyways, when I was needing to RemoveEffect(xxx) from a certain NPC, I needed to find the specific effect. I found it quite frustrating that there was no way to directly "get" the value - rather I had to use a loop and use GetCurrentEffect and compare that to my desired value, else GetNextEffect rinse'n'repeat.... It got the job done but it was IMO less than ideal.

My confusion I now recognize as one of those moments... NPC_INTEGER, where INTEGER is a placeholder for the actual data, eg MISSION or ATTON. I musta drank about 15 Dr. Peppers....

Want to play a game of ME3MP?
Qui-Gon Glenn is offline   you may: quote & reply,