Each monster has attributes (e.g. fire) and not working

Hi...

I am sure this should work.

So I set one of 5 characters are chosen with different attributes, also same with the enemies.

So let's say attributes are each a, b, c, d, e.

I set if i am a and enemy is b, our attack 2x.

if i am b and enemy is c, our attack 2x.

if i am c and enemy is a, our attack 2x.

but

if i am a and enemy is c, our attack 0.5x.

if i am b and enemy is a, our attack 0.5x.

if i am c and enemy is b, our attack 0.5x.

also

if i am d and enemy is e, our attack 1.5x.

if i am e and enemy is d, our attack 1.5x.

So all these are set up.

However, it seems like only the first one (i am a, enemy b, attack 2x) is working,
and other 7 rules are not working at all.

What should i do?

(I did set that when i choose character, change attribute, and when i choose enemy, change enemy attribute.)

The real annoying thing is that 1 is actually working, while others don't.

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited December 2014

    @onsentamago11 said:
    . . . only the first one (i am a, enemy b, attack 2x) is working,
    and other 7 rules are not working at all.

    What should i do?

    I'm going to guess that your rules are set up incorrectly, you need to check them to make sure you have made no mistakes.

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    Hi @onsentamago11 Try something like this:

    if i am a and enemy is c, our attack 0.5x.
    
    
    if i am b 
    Rule nested -- if enemy is c, our attack 2x.
    otherwise (but)
    if enemy is a, our attack 0.5x.
    
    
    if i am c 
    Rule nested --  if enemy is a, our attack 2x.
    otherwise
    if enemy is b, our attack 0.5x.
    
    
    if i am d and enemy is e, our attack 1.5x.
    
    
    if i am e and enemy is d, our attack 1.5x.
    

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • onsentamago11onsentamago11 Member Posts: 5
    edited December 2014

    @gyroscope said:
    Hi onsentamago11 Try something like this:

    if i am a and enemy is c, our attack 0.5x.
    
    
    if i am b 
    Rule nested -- if enemy is c, our attack 2x.
    otherwise (but)
    if enemy is a, our attack 0.5x.
    
    
    if i am c 
    Rule nested --  if enemy is a, our attack 2x.
    otherwise
    if enemy is b, our attack 0.5x.
    
    
    if i am d and enemy is e, our attack 1.5x.
    
    
    if i am e and enemy is d, our attack 1.5x.
    

    Well... nothing changed.
    But thanks.

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited December 2014

    What are the names of your actual attributes? Perhaps it'll work when it's laid out properly, rather than pseudocode.

    Also, what is our attack? A speed? I see the attribute "fire" mentioned in your title, so at a guess, the 1.5x and 2x is speed of a projectile? How is your rules set out in the projectile actor if this is the case?

    Another possibility: you've not nested the rule in the top rule as indicated, and/or you've put the otherwise behaviour in the wrong "Otherwise".

    But really need more info if you require further help.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.