~ 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
» Songs of Silence (HoMM like game)
[Script System][Suggestions] MergePlayer(p1, p2) Icon_minitimeby Blake01 2024-03-27, 16:52

» Heroes Orchestra's 5th Birthday concerts with Paul Romero
[Script System][Suggestions] MergePlayer(p1, p2) Icon_minitimeby rrravyn 2024-03-23, 22:45

» WARNING - The dreaded moment is here: Heroes 6 servers shutting down
[Script System][Suggestions] MergePlayer(p1, p2) Icon_minitimeby Sir Albe 2024-03-22, 07:15

» fheroes2 General Announcements
[Script System][Suggestions] MergePlayer(p1, p2) Icon_minitimeby sirDranik 2024-03-17, 23:35

» Photo Gallery
[Script System][Suggestions] MergePlayer(p1, p2) Icon_minitimeby Sir Albe 2024-03-07, 06:57

» Polskie powitanie
[Script System][Suggestions] MergePlayer(p1, p2) Icon_minitimeby rrravyn 2024-03-05, 04:02

» Heroes II localisation: how to make no-CD patch.
[Script System][Suggestions] MergePlayer(p1, p2) Icon_minitimeby kiku 2024-02-19, 02:43

Poll
Global announcements should be:
Everlasting, 1 for each project.
[Script System][Suggestions] MergePlayer(p1, p2) Redbar110%[Script System][Suggestions] MergePlayer(p1, p2) Redbar12
 0% [ 0 ]
Temporary, when there is something new to announce.
[Script System][Suggestions] MergePlayer(p1, p2) Redbar11100%[Script System][Suggestions] MergePlayer(p1, p2) Redbar12
 100% [ 6 ]
Holalala... No idea where the Ultimate artifact is.
[Script System][Suggestions] MergePlayer(p1, p2) Redbar110%[Script System][Suggestions] MergePlayer(p1, p2) 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

 

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

Go down 
3 posters
AuthorMessage
Unknown_Hero
Mage
Mage
Unknown_Hero


Messages : 778
Quality Points : 78
Registration Date : 2015-09-06

[Script System][Suggestions] MergePlayer(p1, p2) Empty
PostSubject: [Script System][Suggestions] MergePlayer(p1, p2)   [Script System][Suggestions] MergePlayer(p1, p2) Icon_minitime2017-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
Darmani


Messages : 288
Quality Points : 47
Registration Date : 2014-12-27

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

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


Messages : 1042
Quality Points : 228
Registration Date : 2009-09-21
Location : France

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

Wahhhh this is good! Very Happy
It includes ressources I guess [Script System][Suggestions] MergePlayer(p1, p2) 2551314513

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


Messages : 778
Quality Points : 78
Registration Date : 2015-09-06

[Script System][Suggestions] MergePlayer(p1, p2) Empty
PostSubject: Re: [Script System][Suggestions] MergePlayer(p1, p2)   [Script System][Suggestions] MergePlayer(p1, p2) Icon_minitime2017-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
Darmani


Messages : 288
Quality Points : 47
Registration Date : 2014-12-27

[Script System][Suggestions] MergePlayer(p1, p2) Empty
PostSubject: Re: [Script System][Suggestions] MergePlayer(p1, p2)   [Script System][Suggestions] MergePlayer(p1, p2) Icon_minitime2017-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
Mage
Mage
Unknown_Hero


Messages : 778
Quality Points : 78
Registration Date : 2015-09-06

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

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





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

Back to top Go down
 
[Script System][Suggestions] MergePlayer(p1, p2)
Back to top 
Page 1 of 1
 Similar topics
-
» [Script System][Suggestions] GetUserDifficultyChoice() and more
» [Script System][Suggestions] BattleGetCurrentTurn() and more
» [Script System][Suggestions] CancelShareVision(p1, p2)
» [Script System][Suggestions] GetGlobalCreatureUpgradeCost(value) and more
» [Script System][Suggestions] GetCreaturesInGeneratorQuantity(x, y) and more

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: