Quantcast
Channel: Modding — Beamdog Forums
Viewing all articles
Browse latest Browse all 11774

is there any way to check the state, or something of a trap object to know if it is trapped ?

$
0
0
so far i was able to make my rogue npc to automatically move to a trap and disable it...
the problem is... npc likes the trap so much, even when is disabled... it keeps trying to disable it again...

the trap was found with:


// *Thief - Disable Traps*
IF
See([126.0.255.0.0.0.0])

THEN
RESPONSE #100
//DisplayStringHead(Myself,519) //"Help me! If you don't help me, they'll kill me."
RemoveTraps([126.0.255.0.0.0.0])
END

// *Scout - Detect Traps*
IF
ActionListEmpty()
OR(2)
Class(Myself,THIEF_ALL)
Class(Myself,MONK)
!ModalState(DETECTTRAPS)
!ModalState(STEALTH)
Global("u_AnyoneDetectEnemy","GLOBAL",0)
THEN
RESPONSE #100
FindTraps()
END

Viewing all articles
Browse latest Browse all 11774

Latest Images

Trending Articles



Latest Images