SphereCommunity
3 flags question - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: 3 flags question (/Thread-3-flags-question)

Pages: 1 2


RE: 3 flags question - Mordaunt - 09-06-2012 07:31 AM

As I said instead of:

Code:
IF ((<UID.<SRC.GUILD>.ALIGN> == 1) && (<UID.<SRC.TARG.GUILD>.ALIGN> == 2)) || ((<UID.<SRC.GUILD>.ALIGN> == 2) && (<UID.<SRC.TARG.GUILD>.ALIGN> == 1))

why not:
Code:
IF (<UID.<SRC.GUILD>.ALIGN> != <UID.<SRC.TARG.GUILD>.ALIGN>)



RE: 3 flags question - RanXerox - 09-06-2012 09:45 AM

There are three states: chaos neutral, and order. If the test is for "not equal" then a neutral player cannot heal a chaos or an order person without being made a criminal. Similarly, a order person healing a neutral person would be penalized...


RE: 3 flags question - Mordaunt - 09-08-2012 01:32 AM

But... if you're being healed by a chaos player or an order player... are your really that neutral? Tongue

Besides that still only requires:

Code:
IF (<UID.<SRC.GUILD>.ALIGN> != <UID.<SRC.TARG.GUILD>.ALIGN>) && (<UID.<SRC.TARG.GUILD>.ALIGN>!=0)

Still more efficient. I'm assuming 0 is neutral


RE: 3 flags question - daedelus - 09-13-2012 06:02 AM

(09-06-2012 07:31 AM)Mordaunt Wrote:  As I said instead of:

why not:
Code:
IF (<UID.<SRC.GUILD>.ALIGN> != <UID.<SRC.TARG.GUILD>.ALIGN>)

If you're neutral, do not you have to make criminal. If i neutral and i heal to a chaos i become criminal. Does not my idea.

Thanks

(09-08-2012 01:32 AM)Mordaunt Wrote:  But... if you're being healed by a chaos player or an order player... are your really that neutral? Tongue

Besides that still only requires:

Code:
IF (<UID.<SRC.GUILD>.ALIGN> != <UID.<SRC.TARG.GUILD>.ALIGN>) && (<UID.<SRC.TARG.GUILD>.ALIGN>!=0)

Still more efficient. I'm assuming 0 is neutral

I try with this.

thanks


RE: 3 flags question - Mordaunt - 09-13-2012 08:48 AM

Ahh... yes a neutral player would become criminal healing an order player in that instance