Jump to content

ChangeEnemyAlly(Myself,ALLY/CONTROLLED etc)


Galactygon

Recommended Posts

I've been trying to wrap my head around this. I am writing a tweak which changes the allegiance of summoned creatures to LastSummonerOf(Myself) if the LastSummonerOf(Myself) has been charmed/uncharmed. Everything works fine except where I have the critters change back to controllable ALLY. What happens is that the critters become green circled but not controllable.

 

Is there any way to make the critters become controllable without applying a hidden charm spell (like KORAX.cre)? The reason is to handle cases where only the critter has been charmed but not the LastSummonerOf(Myself). So I simply want to avoid using the charm opcode.

 

Here is the bit of INLINEd script block I have. Ignore the %object_id%s, I have the script loop for Player1-Player6. What happens in this case is string 6666 gets displayed ("Studded Leather Armor" in SoD) and the creature switches to green circled but not crontrollable. I want the switch to allow full control again.

 

 

IF
 Exists(%object_id%)
 Global("LastSummoner","LOCALS",%player_id%)
 !StateCheck(Myself,STATE_CHARMED)
 !Global("Elementalcontrol","LOCALS",2)
 Allegiance(%object_id%,GOODCUTOFF)
 OR(7)
   InPartySlot(%object_id%,0)
   InPartySlot(%object_id%,1)
   InPartySlot(%object_id%,2)
   InPartySlot(%object_id%,3)
   InPartySlot(%object_id%,4)
   InPartySlot(%object_id%,5)
   Allegiance(%object_id%,CONTROLLED)
 !Allegiance(Myself,CHARMED)
 !Allegiance(Myself,GOODCUTOFF)
THEN
 RESPONSE #100
   DisplayString(Myself,6666)
   ChangeEnemyAlly(Myself,REALLYCHARMED)
END
Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...