Jump to content

Script Help?


tnu

Recommended Posts

i was wondering if anyone could give me a script to apply to a book thats similer to Spell Tomes book scripts but with some extras. checks to see if you already have the spells provided by the script. and for it to loop so it initiates every time you opent he book
Link to comment
Share on other sites

yeah i just want the powers added to the player whenever he reads the book. i'm just looking for a way to fix the bug of the vanishing spells in the older Toaster Says Share and Recruit
Link to comment
Share on other sites

In that case, the script should go...

 

scn MySpellbookScript

Begin OnActivate
 AddSpell MySpell
;Repeat for other spells if necessary
end

Begin OnEquip
 AddSpell MySpell
;Repeat for other spells if necessary
end

 

OnActivate runs when the book is activated in the world, and OnEquip when you select the book in your inventory.

Link to comment
Share on other sites

ok thanks a bunch but how do i attatch the script to the book? and does addspell work on powers too?

 

EDIT: Oh and do i use the spells Base or Ref ID?

 

EDIT: i tried it and it said nested sotmhign blocks arnt allowd what did i do wrong?

Link to comment
Share on other sites

you use the spell Ref ID.

you find the book you want in the CS and then open up its properties and click drop down menu and select the script.

http://i201.photobucket.com/albums/aa309/darkninja462/book1.jpg

 

there is the window that should pop up.

what do you mean by powers ?

cus if you mean skills then yes

player.ModActorValue "(Replace with skill)"

and this will boost your skill.

 

so in theory you will have something like this.

 

scn MySpellbookScript

Begin OnActivate
 AddSpell MySpell
 player.ModActorValue "skill"
  ;Repeat for other spells/skills if necessary
end

Begin OnEquip
 AddSpell MySpell
 player.modactorvalue "skill"
  ;Repeat for other spells/skills if necessary
end

Link to comment
Share on other sites

no by powers i mean greater and Lesser powers that are also present int he spellbook but not considerd spells

 

EDIT still what did they mean "Nested Begin/end blocks are not allowd"?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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