View Single Post
Old 01-12-2012, 03:03 PM   #46
Qui-Gon Glenn
@Qui-Gon Glenn
Digory Kirke's Bafflement
Qui-Gon Glenn's Avatar
Join Date: May 2007
Location: Irune
Posts: 1,492
Current Game: KotOR awww yeah
Folder extraordinaire  Helpful!  Forum Veteran  Veteran Modder 
Great post JCarter426!!

At first reading, I was wishing there were a link to a tutorial somewhere... then realized I was reading one! Nicely done

I have a small question about this though:
void main() {

	object oNPC = GetObjectByTag("NPC_tag", 0);
	int iNPC = NPC_INTEGER;   <-- ???

AddAvailableNPCByObject(iNPC, oNPC);
SetNPCSelectability(iNPC, 1);

Where does the value NPC_INTEGER come from? It probably is an integer constant from nwscript, so I am wondering what object it is being obtained from, and how... I would think it would need to be something along the lines of
int iNPC = GetSomeInfoFromObject(oNPC); This function compiles for me all the time ;)
I believe that what you posted is correct, so really I am asking for further enlightenment

Want to play a game of ME3MP?

Last edited by Qui-Gon Glenn; 01-12-2012 at 03:08 PM.
Qui-Gon Glenn is offline   you may: quote & reply,