|
Thread: ERM question -> remove artifact from backpack | |
|
greatergnoll
Tavern Dweller
|
posted February 10, 2004 10:15 PM |
|
|
ERM question -> remove artifact from backpack
hey I have a question for all you ermers. I am trying to delete an artifact (or as many copies as the player has on him), and I don't want this removal to be limited to equipped artifacts. have been reading the erm help html on the HE receiver and understand that the third parameter of the A3 option controls backpack (0) or equipped (1). unfortunately I'm only able to remove equipped copies. here is the code I'm working with. ideas anyone?
!!HEv600:A2/80/?v607/?v609; [check hero for orb (art#80)]
[...]
!!HEv600&5/v607>0/k<1:A3/80/v607/0; [rem. from backapck]
!!HEv600&5/v609>0/k<1:A3/80/v609/1; [rem. from equip]
thanks!
____________
|
|
sagamosa
Hired Hero
|
posted February 10, 2004 10:33 PM |
|
|
if i remeber correctly i used the following command in my Magic Pouch script to delete all arties,(backpack also):
!!HEx1:A-#;
where x1 is a hero number and # is artefact number. Using the minus sign (-) before the artefact number deequuips it, artefact number only (!!HEx1:A#) equips the artefact to backpack.
|
|
greatergnoll
Tavern Dweller
|
posted February 10, 2004 11:05 PM |
|
|
perfect—I appreciate it!
____________
|
|
fnord
Promising
Famous Hero
|
posted February 11, 2004 01:56 AM |
|
|
Quote: hey I have a question for all you ermers. I am trying to delete an artifact (or as many copies as the player has on him), and I don't want this removal to be limited to equipped artifacts. have been reading the erm help html on the HE receiver and understand that the third parameter of the A3 option controls backpack (0) or equipped (1). unfortunately I'm only able to remove equipped copies. here is the code I'm working with. ideas anyone?
!!HEv600:A2/80/?v607/?v609; [check hero for orb (art#80)]
[...]
!!HEv600&5/v607>0/k<1:A3/80/v607/0; [rem. from backapck]
!!HEv600&5/v609>0/k<1:A3/80/v609/1; [rem. from equip]
thanks!
Based on your code fragment, I'm really not sure why it's not working for, but the A2 command reads in the *total* number of artifacts into v607 (both backpack and equipped) and number of equipped only into v609.
The A3 command actually removes ALL artifacts (or it's supposed to) and the option of 0 for backpack and 1 for equipped only dictates where the artifacts are removed from *first*.
So if you had two magic swords ($) and used !!HE#:A3/$/1/0; it should only remove the one in the backpack, but !!HE#:A3/$/2/0; should remove both of them. And likewise if you used !!HE#:A3/$/1/1; it should remove the equipped sword but !!HE#:A3/$/2/1; should remove both.
If you run some simpler tests and discover it's not working the way I stated above, let me know -- there's always the chance that there's a bug that needs fixing by Slava (but I think it's unlikely since I've used these commands before without any problem).
____________
|
|
|