[align=center]On equip, use global to set state (1,2,3, etc.).
Check player location in relation to nearest Temple.
cast "mark", or somehow keep players current position logged.
Check if player is member of the Temple (or if Expelled).
Teleport to nearest temple, add minor restore health for short period of time.
Change state.
On next equip, ask if player would like to return to previous location. if yes, change state to original, teleport, add minor sanctuary bonus for short period of time.[/align]
I'm not sure, but I think the divine intervention spell takes you to the nearest temple in the first place.
I don't think this would be too hard to do, and shouldn't need MWSE, and also, if I use standard spells, like mark and recall, should also cater to the very small percentage of the Morrowind community who don't have the expansions, for whatever reason.
I'll post my attempt at the script a little bit later, but for now, what are your thoughts on this? Is there a better way I can organize, and implement my idea?
Edit: Well my attempt crashed Morrowind.

- Code: Select all
Begin MSTT_TR
short OnPCEquip
short MSTT_TRG
if ( OnPCEquip == 1 )
if ( GetPCRank "Temple" == -1 )
MessageBox "Only one of the cloth may wear this."
elseif ( PCExpelled "Temple" == 1)
MessageBox "You must make peace with the Temple before you may wear this."
elseif Cast, "MSTT_AI", Player
set MSTT_TRG to 1
set OnPCEquip to 0
endif
endif
endif
endif
if ( MSTT_TRG == 1 )
if ( OnPCEquip == 1 )
if ( GetPCRank "Temple" == -1 )
MessageBox "Only one of the cloth may wear this."
elseif ( PCExpelled "Temple" == 1)
MessageBox "You must make peace with the Temple before you may wear this."
elseif Cast, "MSTT_R", Player
set MSTT_TRG to 0
endif
endif
endif
endif
endif
End MSTT_TR
The spells "MSTT_AI" and "MSTT_R" were created to save space. The first, by casting "mark" on the player, then Almisvi's Intervention, and finally a 10 second restore health spell for 5 points. The second, MSTT_R, simply recalls the player, and casts a ten second sanctuary spell for 5 points.