Is a possible to choose a random unit from multiple eras?

General feedback and discussion of the game.

Moderator: Forum Moderators

Post Reply
skillfulhacks
Posts: 1
Joined: September 9th, 2023, 8:42 pm

Is a possible to choose a random unit from multiple eras?

Post by skillfulhacks »

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?
User avatar
Ravana
Forum Moderator
Posts: 3398
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Is a possible to choose a random unit from multiple eras?

Post by Ravana »

No. Addons that are not selected in current game are not loaded.
User avatar
ChaosRider
Posts: 1415
Joined: April 15th, 2012, 1:15 pm

Re: Is a possible to choose a random unit from multiple eras?

Post by ChaosRider »

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?
Well...
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 :D?
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.
User avatar
lhybrideur
Posts: 508
Joined: July 9th, 2019, 1:46 pm

Re: Is a possible to choose a random unit from multiple eras?

Post by lhybrideur »

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)
User avatar
ChaosRider
Posts: 1415
Joined: April 15th, 2012, 1:15 pm

Re: Is a possible to choose a random unit from multiple eras?

Post by ChaosRider »

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)
First, you are a garbage. Dont insult something just because you dont like it.

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.
User avatar
Ravana
Forum Moderator
Posts: 3398
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Is a possible to choose a random unit from multiple eras?

Post by Ravana »

Its possible provided you only have 1 era installed.
User avatar
ChaosRider
Posts: 1415
Joined: April 15th, 2012, 1:15 pm

Re: Is a possible to choose a random unit from multiple eras?

Post by ChaosRider »

Ravana wrote: January 29th, 2026, 1:49 pm Its possible provided you only have 1 era installed.
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.
User avatar
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?

Post by DuncanDill »

ChaosRider wrote: January 29th, 2026, 2:23 pm
Ravana wrote: January 29th, 2026, 1:49 pm Its possible provided you only have 1 era installed.
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.
Obviously the great and most esteemed add-on War of the Gods should be used, with over 5000 units :annoyed:
viewtopic.php?p=690573#p690573 Curent Maintainer of Talentless Mage
viewtopic.php?p=689462#p689462 Gaze at my art :D
Post Reply