Jump to content

How To Add Spells Or Items By Using A Script


LegoManIAm94

Recommended Posts

Here is a tutorial on how to add spells or items to the player by using a script

 

First Items

 

Go and make a new Gobal variable and make sure it is a short and is at 0

 

Then make a new script and type the following

 

Begin Scriptname

 

if (Gobalvar==0)

Player->Additem “ItemID” Amount

Player->Additem “ItemID” Amount

Set GobalVar To 1

Endif

 

Stopscript Scriptname

 

End

 

Then add the script to the start scripts

 

Now Spells

 

Then make a new script and type the following

 

Begin Scriptname

 

Player->Addspell "SpellID"

Player->Addspell "SpellID"

Stopscript Scriptname

 

End

 

Then add the script to the start scripts

 

Then test your mod out and see if it adds the spell/item. If you are doing items save then load the file again and see if the item gets added to you again. If it doesn't add the item again then it works.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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