Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Page 2 of 2 1 2
Joined: Nov 2016
A
stranger
OP Offline
stranger
A
Joined: Nov 2016
There's one other thing. I can't seem to pickpocket any of them, the option is inactive. I do have Pickpocket at 5 on this character. Could it have something to do with my imp not being a proper player class (like a rogue or something)?

Last edited by AbsoluteVirtue; 22/11/16 11:10 PM.
Joined: Jun 2013
old hand
Offline
old hand
Joined: Jun 2013
That's partially why I was asking about the root template, because most of the non player ones don't have appropriate animations for those functions.

Try changing it to ImpPlayer (I think there's one?) and see if it works.

Joined: Nov 2016
A
stranger
OP Offline
stranger
A
Joined: Nov 2016
Changed it to MalePlayer, and still can't. At this point I don't see any reason to waste more time on trying to crack this smile

Joined: Nov 2016
A
stranger
OP Offline
stranger
A
Joined: Nov 2016
heya, it's me again laugh

so I have a problem, I was wondering if I could get help with it.

this code returns true always:
Code
IF
CharacterEnteredTrigger(CHARACTER_char, TRIGGER_trig)
AND
CharacterIsDead(CHARACTER_char2, _isDead)
AND
_isDead == 1
AND
ItemIsInTrigger(ITEM_item, TRIGGER_trig, _isInTrigger)
AND
_isInTrigger == 1
THEN


even if the ITEM_item is not anywhere near that trigger. what am I doing wrong?

Last edited by AbsoluteVirtue; 25/11/16 10:26 PM.
Joined: Jun 2013
old hand
Offline
old hand
Joined: Jun 2013
Is the trigger registered for the item and character/players?


I don't think you need to do the extra step of adding the variable _isDead == or _isinTrigger ==. Just put the 1 in the initial query.


I'll try it myself in a little while.

Joined: Jun 2013
old hand
Offline
old hand
Joined: Jun 2013
Yep, when I did it without those two it worked fine for me:


IF
CharacterEnteredTrigger(CHARACTER_Player1, TRIGGER_ScriptTestBox)
AND
CharacterIsDead(CHARACTER_Player2,1)
AND
ItemIsInTrigger(ITEM_ScriptTestPotion, TRIGGER_ScriptTestBox,1)
THEN
DebugBreak("true");

Last edited by SniperHF; 26/11/16 02:59 AM.
Joined: Nov 2016
A
stranger
OP Offline
stranger
A
Joined: Nov 2016
that's odd. I did it without the extra comparison and it still doesn't work. it never returns false. and yeah, the trigger is registered. must be some small typo I'm missing somewhere else. sigh

oh shi-

did you say I had to register the trigger for items as well? laugh somehow that didn't occur to me. thanks!

EDIT: only I don't know how to do that smile there's no function to register a trigger with an item, only TriggerRegisterForItems(trigger), which still doesn't do what I need frown

EDIT2: OK, restarting the editor fixed it, it was definitely the fact that I wasn't registering the trigger for that item. phew wink

Last edited by AbsoluteVirtue; 26/11/16 04:38 AM.
Joined: Jun 2013
old hand
Offline
old hand
Joined: Jun 2013
TriggerRegisterForItems(trigger) worked for me.

Are you starting with the item already inside the trigger? Or is the player moving the item inside the trigger? I was doing the second one.

Joined: Nov 2016
A
stranger
OP Offline
stranger
A
Joined: Nov 2016
it works now, it was just some fluke with the way editor saves and builds its scripts. as soon as I registered it everything worked. so thanks smile

Joined: Jun 2013
old hand
Offline
old hand
Joined: Jun 2013
Originally Posted by AbsoluteVirtue
it works now, it was just some fluke with the way editor saves and builds its scripts.


Yeah I've had problems like that before. Makes me paranoid so if I'm writing something that seemingly isn't working but I think it should I'll just restart the editor.


What are you working on anyway?

Last edited by SniperHF; 26/11/16 04:43 AM.
Joined: Nov 2016
A
stranger
OP Offline
stranger
A
Joined: Nov 2016
nothing serious, I'm just learning the editor, trying to think of stuff that's not completely trivial to implement and then implementing it. thought of several scenarios and am currently figuring out the Story and Keyword editors smile

I'll maybe publish it on Steam Workshop just for posterity when I'm done with it.

Page 2 of 2 1 2

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5