View Full Version : Another Question

08-22-2005, 08:49 PM
I have another question and I looked through the thread this time...

I need to make a script that spawns an NPC only if you kill both yuthura and uthar during the last lesson on korribon.

I might have missed it in the scripting thread...

08-22-2005, 11:12 PM
This should do it :) I think the two globals for the final test in the Korriban Academy are correctbut I had a very quick look and I may have missed an option.

void main()

if ((GetGlobalNumber("KOR_FINAL_TEST") == 4) || (GetGlobalNumber("KOR_FINAL_TEST") == 7))
CreateObject(OBJECT_TYPE_CREATURE, "my_npc", Location(Vector(0.00,0.00,0.00), 0.0));