Possible to make things like detecting traps and true seeing always active?
Jidokwon
Member Posts: 397
These might be hard coded, but I'm wondering if it'd be possible to make spells and abilities like detecting traps and true seeing always on. Currently, they only do thier searching once every six(?) seconds. I'd like to fix this by having them always search, without the delay, whenever they're activated. Is this something I can do?
0
Comments
I know that spells like true sight detect invisibility the instant they are casted, as well as every round (six seconds). This being said, you could probably create a spell that casts a "durationless" version of true sight every second, using opcode 272 with condition zero (once per second).
If the detect traps spell also detects traps instantly as it is cast, then you could apply the same method here.
One .spl file for the actual castable spell, this will use opcode 272 (not sure why this isn't showing for you)
One .eff file that the first spell will reference, this will use opcode 146 to cast a spell.
One .spl file that is referenced by the .eff file, which will do what true sight does, but instant/limited with duration of 1 or 0 (not sure on this yet).
Unfortunately I don't have the time to explain more in-depth on how to do it until later tonight, though. I can try to build it and attach it up on this thread a bit later
IF
ActionListEmpty()
CombatCounter(0)
OR(2)
Class(Myself,THIEF_ALL)
Class(Myself,MONK)
!ModalState(DETECTTRAPS)
THEN
RESPONSE #100
FindTraps()
END