Jump to content

Home

Fire a script on entering any module?


SithRevan

Recommended Posts

Hey guys I was just wondering how would you fire script on entering any module besides 001EBO, 002EBO, 101PER, and a couple other choice modules that I don't want the script to fire on? If this is possible how would you go about doing it, if you guys could help me I would really appreciate it. Thanks!:)

Link to comment
Share on other sites

Hey guys I was just wondering how would you fire script on entering any module besides 001EBO, 002EBO, 101PER, and a couple other choice modules that I don't want the script to fire on? If this is possible how would you go about doing it, if you guys could help me I would really appreciate it. Thanks!:)

 

Assign your script to the OnEnter event in the ARE file of those areas (and execute any original OnEnter script that might be set there from inside your own script instead with ExecuteScript() by checking which area it is the player has entered (GetModuleFileName()).

Link to comment
Share on other sites

Oh thanks stoffe, but won't you have to repackage all of the modules you do that to in a .mod file for the .are file to work?

 

You can edit the ARE file and put it back in the RIM file you extracted it from. Less work that way. (Just make a backup of the RIM files in question first, just in case. Since the ARE file is located in the smaller of the two RIM files that store module data that's fairly easily done).

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...