|
Thread: Creature Bank Creator for ERA 3 | |
|
RerryR
Promising
Supreme Hero
Researching Magic
|
posted June 25, 2020 08:47 PM |
|
Edited by RerryR at 11:45, 07 Mar 2021.
|
Creature Bank Creator for ERA 3
Creature Bank Creator for ERA 3 v.1.03
Thanks to Berseker and his new release of ERA 3 I was able to create a script/mod that allows to turn map objects into creature banks.
The goal of the project was to simulate a fully functional CB with only ERM code. This script will allow modders to easily create new CB and distribute them.
My hope is that creative people will use it and share their work or port creature banks of HotA or Tide of War to ERA, so they are available for everyone.
What is currently possible with this script:
- turn most objects available in the map editor into a CB.
- decide if transmuted objects should lose their functionality or keep it
- set custom sounds and battlefields
- replace map objects with your new CB, so they will appear on random maps
- fully flexibility by setting type of guards and number of guards
- setting a lot of possible rewards
- Rewards can scale with the size of the CB
- CB can spawn in different sizes (Small,Medium,Large,Huge)
- CB can be revisited
- CB guards can grow over time
This is a "beta" version of the template. So please report bugs so I can improve it. In theory, this template can be expanded with anything you can imagine. Ofc if you are good with ERM you can even add your own scripts.
How much more time I will invest depends on your feedback and reports.
I made a video that explains how this template should be used:
How to create new creature banks in a few minutes with ERA 3
How to use this template in short:
1) Download Mod and activate in Mod Manager
2) Open Map Editor and look for an object that should become your CB
3) Place that object on your test map
4) Open ERM Editor and load one of the blank templates New_CB_000.erm
5) Make all settings in the erm file. until line 130 *Start of Script*
6) Save and start your map. Test if all settings work by visiting your CB with a hero
7) If you want to use your CB on a random map look for objects that should be replaced. Choose up to 6 different ones. Also, place these on your test map and check if they get replaced correctly. The yellow square should match in the coordinates. If it does not use the x-Offset setting until it does. This will prevent unaccessible CB
8) For new CB use a new template with a different number
Keep in mind that this Mod requires at least ERA 3 to work.
Download: Dropbox
I know that the newest ERA is still in development and not widely used but this will change in the future. So please see this as a long term project.
Many thanks to Berserker for his support and ERA!
Some impressions from planetavril Forgotten Fields mod:
Commander Headquaters CB from Anti-Victor
|
|
bloodsucker
Legendary Hero
|
posted June 26, 2020 12:18 AM |
|
|
Cool.
____________
|
|
fanofheroes
Famous Hero
|
posted June 26, 2020 03:50 AM |
|
|
Awesome!!
|
|
planetavril
Famous Hero
|
posted June 26, 2020 08:37 AM |
|
|
Fantastic
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted June 26, 2020 01:06 PM |
|
|
Maybe this?
RerryR said: Keep in mind that this Mod requires at least ERA 3.02 to work.
|
|
planetavril
Famous Hero
|
posted June 26, 2020 02:02 PM |
|
|
|
Liso1
Known Hero
|
posted June 26, 2020 02:27 PM |
|
|
|
Bersy
Honorable
Supreme Hero
|
posted June 26, 2020 02:32 PM |
|
|
|
Bersy
Honorable
Supreme Hero
|
posted June 26, 2020 02:33 PM |
|
|
|
bloodsucker
Legendary Hero
|
posted June 26, 2020 02:42 PM |
|
|
I don't have Era installed so I can't test this but one can place stacks in fixed positions and not only add more stacks? Right?
____________
|
|
planetavril
Famous Hero
|
posted June 26, 2020 03:47 PM |
|
|
Liso1 said:
planetavril said: yes,is installed
And is the Forgotten Fields mod compatible with ERA 3?
now yes,tested on era 3.02
|
|
RerryR
Promising
Supreme Hero
Researching Magic
|
posted June 26, 2020 04:10 PM |
|
Edited by RerryR at 12:40, 27 Jun 2020.
|
Thanks guys
@planetavril I will remove the dependency on WoG Scripts mod, I just forgot about this TM trigger. Thanks for trying out, you can report back if this template suits all your needs.
@Bersy yes I remember the discussion as it would have been yesterday
@bloodsucker You can also change the position of the creature you place. No problem. Also, the type and amount of creature guards is 100% customizable. You can place up to 8 different stacks.
Edit:
Answering a few questions that reached me so far:
Q:Also wanna ask. What about decorative objects?
Cuz they dont have subtype
So I can only use objects that have subtype I gues?"
A: Yes currently only objects that have a type and subtye can be used. I dont know how decorative objects are handeled. If anybody knows he can tell me
Q: Can I put a random commander artifact as reward?
A: Yes. In the erm file search for:
!!VRy13&y14>-1:Sy14;
!!UN:N0/2/y13;
and replace with:
!!VRy13&y14>-1:Sy14;
!!VRy13:R0/146/155; Generate Artifact in the Range from x1 to x2
!!UN:N0/2/y13;
Make sure artifact reward is enabled.
Q: random creature from say lvl 2 to 4?
A: I can offer random creature like this. In the erm file search for:
!!UN:N3/1/y8/2;
!!UN&y9=1:N3/2/y4/1;
and replace with:
!!UN:N3/1/y8/2;
!!VRy4:R0/0/13; Generate Creature in the Range from x1 to x2
!!UN&y9=1:N3/2/y4/1;
Make sure creature reward is enabled. This is very nice for giving only castle creatures as reward.
For level range write something like this
!!UN:N3/1/y8/2;
!!VRy4:R0/0/13; Generate Creature in the Range from x1 to x2
!!VRy80:S0R8*14+y4; Generate Creature from lvlx
!!VRy4:Sy80;
!!UN&y9=1:N3/2/y4/1;
Q: Damn this is so easy for Erm-noobs like me xD
A: Yes
Commander Headquaters CB
I will update the template at some point, but likely not today.
|
|
RerryR
Promising
Supreme Hero
Researching Magic
|
posted July 25, 2020 11:58 AM |
|
Edited by RerryR at 12:07, 25 Jul 2020.
|
Updated and Reuploaded Beta 2
Changelog:
- New: now set up to 4 different Artifacts as a reward
- New: now set all Resources as a possible reward
- New: Set up to two creatures as a possible reward
- New: Set a range x1-x2 as possible creature/artifact as a reward. For example, give only Castle creatures as rewards.
- New: Set custom text when visiting already cleared creature banks
- Removed WoG Scripts dependency by removing all macros
- fix that some CB showed incorrect name after map creation
- fix Gold Reward could be given to the wrong player
- fix Setting the First creature to -1 now does not give erm error
- fix different size option should now work again
Currently, if you set several different rewards they are processed one after each other, after clearing the CB. A multipurpose dialogue can be created were for example Experience and Creatures show up with pictures in one window. To program a flexible dialogue that does all that automatically and covers all possible cases is nearly impossible. It's much easier if you know exactly what your CB should give and script it accordingly. On request so to say.
|
|
Undeadgamer62
Known Hero
|
posted July 25, 2020 04:01 PM |
|
|
This is amazing and should result in a much more varied gaming experience in the long run.
|
|
RerryR
Promising
Supreme Hero
Researching Magic
|
posted September 27, 2020 10:09 AM |
|
Edited by RerryR at 10:31, 27 Sep 2020.
|
(Picture taken from Third Upgrade Mod by VMaiko)
Updated the script. It is no longer Beta status because it has proven itself. Also ERA 3 is now commonly available, so the script can be used by much more people.
New in version 1.0:
New Reward Option: Spell Points
New Reward Option: All Primary Skills
New Reward Option: Spell ID, Random Spells by level
- fix Objects replacing close to the edge forbidded to prevent ERM warning
- fix AI Heroes will not trigger box to include creatures
- fix Mystery sound file not surpressed anymore for all objects
Impression from new Creature Banks done by Anti-Victor
|
|
cronex
Hired Hero
C# Coder
|
posted October 07, 2020 09:55 PM |
|
|
Thanks! Looks awesome =)
____________
Treat others the way you want to
be treated.
|
|
RerryR
Promising
Supreme Hero
Researching Magic
|
posted March 07, 2021 11:37 AM |
|
Edited by RerryR at 11:40, 07 Mar 2021.
|
Updated the file to comply with the newest version of ERA and Battle-Replay plugin
Changelog Version 1.03:
- When loading a save from the Battle-Save Plugin all flags get reset to avoid problems
Changelog Version 1.02:
- When all hero army slots are full and you visit a CB that gives creatures as a reward the game will no longer auto-fill your army.
- Gave option to ban certain artifacts from appearing as a reward in CB. Like blank WoG artifacts or combinations-artifacts are banned by default and must be enabled by the modder to appear in the reward pool.
The download is in the opening post.
|
|
|