Jump to content


Photo

PickPocketFailed()


  • Please log in to reply
4 replies to this topic

#1 Salk

Salk
  • Modder
  • 1419 posts

Donator

Posted 05 January 2018 - 03:41 AM

Hello!

I have ToBEX installed with "Enable PickpocketFailed Trigger=1" but I don't seem to make it trigger.

I tested with the following:
 
 
<<<<<<<< stweaks/baf/#gmarek.baf
IF
PickPocketFailed([PC])
THEN
RESPONSE #100
Kill(Myself)
END
>>>>>>>>
EXTEND_TOP ~MAREK.BCS~ ~stweaks/baf/#gmarek.baf~
 

but nothing happens when a party member attempts pickpocketing.

Is there something I am missing?

Thanks!

Edited by Salk, 05 January 2018 - 03:42 AM.


#2 Miloch

Miloch

    Barbarian

  • Modder
  • 6579 posts

Posted 06 January 2018 - 06:41 PM

Heya Salk!

 

While I'm not the expert on newfangled tech these days (ToBEx being newfangled, lol, as if), I guess I can only ask some obvious questions:

 

1) You're trying to pickpocket Marek obviously, after extending his script, right?

2) You're trying it with a character who's likely to fail and does so, preferably the actual PC?

 

Only other recommendation is to try DisplayStringHead() instead of Kill(), since you can try to trigger that multiple times and it might thus be more replicable (for testing).

 

[Edit: I see now on G3 that CamDawg had a remotely related comment about instant triggers, but to be honest, I'm not so sure that's the case here, unless there's more to that script.]


Edited by Miloch, 06 January 2018 - 06:43 PM.

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#3 CamDawg

CamDawg

    ALL GLORY TO THE HYPNOTOAD

  • Modder
  • 1505 posts

Posted 06 January 2018 - 07:26 PM

 
[Edit: I see now on G3 that CamDawg had a remotely related comment about instant triggers, but to be honest, I'm not so sure that's the case here, unless there's more to that script.]

Yeah, the script snippet wasn't posted at G3--this definitely has nothing to do with PPF being an instant trigger and, AFAICT, should work as is.

Is marek.bcs actually assigned to Marek? My BGT install doesn't even have a marek.bcs.

Why is this Hypnotoad video so popu... ALL GLORY TO THE HYPNOTOAD.
____
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.


#4 Salk

Salk
  • Modder
  • 1419 posts

Donator

Posted 07 January 2018 - 10:25 PM

Hello again!

As I said at G3, everything was solved. I was using a somehow screwed up saved game for my testing because this morning everything was working fine.

Indeed marek does not have a marek.bcs but I did create one:
 

 

IF
Global("PartyCured","GLOBAL",0)
PickPocketFailed([PC])
THEN
RESPONSE #100
SetGlobal("PartyCured","GLOBAL",6)
StartDialogNoSet(LastTrigger)
END

 

Thanks for the assist both here and at G3!


Edited by Salk, 07 January 2018 - 10:37 PM.


#5 Salk

Salk
  • Modder
  • 1419 posts

Donator

Posted 12 January 2018 - 09:21 PM

-DELETE-


Edited by Salk, 12 January 2018 - 09:22 PM.