Galactygon Posted February 14, 2017 Share Posted February 14, 2017 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
Galactygon Posted February 14, 2017 Author Share Posted February 14, 2017 Indeed it is, can't believe I forgot about that! Thanks Ardanis! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.