~ Forums of Enroth ~

An Enroth diehard fan community
HomeHome  FAQFAQ  SearchSearch  RegisterRegister  Log inLog in  
Latest topics
» Minecraft: HoMMII Resource pack!
by GodRage 2019-03-17, 12:57

» Introduce yourself
by kingarthur 2019-03-15, 12:44

» [H3SW v0.8.1] XP bug on random maps
by Figo 2019-03-14, 07:30

» H3SW: Artifact system
by robizeratul 2019-03-13, 23:46

» [H3SW v0.8.1] growth with external dwelling
by Figo 2019-03-13, 06:35

» Feature list, release notes, to-do list...
by Orzie 2019-03-13, 03:32

» [H3SW v0.8.1] Dragon Rider - map suggestion / not a bug
by Orzie 2019-03-13, 03:21

"Wait" in HoMM2?
 80% [ 55 ]
 20% [ 14 ]
Total Votes : 69
Most Viewed Topics
H3SW: General Graphics discussion
Ragoon's Graphics For HoMM3SW
H3SW General Discussion
H3SW: Dwelling Development
Heroes of Might and Magic 3: The Succession Wars - General info & Announcements
H3SW Map List: Work in progress
Welcome fellow Enrothians!
Enrothian Fan Art
H3SW Recruitment Point - Enroth Needs You!

Share | 

 [Script System] SetTownOwner(town, owner)

Go down 

Messages : 459
Quality Points : 58
Registration Date : 2015-09-06

PostSubject: [Script System] SetTownOwner(town, owner)   2017-03-06, 21:37

Tested with Ironfist version 1.2.1+ (version of December 15, 2016).


SetTownOwner(town, owner)
town: the town to set owner for.
owner: the id of the player.

Makes the specified player own the corresponding town.


With "SetTownOwner", if there are troops in garrison they are removed when the town changes ownership.



"SetTownOwner" enhanced version:

SetTownOwner(town, owner, garrison)
town: the town to set owner for.
owner: the id of the player.
garrison: can be set to "0" or "1".
- "0" if there are troops in garrison, they are removed.
- "1" if there are troops in garrison, they are conserved.

Makes the specified player own the corresponding town, the troops in garrison can be conserved or not.
Back to top Go down
Master Modder
Master Modder

Messages : 237
Quality Points : 38
Registration Date : 2014-12-27

PostSubject: Re: [Script System] SetTownOwner(town, owner)   2017-03-13, 07:56

Back to top Go down
[Script System] SetTownOwner(town, owner)
Back to top 
Page 1 of 1
 Similar topics
» New Like/Dislike System for PunBB and PhpBB2
» Wanting to take control of a forum. Owner has been gone more than a year.
» Latest Topic System problem!
» Help with snow script and java.
» Script reformat is needed

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: