Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

create xmarker via scripted spell in game...help


cotoli
 Share

Recommended Posts

Hi everyone. Im new here. Im sorry if i make i mistake...and i hope some kind soul will help me!

 

I´ve been taking tutorials about papyrus (i started 4 days ago), and by now i managed to make an orb wich teleports you to a bunch of xmarkers previously dropped via creation kit.  Also, i created an aimed spell that drops a custom marker  and an orb to access the teleport menu where you stand(i hope its permanent, need to test that)

 

And here comes my headache:

-I cant make the spell work. My script compiles, but it only places the orb, (i can access its menu, but when i select the custom marker nothing happens...)

-the orb spawns behind me, not where i aim with the spell

 

Inside the spoiler its the current spell script...please help!!

 

Scriptname createorb extends activemagiceffect

Spell Property Orbspell auto; the spell actually related to this scripted magic effect
ObjectReference Property kkcustomMarker1 Auto ; xmarker initially disabled in your custom cell
ObjectReference Property kkcustomMarker2 Auto
Static Property orbMarker1 Auto ; custom XmarkerHeading set as reference into your Orb Script as teleport destination
Static Property orbMarker2 Auto
Activator Property teleportorbcustom1 Auto ; One Orb for each playerhouse
Activator Property teleportorbcustom2 Auto


Event OnEffectStart(Actor akTarget, Actor akCaster)
   akTarget as ObjectReference

      If (customMarker1.isDisabled())

             kkcustomMarker1.Enable()
                   Utility.Wait(0.2)
             akTarget.PlaceAtMe(teleportorbcustom1)
                   Utility.Wait(0.2)
             Game.GetPlayer().PlaceAtMe(orbMarker1)

      ElseIf (CustomMarker2.isDisabled())

             kkCustomMarker2.Enable()
                   Utility.Wait(0.2)
            akTarget.PlaceAtMe(teleportorbcustom2)
                  Utility.Wait(0.2)
            Game.GetPlayer().PlaceAtMe(orbMarker2)

      EndIf

EndEvent

Event OnEffectFinish( Actor akTarget, Actor akCaster)

      If akCaster == Game.GetPlayer()
           If (customMarker1.IsEnabled() && customMarker1.IsEnabled())
                 Game.GetPlayer().RemoveSpell(OrbSpell)

           EndIf

      EndIf

EndEvent

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...