Skip to content

Crafting items

Is there anyway to script a new crafting menu or add to the existing menu to create your own crafting components?

Comments

  • MelkiorMelkior Member Posts: 204
    The short answer is "yes." The longer answer is that you need to edit the existing conversation file for crafting and add in your own choices and scripts in order to handle the extra crafting. If you need components which aren't on the default list, you just create them as new items (eg. miscellaneous small) with an appropriate appearance and tag.
    How to do all of this is too large for a simple comment. It really needs a whole module-building course, if you're a novice.

    Of course, you could go the simpler route which is to use the "Use Item: Unique Spell" property and the OnItemUsed module event. That's at least enough to allow you to combine items by allowing one item to be used on another item and then having the on-item-used script figure out what to craft because of that action.
  • Awas73Awas73 Member Posts: 66
    Melkior wrote: »
    The short answer is "yes." The longer answer is that you need to edit the existing conversation file for crafting and add in your own choices and scripts in order to handle the extra crafting. If you need components which aren't on the default list, you just create them as new items (eg. miscellaneous small) with an appropriate appearance and tag.
    How to do all of this is too large for a simple comment. It really needs a whole module-building course, if you're a novice.

    Of course, you could go the simpler route which is to use the "Use Item: Unique Spell" property and the OnItemUsed module event. That's at least enough to allow you to combine items by allowing one item to be used on another item and then having the on-item-used script figure out what to craft because of that action.

    Thanks Melkior. This could take awhile. I might invest some time in making some sort of complete package to add to any module but that will be in the future. Thanks for your feedback.
  • MelkiorMelkior Member Posts: 204
    I should have said the OnItemActivated event, but I hope you got my meaning anyway. I must have been half asleep when I wrote my reply.
Sign In or Register to comment.