The Elder Scrolls Forums

TES Construction Set and Plugins >> General TES Construction Set

Pages: 1
Zennorious
Curate

Reged: 02/03/03
Posts: 474
Loc: Hungary
CellChanged question
      #2972574 - 08/26/04 01:34 PM

I'm working on a global script and it should detect when the player changes cell. It's working but when I use teleportation magic or positioncell or coc the script doesn't seem to react to the change of the cell. When I use doors or simply walk from one exterior cell to another it works. The teleportation magic is not a problem because I can check when the player uses these spells. The most interesting thing is when I tried teleporting to Mournhold asking the woman in Ebonheart the script understood that there was a cell change. But when I created an activator that teleported the player to another location the script didn't react. The script that teleports the player from Ebonheart to Mournhold uses positioncell. So I don't understand this. I've tried making a simple script just to test this situation:
Code:

begin My_Script

if ( CellChanged == 1 )
MessageBox "New cell"
endif

end



and it did the same.

So do you have any idea why doesn't this work or how to make an alternate way to globally check when the player changes cell? Thank in advance!

--------------------
My mods
Vampiric Hunger
Uriziel Sword
Month Bugfix
Regionally Known Werewolves
can be found on my Morrowind site.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Tamandra
Adept

Reged: 04/12/04
Posts: 296
Loc: York, England
Re: CellChanged question [Re: Zennorious]
      #2973256 - 08/26/04 07:17 PM

Interesting - it's said in MSFD8 that teleporting from a cell won't trigger the cellchanged function, which you have found out for yourself here.

As to positioncell working for the Mournhold script but not your activator I wonder whether that's because the script from Tribunal is a global whereas yours is a local script. Might be worth playing around and making your activator's script call another script that contains positioncell.

As to globally checking for when the player changes cell that would work for all means of leaving a cell then GetPCCell is certainly helpful for checking that the player is or isn't in a specific cell and could achieve a similar effect on a smaller scale but I'm not sure how you would do it for every cell.

--------------------
I make no apology for linking my thinking with computer technology.

My screenshots

Post Extras: Print Post   Remind Me!   Notify Moderator  
Zennorious
Curate

Reged: 02/03/03
Posts: 474
Loc: Hungary
Re: CellChanged question [Re: Tamandra]
      #2978341 - 08/28/04 04:15 AM

Thanks. Making to positioncell script global triggered the script. So I redid my script and it's not using cellchanged again. Cellchanged is totally unreliable.

--------------------
My mods
Vampiric Hunger
Uriziel Sword
Month Bugfix
Regionally Known Werewolves
can be found on my Morrowind site.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1


Extra information
1 registered and 4 anonymous users are browsing this forum.

Moderator:  Umrahel, Freddo, Pete, Hungry Donner, Attrebus, Miltiades, tegger 

Print Thread

Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Thread views: 69

Rate this thread
 
Jump to

The Elder Scrolls Homepage

*
UBB.threads™ 6.3

Click for Privacy Statement 2003 Bethesda Softworks LLC, a ZeniMax Media company. All Rights Reserved.
PRIVACY POLICY | TERMS & CONDITIONS | LEGAL INFORMATION | CONTACT US