Jump to content

In Dire Need Of A Script!


Recommended Posts

You should not use the dead rat from Actors-Creatures because that one doesn't have the quest item property. You should make a new rat instead (just double-click the dead rat and change the form ID, when it asks if you want to create a new form, say yes). Then using that new dead rat, put it on the map somewhere. Then double click the rat you just put down in the render window, and name it Xmarkerref. Also, remember to make it disabled.
Link to comment
Share on other sites

Ummm it still isn't working...

 

This is the script I am using.

 

scn zzTeleportRealmofBliss

ref Xmarkerref

ref xmarkerref2

begin ScriptEffectStart

if zzteleportref ==0

Xmarkerref.moveto player

player.moveto xmarkerref2

set zzteleportref to 1

endif

 

if zzteleportref ==1

player.moveto Xmarkerref

set zzteleportref to 0

endif

 

end

 

I have two rats that are persistent references in my world space "home" they are initially disabled, and their ID is teleportratref. Their indivdual ID's are Xmarkerref and Xmarkerref2

 

I have this script set to spell, and the script attached to a scripted affect on a spell...Yet when I cast the spell, it doesnt do anything!

 

HELP!

 

EDIT: Is my second rat(Xmarkerref) supposed to be in the world space? Also if not should it have a different ID than the one I gave to Xmarkerref2? Also, should the ID's be Xmarkerref/Xmarkerref2? or should the Reference Editor Id's be it?(I am using reference editor Ids currently.

Edited by ApocalypticPictures
Link to comment
Share on other sites

Both the rats are supposed to be in the world space. The only thing that needs to be different is their reference editor IDs. And yes, Xmarkerref/Xmarkerref2 are supposed to be the reference editor IDs. If you're doing all those things, I don't know what could be going wrong. Try adding in debug messages so you can figure out what's happening.

 

scn zzTeleportRealmofBliss

ref Xmarkerref
ref Xmarkerref2

Begin ScriptEffectStart

Message "Teleport spell has been cast!"

if (zzteleportref == 0)
	Message "Destination: Realm of Bliss!"
	Xmarkerref.MoveTo Player
	Message "Current location saved!"
	set zzteleportref to 1
	Message "Commencing teleport!"
	Player.MoveTo Xmarkerref2
endif

if (zzteleportref == 1)
	Message "Destination: Saved location!"
	set zzteleportref to 0
	Message "Commencing teleport!"
	Player.MoveTo Xmarkerref
endif

End

Link to comment
Share on other sites

Both the rats are supposed to be in the world space. The only thing that needs to be different is their reference editor IDs. And yes, Xmarkerref/Xmarkerref2 are supposed to be the reference editor IDs. If you're doing all those things, I don't know what could be going wrong. Try adding in debug messages so you can figure out what's happening.

 

scn zzTeleportRealmofBliss

ref Xmarkerref
ref Xmarkerref2

Begin ScriptEffectStart

Message "Teleport spell has been cast!"

if (zzteleportref == 0)
	Message "Destination: Realm of Bliss!"
	Xmarkerref.MoveTo Player
	Message "Current location saved!"
	set zzteleportref to 1
	Message "Commencing teleport!"
	Player.MoveTo Xmarkerref2
endif

if (zzteleportref == 1)
	Message "Destination: Saved location!"
	set zzteleportref to 0
	Message "Commencing teleport!"
	Player.MoveTo Xmarkerref
endif

End

 

 

Alright...This somewhat works...When I use the spell the first time, Xmarkerref comes to me...but I dont get teleported to Xmarkerref2. Also, if I use the spell again I get teleported to the place where I used it originally. So the second half works, but the first only partially works. Hmmm could this be because I am using a world space instead of an internal cell? Also should my rats be persistent references? Because they are.

Link to comment
Share on other sites

What's the last message that gets shown when you use the spell? From what you're saying, everything works except for "Player.MoveTo Xmarkerref2". I really don't see how that's so... I've used that command many times, and besides, it's used in the second half of this script and it works just fine.

 

The only thing that I can think of is that when you use the spell, you're already standing on top of Xmarkerref2.

Link to comment
Share on other sites

  • 2 weeks later...

http://www.mediafire.com/?a7ge1fujds6ssgw

 

Here is the download link. Please note that the spell is for sale in the imperial city market district, in the mystic emporium(I think). Also there is a portal linked to the Realm of Bliss World, in case you need to travel there(just travel to the imperial market.). If you do travel there do not take Akatosh's Ring of Destruction from the chest, as it requires custom meshes and textures.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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