~ 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
» [H3SW 0.8.2] Wheel of Duels
[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Icon_minitimeby DanilaRud015 Today at 14:18

» What are you listening to?
[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Icon_minitimeby Sir Albe 2024-06-19, 21:25

» [H3SW 0.8.2] Fury of Undeads
[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Icon_minitimeby DanilaRud015 2024-06-18, 15:12

» Lego Heroes of Might & Magic
[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Icon_minitimeby GodRage 2024-06-13, 18:47

» The "Monster Yotta Pack" aka the "MYP" from the FoE
[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Icon_minitimeby BoseDrache 2024-06-13, 09:11

» Looking for any HoMM 2 Map Makers From the 1990s
[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Icon_minitimeby BoseDrache 2024-06-13, 08:28

» Songs of Conquest
[Unknown Mod] Creatures Abilities and "Upgrade Path" of Creatures Icon_minitimeby Mishap 2024-06-08, 08:49

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-05

[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-07, 21: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-10, 18: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, 01: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-05

[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, 22: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-05

[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-04, 16: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: