Jump to content


Photo

Solved!- How to make Party Members go neutral and then green again without creating pulsing triangles?


7 replies to this topic

#1 BCaesar

BCaesar
  • Members
  • 13 posts
  • Gender:Male

Posted 01 May 2017 - 07:12 PM

Hello everyone.

I've got some times when I want to make party members (in this case Cernd) go neutral and then turn green again after the event is over. Here's the code as I have it now (it ends up in cernd.bcs):

IF
    Global("_bMazzyHostile","GLOBAL",4)
    InParty("Cernd")
    !StateCheck("Cernd",CD_STATE_NOTVALID)
THEN
    RESPONSE #100
    ChangeEnemyAlly(Myself,NEUTRAL)
END

IF
    Global("_bMazzyHostile","GLOBAL",5)
    InParty("Cernd")
    !StateCheck("Cernd",CD_STATE_NOTVALID)
    Global("_bmahocerndfight","GLOBAL",0)
THEN
    RESPONSE #100
    ChangeEnemyAlly(Myself,ALLY)
    SetGlobal("_bmahocerndfight","GLOBAL",1)
END

And it works exactly as it should except that when he turns neutral the circle around him turns into four pulsing triangles and stays that way even when he turns green again. Is there a way to make that go away or a better way to code this so that doesn't happen?

 

Thanks

 

I also posted this here: https://forums.beamd...riangles#latest

and here: http://www.shsforums...es/#entry594931

 

This is solved in the Spellhold thread, post #9 here: http://www.shsforums...ou/#entry594945


Edited by BCaesar, 07 May 2017 - 10:17 PM.


#2 Ardanis

Ardanis

    A very GAR character

  • Modders
  • 2507 posts
  • Gender:Male
  • Location:Saint-Petersburg, Russia

Posted 02 May 2017 - 06:57 AM

Likely because it should be PC, not ALLY.


"Uguu~ Boku Ayu."

Before you start breaking wall tiles with your bare fists, ask yourself first - do you truly need it?

#3 jastey

jastey
  • Gibberlings
  • 6624 posts
  • Gender:Female

Posted 02 May 2017 - 09:26 AM

I get the same pulsing green arrow circle if making a familiar neutral with "RemoveFamiliar() ChangeEnemyAlly(Myself,NEUTRAL)" and then taking it into the group as familiar again by "ChangeEnemyAlly(Myself, FAMILIAR) AddFamiliar()".

The foot circle gets normal again for saving and reloading.

I would be interested how to prevent the arrow circle, too, or whether it means I did something wrong / the game expects some action I did not provide.



#4 argent77

argent77
  • Modders
  • 632 posts
  • Gender:Male

Posted 02 May 2017 - 10:57 AM

The issue with pulsating green selection circle exists in both the original games and the Enhanced Editions. It happens regularly with the djinni in my Djinni Companion mod. I don't think if it can be fixed except by a save/reload action.



#5 jastey

jastey
  • Gibberlings
  • 6624 posts
  • Gender:Female

Posted 02 May 2017 - 11:14 AM

Thank you!



#6 BCaesar

BCaesar
  • Members
  • 13 posts
  • Gender:Male

Posted 06 May 2017 - 10:12 PM

Likely because it should be PC, not ALLY.

 

Nope that seems to be exactly the same. Cernd turns blue and the pulsing triangles start. Then he turns green when the battle is over and the triangles stay.

 

But as mentioned they do go away after a load though, so they're not permanent. So I guess I'll just ignore them. I tried making Cernd GOODBUTBLUE or INANIMATE but neither of those made him uncontrollable.



#7 BCaesar

BCaesar
  • Members
  • 13 posts
  • Gender:Male

Posted 07 May 2017 - 10:18 PM

I get the same pulsing green arrow circle if making a familiar neutral with "RemoveFamiliar() ChangeEnemyAlly(Myself,NEUTRAL)" and then taking it into the group as familiar again by "ChangeEnemyAlly(Myself, FAMILIAR) AddFamiliar()".

The foot circle gets normal again for saving and reloading.

I would be interested how to prevent the arrow circle, too, or whether it means I did something wrong / the game expects some action I did not provide.

 

 

The issue with pulsating green selection circle exists in both the original games and the Enhanced Editions. It happens regularly with the djinni in my Djinni Companion mod. I don't think if it can be fixed except by a save/reload action.

 

I don't know if it works for either of your issues, but mine is solved. Post #9 in the Spellhold Thread here: http://www.shsforums...ou/#entry594945



#8 Roxanne

Roxanne
  • Modders
  • 1174 posts
  • Gender:Not Telling

Posted 07 May 2017 - 11:39 PM

Not sure if that helps, but I use similar code for some in-party NPCs and also CONTROLLED companions who went hostile for whatever reason. I go directly to the *target* state of PC or CONTROLLED and not with an intermediate NEUTRAL. I have never encountered those pulsating triangles. (I have not tested it with FAMILIAR.).


Edited by Roxanne, 07 May 2017 - 11:40 PM.

The Sandrah Saga

another piece of *buggy, cheesy, unbalanced junk*




Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users