Author Topic: finditem * G - just curious  (Read 2945 times)

0 Members and 1 Guest are viewing this topic.

Offline GemviperTopic starter

  • Sr. Member
  • *
  • Posts: 481
  • Activity:
    0%
  • Reputation Power: 0
  • Gemviper hides in shadows.
  • Respect: +57
  • Referrals: 2
    • View Profile
finditem * G - just curious
« on: February 11, 2017, 12:26:16 PM »
0
Just a curiosity, when I'm testing things I often just specify G_2 to keep things simple. The documentation suggests this is supposed to limit a scan to the ground around me, up to two tiles away. In practice, however, I notice that it occasionally picks up things like ZJF(my character's backpack), YC(my right or left hand even if empty) and even IS(my character itself). For testing purposes this is a bit of a pain, though not more than a minor nuisance really.

My question: why is it happening and is there a simple universal way to keep searches on the G and away from players and their gear? Unfortunately this does not happen all the time, or even half the time, but when it does it's usually on the very first item found.

note: I am usually testing within a #findindex, if that matters.

« Last Edit: February 11, 2017, 12:37:47 PM by Gemviper »

Offline superduke

  • Newbie
  • *
  • Posts: 6
  • Activity:
    0%
  • Reputation Power: 1
  • superduke has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: finditem * G - just curious
« Reply #1 on: February 13, 2017, 04:56:34 AM »
0
Hi, can't tell as i never use that. I just use #finditem and #findkind when looking for items around me.

Offline Tidus

  • Lazy
  • Administrator
  • *
  • *
  • Posts: 1291
  • Activity:
    0%
  • Reputation Power: 15
  • Tidus is working their way up.Tidus is working their way up.Tidus is working their way up.
  • Gender: Male
  • Mind Blown
  • Respect: +151
  • Referrals: 2
    • View Profile
    • Ultimate Apparel
Re: finditem * G - just curious
« Reply #2 on: February 14, 2017, 12:15:37 PM »
0
Well it is because you are searching for anything and everything when you use the *.  Your character is on the ground and so it does search yourself, which you always have a backpack on you, I think it even searches your paperdoll.  The best way is to know these items and just use if statements to ignore them as you go through your index.
For those who have fought for it, freedom has a taste the protected will never know ~ Anonymous, Vietnam, 1968

Tags: