Page 1 of 1

Resetting augs/notes/nanokeys when level changes

Posted: Tue Dec 12, 2017 9:02 pm
by FastGamerr
Is there a quick way to achieve the goals in the thread title in a MissionScript? Resetting the inventory/skill levels is quite easy, but trying to cut&paste the code concerning resetting augs/notes/keys from DeusExPlayer etc. just didn't do the trick (with my non-existent programming skills, admittedly).

Of course, the easiest method for this would be to make a trigger that'd basically run "open AnotherLevel.dx" in the console, but while I do want to reset the inventory/skills/augs/notes/nanokeys, I don't want to reset the flags (so that the ones that have been marked to remain in the savegame's history forever would be left).

Any ideas?

Re: Resetting augs/notes/nanokeys when level changes

Posted: Thu Dec 14, 2017 5:40 am
by Defaultplayer001
I'd recommend asking on the OTP Discord! (https://discord.gg/ZxSpWHK)There's also the Revision (https://discord.gg/5pNtjXh), Deus Ex Multiplayer (https://discord.gg/qgqSDRa) GMDX discord (https://discord.gg/FfqNWSj), and the UNATCO DX server (https://discord.gg/syg8q8Y)

Yeah, there's a ton.

Re: Resetting augs/notes/nanokeys when level changes

Posted: Thu Dec 14, 2017 11:24 am
by Cybernetic pig
Add this to function PreTravel() in DeusExPlayer.uc or any subclasses of it.

Code: Select all

if (KeyRing != None)
	KeyRing.RemoveAllKeys();

if (AugmentationSystem != None)
	AugmentationSystem.ResetAugmentations();

DeleteAllNotes();
DeleteAllGoals();
ResetConversationHistory();
This is without testing anything myself. There may be minor adjustments needed.

You can also use MissionScript PreTravel() to do it, say if you want to selectively do the above only for certain levels. If you do add it to mission script instead you'll need pointers to the player, like so:

Code: Select all

if (player.KeyRing != None)
	player.KeyRing.RemoveAllKeys();

if (player.AugmentationSystem != None)
	player.AugmentationSystem.ResetAugmentations();

player.DeleteAllNotes();
player.DeleteAllGoals();
player.ResetConversationHistory();

Re: Resetting augs/notes/nanokeys when level changes

Posted: Mon Apr 03, 2023 7:05 pm
by john00
When shopping for a drilling machine, it’s important to consider your specific project and the types of materials you plan to work with. This will help you narrow down your choices and determine which type of machine is best for you. https://drillingguy.com/best-drill-bits-for-aluminum/

Re: Resetting augs/notes/nanokeys when level changes

Posted: Thu Oct 05, 2023 3:20 am
by huntshaded
It's crucial to think about your specific project and the kinds of materials you want to use when choosing a drilling machine. This will enable you to reduce your options and choose the best machine type for you.
gorilla tag