Skip to content

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

DremorDremor Member Posts: 40
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

Comments

  • TressetTresset Member, Moderator Posts: 8,268
    edited March 2015
    What is the name of that one thief that Aran sends with you to Bodhi's lair in chapter 6? I know he finds and disarms traps on his own. Maybe you could check his .bcs and see how they did it...

    Ah. It is specific to the traps in that area...
  • DremorDremor Member Posts: 40
    np :P i think i wont get a carpal tunnel for manually clicking the thief button for each trap ^^
    i remember someone made an ai for nwn 2 very good called tony, not sure if nwn1 has such ai... the npc disable traps, recover them and open any closed locks they find, they also loot objects :pensive:
    kinda nice that way you can focus on 1 toon only most of the time...
Sign In or Register to comment.