Jump to content


Photo

Allies, scriptwise


  • Please log in to reply
No replies to this topic

#1 Echon

Echon

    Planewanker

  • Member
  • 284 posts

Posted 08 September 2015 - 04:57 AM

SOLVED. Feel free to remove.

 

What is the 'friendly' equivalent of NearestEnemyOf()? Nearest([ALLY])? Nearest([GOODCUTOFF])? I thought I had used these previously without problems but I am getting some unreliable results. I summon a CRE with a SPL via an EFF (allegiance = the caster) and it runs a script with this bit at the end.

 

 

IF
    stuff
THEN
    RESPONSE #100
        ReallyForceSpell(Nearest([GOODCUTOFF]),CLERIC_CURE_LIGHT_WOUNDS) // SPPR103.SPL (Cure Light Wounds)
        ReallyForceSpell(SecondNearest([GOODCUTOFF]),CLERIC_CURE_LIGHT_WOUNDS) // SPPR103.SPL (Cure Light Wounds)
        ReallyForceSpell(ThirdNearest([GOODCUTOFF]),CLERIC_CURE_LIGHT_WOUNDS) // SPPR103.SPL (Cure Light Wounds)
        DestroySelf()
END

 

 

With two members in the party, player1 receives a CLW and the two others are cast untargeted. With four members, player1 and player2 receive the spell, with the last being untargeted.

 

Using ALLY instead of GOODCUTOFF, all three are untargeted.

 

What is the issue here?


Edited by Echon, 10 September 2015 - 12:50 AM.