Jump to content

Teleport Spell? Or: "Beam Me Up, Scotty"


BlueSteelRanger

Recommended Posts

Spellgiven was ment as global or quest variable as comment said, that's why it isn't defined in a script. If you want it local, just define it as short in that script. Otherwise global variables can be defined under "Gameplay->Globals..." menu, if you haven't some quest available. If you have, just define it in its quest script and access it through "{Editor ID of said quest}.spellgiven".

Edited by RomanR
Link to comment
Share on other sites

  • Replies 42
  • Created
  • Last Reply

Top Posters In This Topic

Update: I'm sad to report that the attempted Teleport tome crashed my game. I fear I may have to remove it altogether.

 

I should note that I tried DoOnce and I tried replacing "Spellgiven" with "addspell". The CS didn't throw any errors at me, and my load order (LOOT and Wrye Bash) didn't seem to detect anything untoward.

 

However, when I tested in-game, the books crashed me out. I've reverted my working three back to the scripts I started with -- they're good.

Example: One of my successful three Spell Tomes is "Field Medic". Its script looks like this.

 

scn BSRFieldMedicSpellTomeSCRIPT
short doOnce
begin onactivate
if doOnce == 0
Activate
Message "Medic! Medic on the field! You'll be fine, Cadet."
playsound SPLRestorationCast
player.addspell BSRFieldMedic
set doOnce to 1
endif
end

 

 

Another unexpected update: Y'ALL! Y'ALL! IT WORKED! THE TELEPORT SPELL WORKED!

 

I accidentally took out another spell of mine (but I can put it back in easily. And it's just a semi-cheaty "Keep you alive with ridiculous health" thing).

I reverted back to a very short script I had originally used and moved it from a BOOK to a NOTE/SCROLL-type thing. A "letter", essentially.

 

And it worked! No crashes, no bugs, no freezes!

 

Here is the Teleport Spell script:

ScriptName BSRGoinHomeSplScript

Begin ScriptEffectStart
MessageBox "Get me out of here, I can't take any more!"
End

Begin GameMode
player.MoveTo BSRTakeMeHomeRef
playSound SPLMysticismCast
End

 

 

Here is the script I put on a NOTE instead of a full BOOK:

scn BSRRescueMeTeleportTomeScript
short doOnce
begin onactivate
if doOnce == 0
Activate
Message "Get me out of here, I can't take any more!"
playsound SPLRestorationCast
player.addspell BSRGoinHome
set doOnce to 1
endif
end

 

Edited by BlueSteelRanger
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...