Hooking into resurrect/reincarnate?

This forum is for the Lua scriptable clone of DM/CSB called Dungeon Strikes Back by Sophia. Use DSB to build your own highly customised games.

Moderator: Sophia

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Gambit37
Should eat more pies
Posts: 13714
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Hooking into resurrect/reincarnate?

Post 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?
User avatar
Sophia
Concise and Honest
Posts: 4239
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: Hooking into resurrect/reincarnate?

Post 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!)
User avatar
Gambit37
Should eat more pies
Posts: 13714
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Hooking into resurrect/reincarnate?

Post 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?
User avatar
Sophia
Concise and Honest
Posts: 4239
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: Hooking into resurrect/reincarnate?

Post 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:
User avatar
Gambit37
Should eat more pies
Posts: 13714
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Hooking into resurrect/reincarnate?

Post 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...?
User avatar
Sophia
Concise and Honest
Posts: 4239
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: Hooking into resurrect/reincarnate?

Post 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.
User avatar
Gambit37
Should eat more pies
Posts: 13714
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Hooking into resurrect/reincarnate?

Post by Gambit37 »

Perfect, yep I'll look into this. I have some old code for a champion selector that I can re-purpose.
Post Reply