RedHawke Posted June 25, 2004 Share Posted June 25, 2004 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? Link to comment Share on other sites More sharing options...
Lorden Darkblade Posted June 26, 2004 Share Posted June 26, 2004 Mate I think I should apologize for the trouble you are having with that script 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. Link to comment Share on other sites More sharing options...
Darth333 Posted June 26, 2004 Share Posted June 26, 2004 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 } } Link to comment Share on other sites More sharing options...
tk102 Posted June 26, 2004 Share Posted June 26, 2004 Star Map The global number is: K_STAR_MAP States: 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 Link to comment Share on other sites More sharing options...
RedHawke Posted June 26, 2004 Author Share Posted June 26, 2004 Darth333 it worked like a charm! And TK102 thanks for the info as well. Hmm... k_qa.nss, I would have never guessed. Again, thank you both for answering! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.