Page 1 of 1

Hooking into resurrect/reincarnate?

Posted: Thu Aug 30, 2018 7:33 pm
by Gambit37
Is it possible to change what happens when clicking on a mirror?

I'd like to override the sub-renderer and instead create a more attractive full-screen interface for resurrect/reincarnate. Is it possible, or is all that hard-coded?

Re: Hooking into resurrect/reincarnate?

Posted: Sun Sep 02, 2018 7:41 pm
by Sophia
No, unfortunately not. The resurrect/reincarnate interface is pretty threadbare in general. The onscreen keyboard when you reincarnate doesn't even work. (Which a lot of people don't notice because nobody uses it!)

Re: Hooking into resurrect/reincarnate?

Posted: Mon Sep 03, 2018 8:59 am
by Gambit37
I knew the onscreen keyboard doesn't work -- which is why I wanted to fix it :-)

A shame this one is hidden from modification, I had a nice idea for how to present it in a fullscreen renderer instead. Would you consider exposing this as a modifiable function in a later release?

Re: Hooking into resurrect/reincarnate?

Posted: Tue Sep 04, 2018 11:26 pm
by Sophia
I will consider it!

It really depends on how much of a mess the code ends up being. Probably a mess... but who knows... :mrgreen:

Re: Hooking into resurrect/reincarnate?

Posted: Wed Sep 05, 2018 11:21 am
by Gambit37
Heh :D I'll bookmark this thread then ;-)

I might explore creating my own function for this, and using custom mirrors and click events to activate my function. I guess that would work too...?

Re: Hooking into resurrect/reincarnate?

Posted: Thu Sep 06, 2018 12:39 am
by Sophia
Actually, yeah. I was thinking about how to move the subrenderer over to the Lua side but if you're using a custom fullscreen renderer there isn't really much of anything you need the DSB engine to be doing for you at that point. You can just invoke dsb_champion_toparty and then either sys_character_resurrected or sys_character_reincarnated directly.

Re: Hooking into resurrect/reincarnate?

Posted: Thu Sep 06, 2018 1:47 am
by Gambit37
Perfect, yep I'll look into this. I have some old code for a champion selector that I can re-purpose.