Are you, in fact, a pregnant lady who lives in the apartment next door to Superdeath's parents? - Commodore

Create an account  

 
How do I: edit a Special spell? (Raise Volcano.)

Goal: Make it so Raise Volcano works on water.

Motivation: I'd played a character quite some time back with Chaos and Nature spellbooks entirely so I could make new land with volcanos then make it better with Change Terrain, even if doing so was extremely expensive and slow and I'd lose the game in the process of doing it.
Lately I came back to the game-- totally different computer and operating system-- and tried to do this again... not remembering that it doesn't work.

TIL: That I can open up game files with Vim, enter a :%!xxd command to turn it into viewable form, edit things, then use :%!xxd -r to turn back to a run-able form. That people on this forum have figured out where the hex values are for many simple numerics (things actually displayed as numbers in-game), but figuring out the hex values for various properties and functions has turned out to be much slower going.
Also, that there have only been one or two unanswered questions involving the spell around the forum (or at least as far as my search said).

Queries:
1. Is the SPELLDAT file even the right place to be looking for the targeting properties of the Raise Volcano spell? Or is it some special case in the "cast an overland spell" code?
2. Does MoM keep track of the changes made by these spells the same as it does normal terrain or is there some sort of "overlay" or "special properties of a tile" system?
Reply

raise volcano spell is hardcoded for targetting. yes, it uses "special properties of a tile" - the code form 0..1f4 - .
Also, there will problem : if you raise volcano from water it becomes the new contitnent, the new continent number must be created or erased.
Reply

(August 30th, 2015, 14:40)Asfex Wrote: raise volcano spell is hardcoded for targetting. yes, it uses "special properties of a tile" - the code form 0..1f4 - .
Also, there will problem : if you raise volcano from water it becomes the new contitnent, the new continent number must be created or erased.

1. No, targeting of special spells (category 5) is hardcoded.

Raise Volcano casting code seems to be at $A7607 in case you know assembly code and want to look at it.
Turning ocean into volcanoes might have unwanted side effects, see the above post.
Reply



Forum Jump: