If you already looked at summon script core, you will probably understand what I will say.
I found that when the player summon a creature, the summon effect is applied to both ranger and summoned creature. I made many test by changing which effect is applied.
What is done by engine when you apply this effect to a player is :
- create the creature portrait
- broke the link between the party and the creature : that is removing the summoned creature from all party interface list such as tactics, talents, stats, inventory etc...
What is done by engine when you apply the effect to a creature is :
- link all creature interface to the ranger interface (tactics, talents, stats ...)
I have deleted the effect on the creature, and it works like a charm because I now have access to various screen concerning the creature (tactics, talents, stats...) when I select the summoned creature. That let me think of hundred of possible mods...
But, like I said, I have got a problem when the creature dies because the call of RemoveAllEffect on death doesn't run the handlers for summon effects (Alright, she don't have the effect).
Writing this makes me think that I could create a new effect, a fake effect, and apply it on the creature when summoned (so it will replace the standard summon effect). Then do what I want when this particular effect is removed (like doing the exact same thing that when the summon effect is removed). Just thinking alone
Modifié par anakin5, 31 décembre 2009 - 03:05 .