Again I'm stuck with some kit I'm trying to make. I tried searching for this specific issue in both the forum and the tutorials, but so far I haven't found anything about it. So I apologize if this has been asked before.
So I'm making a kit, and in order for it to function properly, I will need to attach a small script to BALDUR.BCS and BALDUR25.BCS.
This is roughly what the script is structured like:
IF //Player1 is of SOMEKIT kit //some other triggers THEN RESPONSE #100 //some actions Continue() END IF //Player2 is of SOMEKIT kit //some other triggers THEN RESPONSE #100 //some actions Continue() END // ... and so forth for all 6 playersSo the idea is basically to detect if ANY of the players have the new kit on them, and if so, then execute some kit-specific scripting goodness on them.
The problem is that I'm not sure which trigger to use to reliably detect whether the specified player has the SOMEKIT kit. I've read that the Kit() trigger is not very reliable as it does not check the whole dword the kit is stored in. (Also, I have no idea how to replace the kit parameter with the actual integer that my kit would be assigned to in the IDS file.)
Another possible solution was to check if the specified player had a spell memorized that was to be added to the kit as a special ability, using the HaveSpellRES() trigger. However, HaveSpellRES() can only check memorized spells on the active object, and that seems to be a problem (for me anyway), because the script needs to check the condition for all 6 players.
Could you guys please help me out with this? I'm not quite sure how to proceed from here.
Thanks for any help in advance.