|
|
Albyx
Known Hero
|
posted July 12, 2022 09:38 AM |
|
Edited by Albyx at 09:41, 12 Jul 2022.
|
Portal plugin
This plugin allows to add new creatures to portal or set the default one.
To use it you need files from H4Zero mode and his h4ms project.
You need to include portal.h file into dllmain.cpp, then add functions you want to DllMain function.
Descriptions:
FixRecruitScreen - makes attack and defense values to be correct on recruiting screens (before they were rounded down and sometimes differed from real stats).
SetDefaultPortalCreature - sets creature that appears after building portal (waspwort in original game). Creature code is set in default_portal_creature variable in portal.h
SetPortalCreatures - changes creatures in portal.
Creatures are set in codes_array. If you add or remove creatures, also change creature_count variable.
Link to the file: https://www.mediafire.com/file/fdgzznzk83ul3gn/Portal.h/file
|
|
H4Zer0
Tavern Dweller
|
posted July 12, 2022 04:17 PM |
|
|
Very nice job and plugin you made! Thank you for the fixes and the Creature Portal new creatures options.
I'm very glad that you found my mod useful.
|
|
kkfkkkfk
Adventuring Hero
Nothing is impossible
|
posted July 18, 2022 06:06 PM |
|
|
Thats a good work.
SetDefaultPortalCreature doesn't seem to work.
I see that the default in the code is WATER_ELEMENTAL.
But it's still Waspwort in the game.
I confirm that I have called these functions in DLLMAIN.
|
|
Albyx
Known Hero
|
posted July 18, 2022 08:03 PM |
|
|
kkfkkkfk said: Thats a good work.
SetDefaultPortalCreature doesn't seem to work.
I see that the default in the code is WATER_ELEMENTAL.
But it's still Waspwort in the game.
I confirm that I have called these functions in DLLMAIN.
Which version of the game do you have? You also should try with newly built portal, because in saves previous value is stored I guess.
|
|
kkfkkkfk
Adventuring Hero
Nothing is impossible
|
posted July 19, 2022 08:31 AM |
|
|
It really needs new building.
If you already have a portal at the beginning of game, it is still Waspwort.
|
|
|