Jump to content
Sign in to follow this  
peardox

Script on death of NPC

Recommended Posts

Anyway I can do this?

 

When a SPECIFIC NPC dies (as per printInstance oei_hovered) I wanna trigger a Teleport 

 


OK Fair warning has been applied

 

I'm gonna move the domain to https://perspak.com early Feb but will keep all content

 

There are reasons behind this move which basically boil down to unifying my release schedule

 

My friends are welcome to play (I'll set you up your own areas if you desire them)

 

Please note that this process is messy so may take a few weeks 

Share this post


Link to post
Share on other sites

There is a ScriptEventType called OnDeath that we can hook up scripts to on character prefabs - but that's in the Unity object data.  Maybe you could do something with an ability with a status effect that triggers on death?  You could grant the ability to the character by modding its progression table or with a ModScriptHookGameData.

  • Like 1

Share this post


Link to post
Share on other sites

You mean something like this would work?

 

Junk ID in sample

 

OBS will hate this Mod :)

 

Kill a random person in Neketaka and something happens :)

 

Snippet...

"Conditional": {
	"Operator": 0,
	"Components": [
		{
			"$type": "OEIFormats.FlowCharts.ConditionalCall, OEIFormats",
			"Data": {
				"FullName": "Boolean IsInActiveScene(Guid)",
				"Parameters": [
					"00000000-0000-0000-0000-000000000000"
				]
			},
			"Not": false,
			"Operator": 0
		}, {
			"$type": "OEIFormats.FlowCharts.ConditionalCall, OEIFormats",
			"Data": {
				"FullName": "Boolean IsDead(Guid)",
				"Parameters": [
					"00000000-0000-0000-0000-000000000000"
				]
			},
			"Not": false,
			"Operator": 0
		}
		
	]
},

Edited by peardox

OK Fair warning has been applied

 

I'm gonna move the domain to https://perspak.com early Feb but will keep all content

 

There are reasons behind this move which basically boil down to unifying my release schedule

 

My friends are welcome to play (I'll set you up your own areas if you desire them)

 

Please note that this process is messy so may take a few weeks 

Share this post


Link to post
Share on other sites

Cool

 

Been experimenting...

 

I kill a friendly and trigger a LootList :)

 

This is part of a DeathMatch concept I have - we have no multi-player so I wanted to do something similar

 

Now...

 

The reward - gotta be a good one

 

I was thinking of skipping you straight to endgame - nahh - lets make that one harder :)

 

I'll do a shed load of coin for it - works for now

 

I've mentioned this in a sticky thread - it's a fun idea

 

Only I know who to kill - everyone else has to go mass-kill everyone in Queen's Berth

 

I'll try it out now

 

(had to switch the "Not") 


OK Fair warning has been applied

 

I'm gonna move the domain to https://perspak.com early Feb but will keep all content

 

There are reasons behind this move which basically boil down to unifying my release schedule

 

My friends are welcome to play (I'll set you up your own areas if you desire them)

 

Please note that this process is messy so may take a few weeks 

Share this post


Link to post
Share on other sites

I need a statuseffect for ondeath ...

 

I went with an Assassin Mod (just finished it)

 

Gave some random NPC about 1 million cash to carry (slightly under)

 

I need the statuseffect to show the Modal I guess

 

Can you poss gimme a sample of a death triggering a statuseffect? Lack of dox makes working it out by yourself stressful.

 

On the bright side - I've got a functional Mod that gives you a load of cash

 

The mod is designed to be dark - not telling anyone who has the cash, simply that they have a LOT :)

 

Deathmatch + loads of rep loss - will be great fun for ppl who have completed the game

 

Couldn't have done it without the Mod Hooks (thx for those)


OK Fair warning has been applied

 

I'm gonna move the domain to https://perspak.com early Feb but will keep all content

 

There are reasons behind this move which basically boil down to unifying my release schedule

 

My friends are welcome to play (I'll set you up your own areas if you desire them)

 

Please note that this process is messy so may take a few weeks 

Share this post


Link to post
Share on other sites

This is fun (caring for our team screws me doing Mods)

 

https://www.nexusmods.com/pillarsofeternity2/mods/220/

 

I'll only tell OBS + the team who the target is

 

The result of this one is inventive (really need to do more Mods)

 

Check the mod out - it's not perfect but defo works

 

@BMac - the OnDeath - can't trigger it, big plans for that one...


OK Fair warning has been applied

 

I'm gonna move the domain to https://perspak.com early Feb but will keep all content

 

There are reasons behind this move which basically boil down to unifying my release schedule

 

My friends are welcome to play (I'll set you up your own areas if you desire them)

 

Please note that this process is messy so may take a few weeks 

Share this post


Link to post
Share on other sites

Well - this one's tanking!

 

I'll have to hit the feel-good stuff again and ignore reality I guess


OK Fair warning has been applied

 

I'm gonna move the domain to https://perspak.com early Feb but will keep all content

 

There are reasons behind this move which basically boil down to unifying my release schedule

 

My friends are welcome to play (I'll set you up your own areas if you desire them)

 

Please note that this process is messy so may take a few weeks 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...