~ Forums of Enroth ~

An Enroth diehard fan community
 
HomeHome  FAQFAQ  SearchSearch  RegisterRegister  Log inLog in  
Latest topics
» [H3SW 0.8.1] The Ultimate Mug of Ale
[Script System] SetTownOwner(town, owner) Icon_minitimeby Ctesiphon Today at 06:27

» Lands of Enroth 2018 & 2019
[Script System] SetTownOwner(town, owner) Icon_minitimeby GodRage Today at 06:14

» Heroes of Might & Magic 2 Civilization 2 Mod!
[Script System] SetTownOwner(town, owner) Icon_minitimeby GodRage Today at 05:15

» [H3SW 0.8.1] A Crossroad Tavern
[Script System] SetTownOwner(town, owner) Icon_minitimeby GodRage Yesterday at 21:23

» [H3SW 0.8.1] Migration
[Script System] SetTownOwner(town, owner) Icon_minitimeby Ctesiphon Yesterday at 20:46

» play online
[Script System] SetTownOwner(town, owner) Icon_minitimeby YhyJasne Yesterday at 09:30

» Lands of Enroth - Maps system
[Script System] SetTownOwner(town, owner) Icon_minitimeby Orzie Yesterday at 00:45

Poll
"Wait" in HoMM2?
Yes
[Script System] SetTownOwner(town, owner) Redbar1180%[Script System] SetTownOwner(town, owner) Redbar12
 80% [ 55 ]
No
[Script System] SetTownOwner(town, owner) Redbar1120%[Script System] SetTownOwner(town, owner) Redbar12
 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!
Heroes III: The Succession Wars v0.8.1 Beta
Enrothian Fan Art
Commanders?

Share
 

 [Script System] SetTownOwner(town, owner)

Go down 
AuthorMessage
Unknown_Hero
Vampire
Vampire
Unknown_Hero

Messages : 471
Quality Points : 63
Registration Date : 2015-09-06

[Script System] SetTownOwner(town, owner) Empty
PostSubject: [Script System] SetTownOwner(town, owner)   [Script System] SetTownOwner(town, owner) Icon_minitime2017-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.

*

Suggestions:

"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
Darmani
Master Modder
Master Modder
Darmani

Messages : 244
Quality Points : 40
Registration Date : 2014-12-27

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

Noted
Back to top Go down
 
[Script System] SetTownOwner(town, owner)
Back to top 
Page 1 of 1
 Similar topics
-
» Help with snow script and java.
» Script reformat is needed
» phpBB social Comment System
» Strike System
» Radio script on every pages

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: