Jump to content

Where am I?


the00phoenix

Recommended Posts

I went through GhanBuriGhans scripting tut and noticed that you can get the cell the player is currently in, but not the region.

A similar command to the GetPCCellID for regions would be great, is there any?

If not, does anyone know of a workaround that does not imply hardcoding every single region into the script (which would need constant updating if new regions are available)?

 

Greetz, the__phoenix

Link to comment
Share on other sites

I'd need it for weather changing, but if you do not have a GetRegionID function you can't make good scripts, since some regions require special handling like the Red Mountain Region after the Blight has gone or Mournhold during the ash storm, to name a few. Pluged in regions cause other problems, because you can't know them in advance. <_<
Link to comment
Share on other sites

I believe this happens when you execute a script from dialogue or something, for instance, after defeating Dagoth Ur you have to talk to Azura, in her script it may change the weather. Check her script, i didnt fully understand the question so if this has nothing to do with it then just dont worry about.
Link to comment
Share on other sites

Er... AzuraEnd doesn't open a dialogue window.

 

For just chinging the weather, ModRegion will work -- in the EndGame script, the command used to make the Blight stop is...

 

ModRegion "Red Mountain Region" 50, 50, 0, 0, 0, 0, 0, 0

 

Similarly, for making the ashstorms in Mournhold...

 

ModRegion "Mournhold Region" 0, 0, 0, 0, 0, 0, 100, 0,

Link to comment
Share on other sites

I know, I know, I just want to change the weather temporarily, when I equip an item. Therefor I would need the current region ID during runtime for either the ModRegion or the ChangeWeather command and a variable to store the old weather enum.

Since it can occure, that the PC changes region during the changed weather period I would again need the current region ID to change the weather there (and switch it back in the previous region). This way I could store the current weather enum of every single region and change it back, without messing with the original weather settings.

But that's not possible and I have to hardcode every single region into the script, which causes unresolveable problems (as mentioned above).

I think this idea of mine is not worth further tracking, since it is simply not possible to implement.

 

Greetz, the__phoenix

Link to comment
Share on other sites

Archived

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...