Difference between revisions of "User talk:Dran"
Jump to navigation
Jump to search
imported>Dran (How do I recharge a magic item) |
imported>DragoonWraith (some answers) |
||
Line 1: | Line 1: | ||
I'm working on a Recharge Box. Is there a way to get a container to activate a Varla Stone? | I'm working on a Recharge Box. Is there a way to get a container to activate a Varla Stone? | ||
aaRechargeBox.additem 194 1 | aaRechargeBox.additem 194 1 | ||
aaRechargeBox.equipitem 194 | aaRechargeBox.equipitem 194 | ||
aaRechargeBox.Removeitem 194 1 | aaRechargeBox.Removeitem 194 1 | ||
Doesn't seem to work - Any ideas? | Doesn't seem to work - Any ideas? | ||
Line 12: | Line 12: | ||
Dran | Dran | ||
:First, some points on Wiki markup. You should put code in the little code boxes - to do this, either start each line with a space (even the blank lines), or else put <nowiki><pre></pre></nowiki> tags around the code. Note that you cannot use other types of markup within pre tags, but you can if you use the space method. Also, sign your name with <nowiki>~~~~</nowiki>. | |||
:Secondly, never use FormIDs in scripts. You only use those in the Console. In the script editor, use the EditorIDs. In this case, "VarlaStone". | |||
:Anyway, hmm... that's an interesting question. Perhaps you should try to switch the container for an NPC? You'll have to [[Kill]] the NPC for the player to have access to his inventory, and then [[Resurrect]] him to use the Varla Stone. You should be able to do this all while he is [[Disable|Disabled]]. I haven't tried this, but it seems like it ought to work. | |||
:Varla Stones may be hardcoded to work only with the player however, which would make this much more complicated. In that case, you would need to use [[RemoveAllItems]] to move the player's items to a temporary container, then use it on your container to move those items back to the player, have the player equip the Varla Stone, and then use RemoveAllItems again to move everything back where they started (in aaRechargeBox and on the player). | |||
:Also, aren't Varla Stones removed when you use them? I think you shouldn't need that RemoveItem line. | |||
Anyway, let us know how that works out, and if you have any more questions, feel free. | |||
:[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 12:24, 5 September 2007 (EDT) |
Revision as of 11:24, 5 September 2007
I'm working on a Recharge Box. Is there a way to get a container to activate a Varla Stone?
aaRechargeBox.additem 194 1 aaRechargeBox.equipitem 194 aaRechargeBox.Removeitem 194 1
Doesn't seem to work - Any ideas?
Second approach was to delete the item and add a replacement. To do that I need to know what the item is and I don't know how to do that.
If you have any advice for me...
Dran
- First, some points on Wiki markup. You should put code in the little code boxes - to do this, either start each line with a space (even the blank lines), or else put <pre></pre> tags around the code. Note that you cannot use other types of markup within pre tags, but you can if you use the space method. Also, sign your name with ~~~~.
- Secondly, never use FormIDs in scripts. You only use those in the Console. In the script editor, use the EditorIDs. In this case, "VarlaStone".
- Anyway, hmm... that's an interesting question. Perhaps you should try to switch the container for an NPC? You'll have to Kill the NPC for the player to have access to his inventory, and then Resurrect him to use the Varla Stone. You should be able to do this all while he is Disabled. I haven't tried this, but it seems like it ought to work.
- Varla Stones may be hardcoded to work only with the player however, which would make this much more complicated. In that case, you would need to use RemoveAllItems to move the player's items to a temporary container, then use it on your container to move those items back to the player, have the player equip the Varla Stone, and then use RemoveAllItems again to move everything back where they started (in aaRechargeBox and on the player).
- Also, aren't Varla Stones removed when you use them? I think you shouldn't need that RemoveItem line.
Anyway, let us know how that works out, and if you have any more questions, feel free.
- Dragoon Wraith TALK 12:24, 5 September 2007 (EDT)