I am curious about the feasibility of modifying the UI for my module. I would like to be able to, when a player dies in my module, give them the option to start over at the beginning but with the same character. So if you get to level 10 and die, you would have to option to start over at level 10.
To do this I think I would need to modify the death UI since it only gives you the option to reload or start a new game. Would be great to add another option to restart with the same character.
Another option could be to maybe have an option when you start a new game to somehow import the character from a file rather than generating a new character. Not sure how that would work.
Anyway the details of how I would do it are still up in the air, but it's all moot if I can't provide some kind of UI where the player can choose to do it.
Modifying the death screen UI?
Débuté par
FalloutBoy
, janv. 06 2010 12:35
#1
Posté 06 janvier 2010 - 12:35
#2
Posté 06 janvier 2010 - 03:02
Apart from it being a pain to edit the UI files currently - and I'd love to be wrong - I don't believe there's a way to run an arbitrary DAScript from the UI, but rather set and read attribute strings that the engine associates a meaning to. At least that's how it does stuff like make you load a new game and other options. Maybe it's possible to intercept things before dying and then teleport the player to some sort of limbo where you can give them the choice through a conversation with a Grim Reaper like NPC.
I don't know if this is actually in the game anywhere (or if it's something left over, or a euphemism so it doesn't get banned in Australia), but there's a reference to being "captured on death" in the UI file, but I don't see anything corresponding to that in the toolset.
Apparently it might be possible to resurrect the party through the UI, which might be something to hook into from a script... but that's just a guess on how useful that would be.
I don't know if you could do if (GetGameMode() == GM_DEAD) before the death screen pops up, either...
I don't know if this is actually in the game anywhere (or if it's something left over, or a euphemism so it doesn't get banned in Australia), but there's a reference to being "captured on death" in the UI file, but I don't see anything corresponding to that in the toolset.
Apparently it might be possible to resurrect the party through the UI, which might be something to hook into from a script... but that's just a guess on how useful that would be.
I don't know if you could do if (GetGameMode() == GM_DEAD) before the death screen pops up, either...
Modifié par FollowTheGourd, 06 janvier 2010 - 03:07 .
#3
Posté 06 janvier 2010 - 05:30
Hmm the limbo thing might work. Maybe I'll do that. In fact, I think I like that better than a UI button anyway. Thanks.





Retour en haut






