Jump to content

DELETE BACKPACK on death


Recommended Posts

Posted (edited)

Ah, I misread. I think you could make a game event that removes items from the backpack on death easy enough. Maybe something like:

 

<action_sequence name="clear_backpack">
	<property name="action_type" value="Game" />

		<action class="RemoveItems">
			<property name="items_location" value="Backpack" />
		</action>

</action_sequence>

Just add a small effect_group to something like buffStatusCheck01 with a CallGameEvent trigger when you die. Totally untested but seems like it should work.

Edited by bdubyah (see edit history)
Link to comment
Share on other sites

On 7/6/2024 at 12:06 AM, bdubyah said:

Ah, I misread. I think you could make a game event that removes items from the backpack on death easy enough. Maybe something like:

 

<action_sequence name="clear_backpack">
	<property name="action_type" value="Game" />

		<action class="RemoveItems">
			<property name="items_location" value="Backpack" />
		</action>

</action_sequence>

Just add a small effect_group to something like buffStatusCheck01 with a CallGameEvent trigger when you die. Totally untested but seems like it should work.

Yeah, so i'm newer to trying to mod. Is something like you made I could make as a XML config and just place into the mods folder? Sorry for the noob question. 😕

Link to comment
Share on other sites

7 hours ago, MrSamuelAdams said:

Yeah, so i'm newer to trying to mod. Is something like you made I could make as a XML config and just place into the mods folder? Sorry for the noob question. 😕

Yes, though you need to use xpath for it to change the code.  Append would work in this situation 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...