Is a possible to choose a random unit from multiple eras?
Moderator: Forum Moderators
-
skillfulhacks
- Posts: 1
- Joined: September 9th, 2023, 8:42 pm
Is a possible to choose a random unit from multiple eras?
When starting a scenario is it possible to have your leader be a random (level 0 / 1) unit chosen from all the eras that are currently have installed?
Re: Is a possible to choose a random unit from multiple eras?
No. Addons that are not selected in current game are not loaded.
- ChaosRider
- Posts: 1415
- Joined: April 15th, 2012, 1:15 pm
Re: Is a possible to choose a random unit from multiple eras?
Well...skillfulhacks wrote: ↑January 25th, 2026, 10:04 pm When starting a scenario is it possible to have your leader be a random (level 0 / 1) unit chosen from all the eras that are currently have installed?
1. Which exactly eras you have installed?
2. Its possible to write a code which will choose from mentioned eras in code units (can be 0-1 lvls, but since Wesnoth works that leader is atleast 1 lvl higher than recruited units I would suggest to avoid giving a leader with only 0 lvl. Atleast 1 lvl leader and then 0 lvl recruits).
3. Are you willing to create such a code
4. Also why to have leader at 1 lvl? Higher lvl units are more powerfull which makes them harder to kill/destroy. Low lvl leader could be an easy prey. But if you want it then why not.
Creator of WOTG (+6400 units), MWC (+615 units), SurvivorsArea, RandomColosseum, RC WOTG, RC MWC, ColosseumRandomClonesBattle, BetweenDarknessAndLight, StealingWeapons, MoreUnitsForms, MoreDamageTypes, CanBeOnlyOne, ColosseumOneWinner, BonusSpam, CriticalStrike - available at 1.18 Wesnoth server.
- lhybrideur
- Posts: 508
- Joined: July 9th, 2019, 1:46 pm
Re: Is a possible to choose a random unit from multiple eras?
Wait, you forgot to tell him to install WotG, to have all eras at once, to solve his problems. (Do not do that, this era is garbage)
- ChaosRider
- Posts: 1415
- Joined: April 15th, 2012, 1:15 pm
Re: Is a possible to choose a random unit from multiple eras?
First, you are a garbage. Dont insult something just because you dont like it.lhybrideur wrote: ↑January 29th, 2026, 1:05 pm Wait, you forgot to tell him to install WotG, to have all eras at once, to solve his problems. (Do not do that, this era is garbage)
Second, Ive a parts of codes to:
- set a leader type at the game start no matter which era is used
- set a recruit list as I want to have.
So I disagree with Ravana who says its impossible. It is possible to do.
Creator of WOTG (+6400 units), MWC (+615 units), SurvivorsArea, RandomColosseum, RC WOTG, RC MWC, ColosseumRandomClonesBattle, BetweenDarknessAndLight, StealingWeapons, MoreUnitsForms, MoreDamageTypes, CanBeOnlyOne, ColosseumOneWinner, BonusSpam, CriticalStrike - available at 1.18 Wesnoth server.
Re: Is a possible to choose a random unit from multiple eras?
Its possible provided you only have 1 era installed.
- ChaosRider
- Posts: 1415
- Joined: April 15th, 2012, 1:15 pm
Re: Is a possible to choose a random unit from multiple eras?
Still we dont know which exactly eras/addons he mean.
No matter of this you can create addon which will have dependency of this (unknown yet) eras/addons. In this new addon can be a list of units ids, code to select randomly unit id and then transform existing on map leader or kill the leader and then spawn new unit which will be able to recruit.
IMO its possible to do.
But first we need information about on which eras/addons new addon should base.
Creator of WOTG (+6400 units), MWC (+615 units), SurvivorsArea, RandomColosseum, RC WOTG, RC MWC, ColosseumRandomClonesBattle, BetweenDarknessAndLight, StealingWeapons, MoreUnitsForms, MoreDamageTypes, CanBeOnlyOne, ColosseumOneWinner, BonusSpam, CriticalStrike - available at 1.18 Wesnoth server.
- DuncanDill
- Posts: 179
- Joined: December 30th, 2022, 11:57 am
- Location: Knagla, the evil twin sister of Knalga...
Re: Is a possible to choose a random unit from multiple eras?
Obviously the great and most esteemed add-on War of the Gods should be used, with over 5000 unitsChaosRider wrote: ↑January 29th, 2026, 2:23 pmStill we dont know which exactly eras/addons he mean.
No matter of this you can create addon which will have dependency of this (unknown yet) eras/addons. In this new addon can be a list of units ids, code to select randomly unit id and then transform existing on map leader or kill the leader and then spawn new unit which will be able to recruit.
IMO its possible to do.
But first we need information about on which eras/addons new addon should base.
viewtopic.php?p=690573#p690573 Curent Maintainer of Talentless Mage
viewtopic.php?p=689462#p689462 Gaze at my art :D
viewtopic.php?p=689462#p689462 Gaze at my art :D