Can blood spatters or slime trails be altered?

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
Crowley
Posts: 459
Joined: Thu May 14, 2020 1:34 pm

Can blood spatters or slime trails be altered?

Post by Crowley »

I had the idea that it would be nice if I was able to change what kind of blood a creature leaves behind when hit, such as having giant insects bleed yellow goop. After all, all sorts of different colored "blood" spatters already exist in the game's graphics files. I tried examining slimes since those leave behind green slime trails, and on a related note making different colored slimes would also be a nice thing to do.

However, I could not see anything special about the slimes either in Exult Studio or in decompiled usecode. Are these aspects (blood color & leaves liquid trails as moves) another one of those pesky hardcoded things?
Malignant Manor
Site Admin
Posts: 985
Joined: Thu May 14, 2020 1:34 pm

Re: Can blood spatters or slime trails be altered?

Post by Malignant Manor »

They are all hard coded. It might not be too hard to de hard code. I'm not sure where all the changes would need to be at the moment.
Malignant Manor
Site Admin
Posts: 985
Joined: Thu May 14, 2020 1:34 pm

Re: Can blood spatters or slime trails be altered?

Post by Malignant Manor »

I made a partial patch and created a feature request tracker for Marzo to finish after we convert to Git. https://sourceforge.net/p/exult/feature-requests/173/
marzo
Site Admin
Posts: 1925
Joined: Thu May 14, 2020 1:34 pm

Re: Can blood spatters or slime trails be altered?

Post by marzo »

By the way, most of those 'blood' spatters aren't really blood. Looking over BG and SI usecode, these are the results:

* frames 0-3: blood, and SI vomit;
* frames 4-7: slime trails, and SI vomit;
* frames 8-11: SI vomit (Exult also uses as slime trails, but I think this is wrong);
* frames 12-15: beer, and SI vomit;
* frames 16-19: water;
* frames 20-23: wine;
* frames 24 (SI): acid;
* all others: seem to be placeholders, and are unused.

SI vomit creates one each in the first 4 groups, with random frames, and places them all in the same location.
------
Marzo Sette Torres Junior
aka Geometrodynamic Dragon
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
Crowley
Posts: 459
Joined: Thu May 14, 2020 1:34 pm

Re: Can blood spatters or slime trails be altered?

Post by Crowley »

Thank thee kindly for the speedy and helpful response! Now that I think about it, I suppose the graphical behaviour of slimes using different frames depending on whether there are other slimes adjacent is also hardcoded.
Malignant Manor
Site Admin
Posts: 985
Joined: Thu May 14, 2020 1:34 pm

Re: Can blood spatters or slime trails be altered?

Post by Malignant Manor »

Unfortunately, it seems that there are several other things that will be done before this gets implemented. In the meantime, you can still test out shapes by replacing them with the originals.
Crowley
Posts: 459
Joined: Thu May 14, 2020 1:34 pm

Re: Can blood spatters or slime trails be altered?

Post by Crowley »

That's all right. This is just a cosmetic thing that occurred to me, nothing central to the things I am working on.
Locked