• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Container Target Reference - Delete?

ShadowChemosh

Well-known member
I have to say I am a little confused. I am trying to delete a single tag off the Hero but instead perform delete removed them all.

From the Wiki: "Deletes all tags from the container that match the tag template tmpl. The template must use the standard "group.id" syntax and may contain a wildcard. If the template employs a wildcard, all tags matching the template are deleted. If the template specifies an explicit tag, and the tag has been assigned to the container multiple times, the tag is deleted only once, thereby providing detailed control to authors when needed. Always returns a value of zero."

I am doing:
Code:
perform hero.childfound[cEidolon].minion.delete[Hero.EqpWaist]
But both Hero.EqpWaist tags get deleted instead of just one. How do I delete just one tag?

Do I have to count the number of tags, delete them all, and then add back one less tag then I counted. It seems like it should not be that complicated.
 
I've never heard anything about delete not deleting all of them (or seen any evidence of it deleting less than all).

I guess it'll take a for loop in order to subtract just one (count all, delete all, re-add count- 1)

What is this trying to accomplish? Maybe there's a better way to handle it.
 
I've never heard anything about delete not deleting all of them (or seen any evidence of it deleting less than all).
Yea I found your posts saying it deletes all but then read the wiki. So I followed that if I used the exact tag it would delete one. But I am seeing that it does delete all. I just wanted to make sure their was not someway to actually delete just one.

I guess it'll take a for loop in order to subtract just one (count all, delete all, re-add count- 1)
Yep my current plan as I don't see any other way currently.

What is this trying to accomplish? Maybe there's a better way to handle it.
Their is a feat that allows a Summoner and his "Pet" to wear a magic item in the same slot. Each time you take the feat you can pick a different slot that prevents the Summoner/Pet from sharing that single slot. So I found the code that puts the Equip tag to the minion and I figured well I will just delete that one extra tag instead. That is when I found it deletes all the tags so now the Pet can wear an unlimited number of belts. :)

I was also trying to NOT change the class ability and instead just mess with the tags. Its cleaner and then doing a "Replace Thing ID" which can cause issues when released to lots of different gamers with different HL setups.
 
Last edited:
Would this work:

Code:
if the minion is wearing 1 belt
  if the hero is wearing 1 belt
    add +1 belts allowed to the hero
    endif
  endif

If I remember correctly, the number of items you can take in each slot is controlled by tags, and the number you have taken is also stored as tags. The summoner's ability copies all the "we're wearing this slot" tags from the eidolon to the hero, which is how it keeps you from doubling up on both characters.
 
Last edited:
Back
Top