~ Forums of Enroth ~

An Enroth diehard fan community
 
HomeHome  ChatChat  FAQFAQ  SearchSearch  RegisterRegister  Log inLog in  
Latest topics
» [Ironfist ver 1.3.0] Script for Maps (Shrines, Secondary Skills, Witch's Hut, etc.) and some questions
by Unknown_Hero Yesterday at 10:34

» [Unknown Mod] General Informations
by Unknown_Hero Yesterday at 10:26

» [Ironfist ver 1.3.0] Systematic crash
by Unknown_Hero 2018-12-08, 07:47

» [Ironfist ver 1.3.0+] Unexpected program termination when a double click is performed on a town
by Unknown_Hero 2018-12-03, 00:35

» [Ironfist ver 1.3.0] Bug with tables in lua script when loading a save file
by Unknown_Hero 2018-12-01, 08:51

» Modding Questions
by Arstahd 2018-11-25, 18:53

» H3SW: General Graphics discussion
by buffkaz 2018-11-22, 08:30

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

Share | 
 

 [Script System][Suggestions] MergePlayer(p1, p2)

Go down 
AuthorMessage
Unknown_Hero
Vampire
Vampire
avatar

Messages : 403
Quality Points : 56
Registration Date : 2015-09-06

PostSubject: [Script System][Suggestions] MergePlayer(p1, p2)   2017-03-30, 03:17

MergePlayer(p1, p2)
p1: the player who will give his possessions.
p2: the player who will receive the possessions.
p1 and p2: can be set from "0" to "5".

All the towns and resource generators owned by player "p1" are transferred to player "p2". Player "p1" is eliminated from the game. All the heroes of player "p1" disappear from the map.
Back to top Go down
Darmani
Master Modder
Master Modder
avatar

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

PostSubject: Re: [Script System][Suggestions] MergePlayer(p1, p2)   2017-03-30, 13:47

Will be implementable using other functionality.
Back to top Go down
GodRage
Webmaster
Webmaster
avatar

Messages : 735
Quality Points : 182
Registration Date : 2009-09-21
Location : France

PostSubject: Re: [Script System][Suggestions] MergePlayer(p1, p2)   2017-03-30, 21:22

Wahhhh this is good! Very Happy
It includes ressources I guess

________________________
~Lands of Enroth~
Back to top Go down
http://homm2.free.fr
Unknown_Hero
Vampire
Vampire
avatar

Messages : 403
Quality Points : 56
Registration Date : 2015-09-06

PostSubject: Re: [Script System][Suggestions] MergePlayer(p1, p2)   2017-03-31, 02:02

@Darmani

Ok, I see.

**

It would be possible to do so the hard way with all these expressions:

GetTownOwner(town) [Suggestion]
Returns the number of the player that owns the specified town.

SetTownOwner(town, owner) [Already available]
Makes the specified player own the corresponding town.

*

GetResourceGeneratorOwner(type, x, y) [Suggestion]
Returns the owner of the specified resource generator as an integer (0-5), or returns "-1" if the resource generator is not owned by any player.

SetResourceGeneratorOwner(type, x, y, player) [Suggestion]
Sets the specified player (0-5) to become the owner of the specified resource generator...

*

YouLose(player) [Suggestion]
The player loses the scenario.

*

MapRemoveHero(hero) [Suggestion]
Removes the specified hero from the adventure map.

*

It was just an idea to do it with one expression. Smile

@GodRage

Yes, for resources, it is already possible to do with these expressions:

GetResource(player, resource) [Already available]
Returns the amount of resource the player possesses.

SetResource(player, resource, value) [Already available]
Sets the resource of player to value.

GiveResource(player, resource, amount) [Already available]
Grants to player an amount of resource.
Back to top Go down
Darmani
Master Modder
Master Modder
avatar

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

PostSubject: Re: [Script System][Suggestions] MergePlayer(p1, p2)   2017-04-05, 18:26

As maps get bigger and more complex, we will provide a way to include standard libraries of scripts in other maps. Then, if you want to have a bunch of maps that merge players like this, it will be easy to do so. Smile
Back to top Go down
Unknown_Hero
Vampire
Vampire
avatar

Messages : 403
Quality Points : 56
Registration Date : 2015-09-06

PostSubject: Re: [Script System][Suggestions] MergePlayer(p1, p2)   2017-04-06, 06:47

Great, this is good news! Smile
Back to top Go down
Sponsored content




PostSubject: Re: [Script System][Suggestions] MergePlayer(p1, p2)   

Back to top Go down
 
[Script System][Suggestions] MergePlayer(p1, p2)
Back to top 
Page 1 of 1
 Similar topics
-
» [Script System][Suggestions] So, which expressions are the most desirable?
» One Woman in India dies every hour due to the dowry system
» Minecraft's Coordinate System
» Award system
» Latest Topics (new 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: