~ Forums of Enroth ~
Would you like to react to this message? Create an account in a few clicks or log in to continue.

~ Forums of Enroth ~

The Enroth diehard fan community
 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  
Latest topics
» Songs of Conquest
[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Icon_minitimeby Blake01 2024-04-07, 15:14

» ...to XP run...
[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Icon_minitimeby CATMAN 2024-03-30, 03:16

» WARNING - The dreaded moment is here: Heroes 6 servers shutting down
[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Icon_minitimeby Blake01 2024-03-29, 23:04

» Songs of Silence (HoMM like game)
[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Icon_minitimeby Blake01 2024-03-27, 16:52

» Heroes Orchestra's 5th Birthday concerts with Paul Romero
[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Icon_minitimeby rrravyn 2024-03-23, 22:45

» fheroes2 General Announcements
[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Icon_minitimeby sirDranik 2024-03-17, 23:35

» Photo Gallery
[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Icon_minitimeby Sir Albe 2024-03-07, 06:57

Poll
Global announcements should be:
Everlasting, 1 for each project.
[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Redbar110%[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Redbar12
 0% [ 0 ]
Temporary, when there is something new to announce.
[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Redbar11100%[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Redbar12
 100% [ 6 ]
Holalala... No idea where the Ultimate artifact is.
[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Redbar110%[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Redbar12
 0% [ 0 ]
Total Votes : 6
Most Viewed Topics
H3SW: General Graphics discussion
Ragoon's Graphics For HoMM3SW
Introduce yourself
H3SW General Discussion
H3SW Map List: Work in progress
H3SW: Dwelling Development
Forum Admins Feed
The Floody Land
Enrothian Fan Art
Heroes III: The Succession Wars v0.8.1 Beta

 

 [Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures

Go down 
2 posters
AuthorMessage
Unknown_Hero
Mage
Mage
Unknown_Hero


Messages : 778
Quality Points : 78
Registration Date : 2015-09-06

[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Empty
PostSubject: [Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures   [Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Icon_minitime2016-04-08, 07:31

Would it be possible to externalize and add new possibilities in the creatures.xml file and in a future buildings.xml file?

Here is what I want to do:

Each Peasant, when recruited, generates 1 gold per day.
Peasant can be upgraded to Archer or Ranger or Pikeman or Veteran Pikeman.

To be able to upgrade Peasants to Archers, the Archery Range, the Captain's Quarters and the Fortifications must be built in the town, and the Peasants must be located in this town.
To be able to upgrade Peasants to Rangers, the Upg. Archery Range, the Captain's Quarters and the Fortifications must be built in the town, and the Peasants must be located in this town.
To be able to upgrade Peasants to Pikemen, the Blacksmith, the Captain's Quarters and the Fortifications must be built in the town, and the Peasants must be located in this town.
To be able to upgrade Peasants to Veteran Pikemen, the Upg. Blacksmith, the Captain's Quarters and the Fortifications must be built in the town, and the Peasants must be located in this town.

So, add entries in the xml files to make this possible; here for the above example:

creature attribute: "generate gold", quantity "1", frequency "1" (every day)

can be upgraded to creature: "Archer", requires "Archery Range", requires "Captain's Quarters", requires "Fortifications"

can be upgraded to creature: "Ranger", requires "Upg. Archery Range", requires "Captain's Quarters", requires "Fortifications"

can be upgraded to creature: "Pikeman", requires "Blacksmith", requires "Captain's Quarters", requires "Fortifications"

can be upgraded to creature: "Veteran Pikeman", requires "Upg. Blacksmith", requires "Captain's Quarters", requires "Fortifications"


For the upgrade paths already in game, per example for the Cavalry:

can be upgraded to creature: "Champion", requires "Upg. Jousting Arena"


Last edited by Unknown_Hero on 2016-04-11, 04:51; edited 1 time in total
Back to top Go down
Darmani
Master Modder
Master Modder
Darmani


Messages : 288
Quality Points : 47
Registration Date : 2014-12-27

[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Empty
PostSubject: Re: [Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures   [Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Icon_minitime2016-04-09, 11:49

The 1 gold/peasant/day ability can just about be done in scripting right now with the new scripting additions coming in the next version of Ironfist.


.....I'm embarassed to admit that, until now, I hadn't realized creatures.xml does not support upgrades . This will be supported in the future, and probably the only reasonable design will support all the things you just mentioned.
Back to top Go down
Unknown_Hero
Mage
Mage
Unknown_Hero


Messages : 778
Quality Points : 78
Registration Date : 2015-09-06

[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Empty
PostSubject: Re: [Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures   [Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Icon_minitime2016-04-10, 08:20

Darmani wrote:
The 1 gold/peasant/day ability can just about be done in scripting right now with the new scripting additions coming in the next version of Ironfist.

Yes, so good. Smile

Darmani wrote:
.....I'm embarassed to admit that, until now, I hadn't realized creatures.xml does not support upgrades .

Razz

Darmani wrote:
This will be supported in the future, and probably the only reasonable design will support all the things you just mentioned.

Aaaahhh...  Very Happy
Back to top Go down
Unknown_Hero
Mage
Mage
Unknown_Hero


Messages : 778
Quality Points : 78
Registration Date : 2015-09-06

[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Empty
PostSubject: Re: [Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures   [Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Icon_minitime2017-01-05, 03:14

Darmani wrote:
The 1 gold/peasant/day ability can just about be done in scripting right now with the new scripting additions coming in the next version of Ironfist.

It's possible to do this for Peasants in an army, but there is no way of knowing the number of Peasants if they are stationed in a town/castle.

And it's a little "drawn by the hair" (tiré par les cheveux)(a stange way to do it). Razz

Would it not be simpler to create a creature attribute?
In the creatures.xml file, creature-attribute: generate resource (resource type, quantity, frequency).
It would be much more universal and would remove the need to add the code in the script for each map.
Back to top Go down
Sponsored content





[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Empty
PostSubject: Re: [Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures   [Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Icon_minitime

Back to top Go down
 
[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures
Back to top 
Page 1 of 1
 Similar topics
-
» [H3SW v0.8.0] Specific creatures unreadable abilities
» [Unknown Mod] Changes to the Heroes and Captain, extended "inventories" (artifacts and creatures) for the Hero and the Captain
» H3SW: Upgrade system
» [H3SW v0.8.0] Upgrade goblin glitch?
» [H3SW v0.8.0] Peasant Upgrade glitch

Permissions in this forum:You cannot reply to topics in this forum
~ Forums of Enroth ~ :: Modding Guild :: Heroes of Might and Magic II: Project Ironfist :: Modding and Mapmaking-
Jump to: