Jump to content

Items to Gold Spell


Dandys

Recommended Posts

Hi,

 

I had an idea that it would be cool to have a spell that you can cast on an item to turn it into gold. The gold would be a small percentage of its value, for balancing purposes, probably something lower than the worst you can get from selling it (so it's always better to sell than to do this), maybe set this as a property?

 

Anyway the reasoning would be that it would help people who get encumbered in a dungeon and don't want to completely stop collecting items but also don't want to be bothered by carrying everything all the way out of the dungeon to sell it, and are willing to take a greatly reduced value for the convenience.

 

I am thinking that it could be a spell that you physically cast on an item in the world. If that's the case, it would have to:

 

1. know the item's gold value (getgoldvalue?)

2. know how many of the item are in a stack (is this possible?)

3. delete the item securely without causing save bloating

 

it would calculate a return value and add that many gold to the player and delete the item.

 

Other ways to accomplish this are welcome.

 

Is this in any way possible?

Link to comment
Share on other sites

Not sure about a spell to cast on the object, tho it would be cool to see a sword briefly turn into a stack of gold coins shaped like a sword then collapse to the ground and you'd have to pick them all up. But that would be more gold than what you could get in the shop for a lot of things.

 

What you want to accomplish can be done by picking up the item and then putting it into a specific container. The container script would deterime the item and how many there were, get its gold value, do any calculations to reduce the gold value, etc. Then once the gold value was determined give that to the player and remove the item (without a destination container that item's reference is simply deleted from the game).

 

See these two mods for usages similar to what I outlined above

http://skyrim.nexusmods.com/mods/28178 <-- this one doesn't have the gold option yet but requires the next mod to work

http://skyrim.nexusmods.com/mods/9513 <-- this one does have some options which give the player gold for "trashed" items

 

Perhaps by looking at them you can get some ideas on how to tie the scripting into your spell casting... Maybe have the target of the spell (if an item) transfered to a container and that container uses something similar to what was used in the aforementioned mod(s).

Link to comment
Share on other sites

  • 5 years later...
  • Recently Browsing   0 members

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