Jump to content

Home

Conditional script based on location


JediMaster76

Recommended Posts

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?

Link to comment
Share on other sites

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");
}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...