PDA

View Full Version : Another Question


SithlordsJedi
08-22-2005, 09: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...

Darth333
08-23-2005, 12:12 AM
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));
}
}