Jump to content

How To Add Spells Or Items By Using A Script


LegoManIAm94

Recommended Posts

This is a tutorial to show you how to add spells or items to the player. Thanks to a old topic I have posted when I asked how to do it.

 

First Spells

 

make a new quest and make sure that it is Start Game Enabled

 

Then open up the script editor and make a new script and type this

 

scn Scriptname

 

Begin Gamemode

 

player. addspell "SpellID"

player. addspell "SpellID"

Stopquest QuestID

 

end

 

Then add this script to the quest

 

Next Items

 

make a new quest and make sure that it is Start Game Enabled

 

Then open up the script editor and make a new script and type this

 

scn Scriptname

 

Begin Gamemode

 

player. additem "ItemID" Amount

player. additem "ItemID" Amount

Stopquest QuestID

 

end

 

Then add this script to the quest

Link to comment
Share on other sites

A better place for this would be the Wiki. This is just a thread; it will wind it's way out of sight within a few days and nobody needing it will ever see it. Besides, nobody ever searches the forums before asking a question that has been asked a thousand times... :)
Link to comment
Share on other sites

  • Recently Browsing   0 members

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