Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 3.5 - WoG and Beyond > Thread: ERM question -> remove artifact from backpack
Thread: ERM question -> remove artifact from backpack
greatergnoll
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!
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
sagamosa
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.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
greatergnoll
greatergnoll

Tavern Dweller
posted February 10, 2004 11:05 PM

perfect—I appreciate it!
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
fnord
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).


____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0319 seconds