Yeah, well you also should mark the character at that stage for you to use it then in a different actions... aka instead of one global you would use two...
IF Kit(Player1,GELKITSL) Global("Sunshineeffect1","GLOBAL",0) ActionListEmpty() THEN RESPONSE #100 SetGlobal("Sunshineeffect1","GLOBAL",1) SetGlobal("Gelplayer","GLOBAL",1) Continue() IF Kit(Player2,GELKITSL) Global("Sunshineeffect1","GLOBAL",0) ActionListEmpty() THEN RESPONSE #100 SetGlobal("Sunshineeffect1","GLOBAL",1) SetGlobal("Gelplayer","GLOBAL",2) Continue() END etc.
And then you just find which of them is true each time and do the next action only to them according to what the second global is set as.
So:
IF Global("Sunshineeffect1","GLOBAL",1) Global("Gelplayer","GLOBAL",1) THEN RESPONSE #100 ApplySpellRES(,Player1) Global("Sunshineeffect1","GLOBAL",2) END IF Global("Sunshineeffect1","GLOBAL",1) Global("Gelplayer","GLOBAL",2) THEN RESPONSE #100 ApplySpellRES(,Player2) Global("Sunshineeffect1","GLOBAL",2) END Etc.
This is a good reason to use a summoned creature and not utilize the FREAKING baldur.bcs... well to a *certain extend... because there will be so long scrips and it's just easier to utilize the SummonerOfMyself() ... instead of the file the game will always be running ... especially when no one has the kit active.
The script look like this now:
Those usually need to be in a different scripts, as the Myself -will not work in the same script as the Player1, Player2 ... etc.
The certain extend is, if it needs to be applied anywhere for example the kill routine can happen any where, then you set that portion into the baldur.bcs, and the rest the creature that applies the kit up on to the player will do. Aka thge creature sets the conditions and the baldur.bcs checks them and if the item is lost from the specific character, the baldur.bcs will kill the set one if it doesn't meat the 3-4 conditions: it has the kit, the Gelplayer global indicates it as this character by setting the global to the player number, and that player number's character doesn't have the item equipped. -> death.
Edited by The Imp, 01 March 2017 - 07:14 AM.