lfnetwork.com mark read register faq members calendar

Thread: planet scripting question
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 06-22-2009, 11:48 PM   #1
newbiemodder
Gentleman Modder
 
newbiemodder's Avatar
 
Join Date: Feb 2009
Location: Chicago
Posts: 706
Veteran Modder 
planet scripting question

I'm following stoffe's Adding planets to galaxy map for TSL..going fine..question: when editing the a_galaxymap.nss script, I want my planet to be available after a certain conversation takes place on Dantooine. What would my if-statement look like? Would I have to assign a global to the dialog and add it to globcat.2da? Scripting definitely not one of my strengths.
newbiemodder is offline   you may: quote & reply,
Old 06-25-2009, 01:36 PM   #2
gsusfrk
Rookie
 
gsusfrk's Avatar
 
Join Date: Jun 2009
Location: Waiting to stage an ambush
Posts: 40
Current Game: COD:WAW and KOTOR II
Here's an example:
Code:
void main()
{
    if(GLOBAL_VARIABLE_X)//Checks if the global variable you set is true, in this case, we want it to be true when the conversation takes place. You'd need a script to change the global variable value
    {
        //use code here to change globcat.2da
    }
}
Here's an outline of the script you would attach to a certain node in the conversation:

Code:
void main()
{
    SetGlobalBoolean("GLOBAL_VARIABLE_X", TRUE);
}
In both cases, you would set "GLOBAL_VARIABLE_X" to the correct variable name (Sorry, I'm not good with global/local variables) I hope this helps!


gsusfrk is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > planet scripting question

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:39 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.