~ Forums of Enroth ~

An Enroth diehard fan community
 
HomeHome  ChatChat  FAQFAQ  SearchSearch  RegisterRegister  Log inLog in  
Latest topics
» Introduce yourself
by Tibor0803 Today at 09:02

» 7 Days Quest [Eng] by Nieznany !NEW! 2017
by Pitsu Today at 07:20

» Ragoon's Graphics For HoMM3SW
by xxswwxx Today at 05:46

» Pogawędki (PL)
by Huntka Today at 04:36

» Chat relocation
by Orzie Today at 01:20

» The Symphony of Heroes - Paul Romero with ochestra concert
by Sir Albe 2017-05-21, 10:02

» MEMES of SW Mod
by Tibor0803 2017-05-20, 13:25

Poll
"Wait" in HoMM2?
Yes
82%
 82% [ 42 ]
No
18%
 18% [ 9 ]
Total Votes : 51
Most Viewed Topics
H3SW: General Graphics discussion
Ragoon's Graphics For HoMM3SW
H3SW General Discussion
H3SW: Dwelling Development
H3SW Map List: Work in progress
Dervish Faction General Concept
Enrothian Fan Art
H3SW Recruitment Point - Enroth Needs You!
Серия книг "Земли Меча и Магии"
Introduce yourself

Share | 
 

 [Script System][Suggestions] GetCreatureInDwelling(town, creature) and more

View previous topic View next topic Go down 
AuthorMessage
Unknown_Hero
Minotaur
Minotaur
avatar

Messages : 313
Quality Points : 37
Registration Date : 2015-09-06

PostSubject: [Script System][Suggestions] GetCreatureInDwelling(town, creature) and more   2017-03-12, 04:07

Currently, there is no way to check/modify the creatures available for recruitment in a town.

*

GetCreatureInDwelling(town, creature)
town: the town you want to check (see, for example, GetTown).
creature: the type of creature you want to check (see section "Creatures").

Returns the quantity of the specified type of creature available for recruitment in the specified town.

*

SetCreatureInDwelling(town, creature, quantity)
town: the town for which you want to set the quantity of creatures (see, for example, GetTown).
creature: the type of creature you want to set the quantity (see section "Creatures").
quantity: the quantity to be set for this creature.

Sets the quantity of the specified type of creature available for recruitment in the specified town.

*

AddCreatureInDwelling(town, creature, quantity, duration)
town: the town to which you want to add creatures (see, for example, GetTown).
creature: the type of creature you want to add (see section "Creatures").
quantity: the quantity of that creature to add.
duration: the duration during which the added creatures will be available for recruitment. After this time the creatures will be removed (if they are still present). Can be set from "0" and beyond.
- "0" for "permanent", the creatures will never be removed.
- "1" and beyond (counts as "day"), the creatures will be removed at the end of the number of the specified days (turns).

Adds the specified quantity of the specified type of creature in the dwelling of the specified town for the specified duration.

*

RemoveCreatureInDwelling((town, creature, quantity)
town: the town to which you want to remove creatures (see, for example, GetTown).
creature: the type of creature you want to remove (see section "Creatures").
quantity: the quantity of that creature to remove.

Removes the specified quantity of the specified type of creature in the dwelling of the specified town
Back to top Go down
Darmani
Master Modder
Master Modder
avatar

Messages : 163
Quality Points : 29
Registration Date : 2014-12-27

PostSubject: Re: [Script System][Suggestions] GetCreatureInDwelling(town, creature) and more   2017-03-13, 07:36

Will be handled by making towns accessible as Lua objects.
Back to top Go down
 
[Script System][Suggestions] GetCreatureInDwelling(town, creature) and more
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» .....On The Loose: Lions And Tigers Panic US Town
» Day mothers in Cape Town
» One Woman in India dies every hour due to the dowry system
» Immune System
» Chelino Travel System

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: