View Full Version : Star Map Script Help!

06-25-2004, 02:15 AM
Is there a KOTOR script command to detect how many star maps have been found by the PC, and then run if it is over a certain amount, like say 3 star maps, or exit out of the script if it is less than that?

Lorden Darkblade
06-25-2004, 09:11 PM
Mate I think I should apologize for the trouble you are having with that script :p
I believe I'm the one that gave you that trouble with the idea of my Lightsaber right?
Well if not possible then just make it findable with some NPC in Korriban after talking the right words with him.
If you want me to explain better or give other ideas just PM me.

06-25-2004, 09:54 PM
You can check k_qa.nss to get the global numbers for the planets and the star maps.
Then, depending on what you want to do, make a script that will contain something like this :
(the content of the script may vary depending on what you want to do. This one can be attached to the active filed of a dlg file to make a reply available or not.

int StartingConditional()
int nStar = GetGlobalNumber("K_STAR_MAP");

if (nStar==30)
return TRUE;
return FALSE;

I you want an event to occur after the discovery of the 3rd star map you could make a script that starts with:
void main()
int nStar = GetGlobalNumber("K_STAR_MAP");

if (nStar==30)
do something

06-25-2004, 11:34 PM
Star Map
The global number is:
0 - No maps activated
10 - 1st Map Activated (Dantooine)
20 - 2nd Map Activated
30 - 3rd Map Activated
40 - 4th Map Activated - Captured by the Leviathan
50 - 5th Map Activated

from k_qa.nss

06-26-2004, 12:53 AM
Darth333 it worked like a charm! :D And TK102 thanks for the info as well.

Hmm... k_qa.nss, I would have never guessed. Again, thank you both for answering! :D