Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple things.
#13
I was thinkin in other way.

target.state !=( 12 || 18)

Is target other than (12 or 18)?

9001
if target state!=(12x or 18x )
alternative(12x or 18x )= 0
!0 = 1
ANSWER: YES!

18
if target state!=(12x or 18v )
alternative(12x or 18v ) = 1
!1 = 0
ANSWER: NO

12
if target state!=(12v or 18x )
alternative(12v or 18x ) = 1
!1 = 0
ANSWER: NO

I'm really confused now, if this should work.
xDD I'm probably wrong, but this seems reasonable for me.

Let's stick with:
target.state !=12 && target.state != 18
I thought I can write it shorter.


You will probably come in with a solution to my problem anyway, to show me how wrong I am.
(08-16-2013, 01:11 PM)Azriel Wrote:  (target.state != 12 || target.state != 18)
what it checks: my target's state is not 12, OR, my target's state is not 18.
But is (target.state != 12 || target.state != 18) equavilent to (target.state != (12 || 18))?


EDIT:
ANOTHER QUESTION
Just theoretical, cause I'm not willing to test it right now.
Can I ask the AI to ignore weapons in that way:
- Check target, if target is a weapon, then select other target
Won't it be buggy?
Reply
Thanks given by:


Messages In This Thread
Simple things. - by Gad - 08-13-2013, 11:17 PM
RE: Simple things. - by YinYin - 08-14-2013, 06:36 AM
RE: Simple things. - by Gad - 08-14-2013, 08:02 PM
RE: Simple things. - by YinYin - 08-14-2013, 08:19 PM
RE: Simple things. - by Gad - 08-14-2013, 08:37 PM
RE: Simple things. - by YinYin - 08-15-2013, 04:38 AM
RE: Simple things. - by Gad - 08-15-2013, 09:49 AM
RE: Simple things. - by YinYin - 08-15-2013, 04:10 PM
RE: Simple things. - by Silverthorn - 08-15-2013, 01:31 PM
RE: Simple things. - by Gad - 08-16-2013, 12:58 PM
RE: Simple things. - by Azriel - 08-16-2013, 01:11 PM
RE: Simple things. - by Silverthorn - 08-16-2013, 01:22 PM
RE: Simple things. - by Gad - 08-16-2013, 02:37 PM



Users browsing this thread: 1 Guest(s)