[REL] Death has consequences

Post » Thu May 24, 2012 5:23 pm

Dang, I hoped there was one (it's listed http://mod.gib.me/skyrim/functions.html, but it's not the only one from this list that's missing in Script Dragon). I'd have to think a bit on how to separate characters and saves, but I suspect a combination of keys and text data could do the trick. If you could distinguish characters from eachother, then it's just a matter of coordinating deaths (stored in text) to punishments (stored in keys) right? Assuming that it's acceptable to punish a character for dying even if they load an earlier save.

I agree that permadeath is not wise to implement. You can, however, change Game Settings -- I use ExecuteConsoleCommand("setgs gamesettingname ##",0); (syntax is paraphrased from memory, so might wanna look it up).

It's true, custom forms are not usable in Script Dragon due to load order messing with Form IDs. Best case scenario, you could retrofit a rarely-used Magic Effect to your purposes and apply that.

You're welcome to make your own hotkey script (especially if you can make a better one, I'd gladly use it). And that is a good idea, I'll look into adding it. Unfortunately since I can't detect when the player equips something I might have to resort to making automatic checks every X seconds (so it might be a tad unreliable).

I'll look into the bug too when I get a chance, odds are the delay between equipping items is too long.
User avatar
Gavin boyce
 
Posts: 3436
Joined: Sat Jul 28, 2007 11:19 pm

Post » Thu May 24, 2012 3:19 am

Hey this is great! I'm just using the gold reduction though.. kind of afraid with the permanent stat decrease :tongue:

Are you planning to add any other consequence later?

perhaps make all armors / weapons we equip lost when we died, or remove some random spell the PC knows?

or even add some debuff penalty until we pray to a shrine / sleep / drink some kind of restoration potion :smile:
This sounds good but me too, I'll only use the gold reduction. I have a hard time making gold as it is, so it should make me be more careful in combat. Thanks!
User avatar
Avril Churchill
 
Posts: 3455
Joined: Wed Aug 09, 2006 10:00 am

Post » Thu May 24, 2012 10:33 am

Does that execute console command function allow you to retrieve the output from the command?

I believe their may have been a console command to retrieve the name of the character. But not a script dragon function.

using binary files is very easy:

#include
#include

struct player_data {
.....
};

player_data Player_data;

FILE *f1 = fopen("death_has_consequences.dat", "wb");
if (f1) {
fwrite(&Version, sizeof(Version), 1, f1);
fwrite(&Player_data, sizeof(Player_data), 1, f1);
fclose(f1);
} else {
PrintNote("Death has consequences: Unable to write data");
}


reading data:
FILE *f1 = fopen("death_has_consequences.dat", "rb");
if (f1) {
int file_version;
fread(&file_version, sizeof(int), 1, f1);
if (file_version == Version) {
fread(&Player_data, sizeof(player_data), 1, f1);
} else {
memset(Player_data, 0, sizeof(player_data));
}
fclose(f1);
}
User avatar
steve brewin
 
Posts: 3411
Joined: Thu Jun 21, 2007 7:17 am

Post » Thu May 24, 2012 12:02 pm

Unfortunately I don't think it does.

Looks like you don't need my help with anything C++ related :P
User avatar
electro_fantics
 
Posts: 3448
Joined: Fri Mar 30, 2007 11:50 pm

Post » Thu May 24, 2012 4:00 pm

I really like the idea of this. What's great is if the weapons armor you were wearing the moment of death would stay in the spot where you died, even if you were rolling down a hill or were launched into the heavens by a Giant. That way, you can go back and at least retrieve them. I like the consequences you have already.

I admit, I reload often in Skyrim. I try to balance it to the fairness of the game actually. If I feel the game has cheated me, or if I fell off a cliff when I actually wasn't meant to (being stuck or something), I reload.

I'll be looking into this mod :)
User avatar
Abi Emily
 
Posts: 3435
Joined: Wed Aug 09, 2006 7:59 am

Post » Thu May 24, 2012 2:52 pm

Updated with my xp rate change and logarithmic controls. Thanks for the tip eldiran.
User avatar
Kayleigh Mcneil
 
Posts: 3352
Joined: Thu Jun 29, 2006 7:32 am

Post » Thu May 24, 2012 1:38 am

In an addition to this, it would be REALLY cool that when you die, you actually don't "die" but you'll be unconscious and taken away by the enemy.
And when you finally wake up, you wake up in a prison cell somewhere as you have been sold by the enemy. Or something like that.

I second this idea. Or just respawning at a nearby city, temple, jail, or whatever. I would take almost any (temporary) stat penalty or gold/xp loss for not having to reload. Sometimes I forget how long it's been since the last save and end up running into an accidental death. Not having to go back in time would be worth the penalties, IMO.
User avatar
Katharine Newton
 
Posts: 3318
Joined: Tue Jun 13, 2006 12:33 pm

Previous

Return to V - Skyrim