Hey, that's a swell idea about getting rid of Nearest! I hate those long scripts. I'll give it a try. There is another problem that comes up - Near Infinity takes the NONE alignment value to mean 0, so it's going to turn ANYONE.0.0.0.0.0.NONE into ANYONE.0.0.0.0.0.0, which is the same as any alignment. Just a quirk of the program. I'm going to have to write the script somewhere else... In DLTCEP?
This is the situation as I described it to someone:
What I can tell is that ANYONE (what you get after NI's auto-abbreviation of ANYONE.0.0.0.0.0.NONE)) - any alignment - is treated separately by the engine from a specific alignment. If you put in a trigger for, e.g., LAWFUL_EVIL higher up in the script and a trigger for ANYONE below, the first action gets repeated again and again. The script never gets to the second action so long as there is someone Lawful Evil nearby, and that Lawful Evil doesn't get treated like "anyone", i.e. the action for Anyone is skipped.
Here is the script I currently have:
IF
See([0.0.0.0.0.0.LAWFUL_EVIL])
THEN
RESPONSE #100
ReallyForceSpellRES("SPWI003",LastSeenBy(Myself)) // Magic Missile - Edwin gets this again and again, but strangely enough not Kagain; Ulb - I can't use a non-RES version because I'm not touching IDS files for my spells, they are all cast through RES. I've never had a problem with it.
END
IF
See([ANYONE])
THEN
RESPONSE #100
ReallyForceSpellRES("SPWI108",LastSeenBy(Myself)) // Protection From Petrification - After Edwin went down, the creature put the Protection on Kagain
END
I'd really like to know if I truly can't use zeroes. I mean, there are probably many values in IDS files that equal 0 - maybe races, classes... And what about the NONE alignment itself? Surely it's used for something! Possibly for summoned things like a Bigby's Fist. If it's used, it can be used by me, and I need it as a perfect creature marker. I mean, it does work if you switch a creature to NONE through an effect. The alignment disappears from the character sheet.
Edited by temnix, 25 September 2016 - 07:35 PM.