Modifying magic system / SYS_ message black boxes?
Posted: Tue Nov 13, 2012 12:28 pm
I'm looking at doing something a little different with Magic. I was looking at the possibility of doing a Grimrock style grid, where you select all the runes of the spell in one go, rather than DM's tiers.
http://www.crimsontear.com/gaming/legen ... ock/spells
So I want to understand what happens as a result of this line:
I understand the coordinates, etc, but what happens as a result of SYS_MAGIC_CAST? (And similarly other SYS_ messages) Presumably the code for managing all this is hidden in the core engine's black box, which makes it hard to really understand what's going on, and how I might modify it. Is there a tutorial for how to modify this sort of thing?
A couple of other confusing things:
1) Documentation says dsb_msgzone() is only used in subrenderers but this is clearly not the case -- they are used in all the interface elements drawn to the right of the viewport. Perhaps "subrenderer" needs to be more clearly defined?
http://dmwiki.atomas.com/wiki/DSB/Subrenderers
2) What's the extra 2 parameters on dsb_msgzone()? The wiki lists 8, but there's 10 in all the code examples I've found.
http://www.crimsontear.com/gaming/legen ... ock/spells
So I want to understand what happens as a result of this line:
Code: Select all
dsb_msgzone(bmp, SYSTEM, 5, 2, 42, 140, 22,SYS_MAGIC_CAST, sel_ppos, 0)
A couple of other confusing things:
1) Documentation says dsb_msgzone() is only used in subrenderers but this is clearly not the case -- they are used in all the interface elements drawn to the right of the viewport. Perhaps "subrenderer" needs to be more clearly defined?
http://dmwiki.atomas.com/wiki/DSB/Subrenderers
2) What's the extra 2 parameters on dsb_msgzone()? The wiki lists 8, but there's 10 in all the code examples I've found.