Author Topic: notin #property issue  (Read 5872 times)

0 Members and 1 Guest are viewing this topic.

Offline Crome969

  • Elite
  • *
  • *
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: notin #property issue
« Reply #15 on: August 14, 2011, 12:28:07 PM »
0
You could use
Code: [Select]
if earth , #spc , elemental in #property|| fire , #spc , elemental in #property
{
}
else
{
if elemental in #property  
{
}
}
or
Code: [Select]
if earth notin #property && fire notin #property && elemental in #property
{}

should work!

Crome

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
Re: notin #property issue
« Reply #16 on: August 14, 2011, 12:36:53 PM »
0
You could use
Code: [Select]
if earth , #spc , elemental in #property|| fire , #spc , elemental in #property
{
}
else
{
if elemental in #property  
{
}
}
or
Code: [Select]
if earth notin #property && fire notin #property && elemental in #property
{}

should work!

Crome
Thanks for posting crome... I tried the second way you posted, and it didn't work... The first way is similar to the workaround I used, and it doesn't use notin #property...

So, we can use workarounds apparentely, but I've found no working way using the notin #property thing...

Thanks for taking the time to help me...

neo
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline UOMaddog

  • Maddog
  • Elite
  • *
  • *
  • Posts: 1625
  • Activity:
    0%
  • Reputation Power: 22
  • UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...
  • Gender: Male
  • Biggest B@D@$$ of the Universe
  • Respect: +165
  • Referrals: 8
    • View Profile
    • Insane UO
Re: notin #property issue
« Reply #17 on: August 14, 2011, 07:07:01 PM »
0
I find that sometimes its better to do:

Code: [Select]
if ( air notin #property) && ( blood notin #property ) && etc.....
That way, if one of them is screwed up, it will likely evaluate to false and then the whole if will evaluate to false...just a thought!
There are 10 kinds of people in this world: those that understand binary and those that don't!

Windows:  A 64-bit tweak of a 32-bit extension to a 16-bit user interface for an 8-bit operating system based on a 4-bit architecture from a 2-bit company that can't stand 1 bit of competition!

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
Re: notin #property issue
« Reply #18 on: August 15, 2011, 04:16:59 AM »
0
I find that sometimes its better to do:

Code: [Select]
if ( air notin #property) && ( blood notin #property ) && etc.....
That way, if one of them is screwed up, it will likely evaluate to false and then the whole if will evaluate to false...just a thought!
Nice, never tried it like this... Will give this a go later!

Thank you maddog!

neo
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Tags: