Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
#637112 15/11/17 04:42 AM
Joined: Aug 2017
D
D00med Offline OP
member
OP Offline
member
D
Joined: Aug 2017
There a way in the stat editor to make a status that on hit contact would result in an effect being applied? I was wanting to design a skill that would shock attackers if target was hit. Either from a physical and/or magical based attack.

Or would I need scripting?

Joined: Nov 2017
S
stranger
Offline
stranger
S
Joined: Nov 2017
For skills you can easily apply status effects using SkillProperties: https://s33.postimg.org/s297de0pr/Capture.jpg
Example: CRIPPLED,100,2 (apply crippled effect for 2 turns)

You can even design your own status effects and apply those under SkillProperties as well.

Unless I'm misunderstanding you.

Last edited by Simzzz; 16/11/17 12:11 AM.
Joined: Aug 2017
D
D00med Offline OP
member
OP Offline
member
D
Joined: Aug 2017
I meant cause X damage to an enemy if the enemy were to hit a target with Y status. So not part of a skill. Looking into it I think I would need to script it - but I'm terrible at scripting.

Joined: Jan 2015
member
Offline
member
Joined: Jan 2015
You mean similar to the skill "venom coating"? Yes, that's possible. You can also script that with a character script yourself for example to add a status effect to it. For example make said weapon coating aply a slow effect.


Think for yourself! Or others will do it...
Joined: Aug 2017
D
D00med Offline OP
member
OP Offline
member
D
Joined: Aug 2017
Thanks, but not what I was after. Okay, third time explaining.

'Red' has Status A,
If 'Blue' hits 'Red' while 'Red' has Status A on,
then 'Blue' gains Status B because they hit 'Red' with his status on.

So I think I need to find some kind of 'on hit' trigger and set an if target has X status, then do X. Any idea where or what I'm looking for trigger wise?

Joined: Nov 2017
S
stranger
Offline
stranger
S
Joined: Nov 2017
Originally Posted by D00med
Thanks, but not what I was after. Okay, third time explaining.

'Red' has Status A,
If 'Blue' hits 'Red' while 'Red' has Status A on,
then 'Blue' gains Status B because they hit 'Red' with his status on.

So I think I need to find some kind of 'on hit' trigger and set an if target has X status, then do X. Any idea where or what I'm looking for trigger wise?


I'm pretty new to scripting in this game, but maybe something like:

INIT
CHARACTER:__Me

EVENTS
EVENT OnDamage
VARS
CHARACTER:_Enemy=null
ON
OnDamage(_,_,_Enemy,_)
ACTIONS
IF "c1"
CharacterHasStatus(_Enemy,"RED")
THEN
CharacterApplyStatus(__Me,"BLUE")
END IF

Last edited by Simzzz; 16/11/17 11:53 PM.

Moderated by  Larian_KVN 

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