PDA

View Full Version : Conditional script based on location


JediMaster76
06-11-2009, 06:32 PM
Okay, so I'm getting back into modding, and my skills - which were pretty basic to begin with :: - are a bit rusty.

I want to delay a certain party member's dialog until we enter a specific module (e.g., Korriban academy), so that a spawn-in script can be executed there. So my question is this: What would be the easiest way to check which module the player is currently in, and if he is not in a specific module, cause a conditional script to return false?

stoffe
06-11-2009, 08:45 PM
Okay, so I'm getting back into modding, and my skills - which were pretty basic to begin with :: - are a bit rusty.

I want to delay a certain party member's dialog until we enter a specific module (e.g., Korriban academy), so that a spawn-in script can be executed there. So my question is this: What would be the easiest way to check which module the player is currently in, and if he is not in a specific module, cause a conditional script to return false?


int StartingConditional() {
return (GetModuleFileName() == "702KOR");
}

JediMaster76
06-11-2009, 09:06 PM
int StartingConditional() {
return (GetModuleFileName() == "702KOR");
}


Really? It was that simple? :eek:

Thank you very much, stoffe!