Jump to content

Home

Recharging items?


Guest waterhammer

Recommended Posts

Guest waterhammer

Is there any way to recharge an item?

 

Or know the charges left on an item?

 

Or use multiple charges?

 

I do not see script functions to do this.

Link to comment
Share on other sites

Well because the charges are defined by the item itself within the items GFF file which is where the number of charges is defined. If your wanting to recharge the item then you would want to write a script that takes away the item and then gives you the item again. The drawback to this is that there is no assurance that it will remove the one you want unless you are very specific. such as in the script telling the script to remove the armband located on your right forearm delete this item and then return to your forearm the exact same item. Also if you want to do this I would have it setup as 2 seperate scripts one to take and one to give back. After you have your 2 scripts then setup a npc with a dialogue who is there to recharge the item. Your npc would ask, "Which armband do you wish to recharge?" your answer choices would be right or left. Then have the NPC ask, "What type of armband it is that you want to recharge?" your answer would be for the proper type of armband. It then double checks if your sure. if yes then the first script fires on your "yes" selection. On the next branch in the dialogue the NPC asks if there will be anything else. On your answer your second script fires which places the new armband on your arm. truth be told it will be alot of repetitive scripts or if your good it will have one script for each option that checks what item you have and replaces accordingly. I would recommend the multiple script variant first to make sure it works properly and then attempt a smart script variant that does the checking for you.

Link to comment
Share on other sites

Guest waterhammer

Thank you for your reply Darkkender. This is what I feared would be required. My hope was to have option of using multiple charges for increased damage effect. Also, if there is no enemy in sight, then the armband should not use any charge but it does and I want the script to put the charge back. What makes all of this impossible is that the charges cannot be determined by script. Only thing is like you say that armband must be replaced completely with full armband. Thank you again.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...