modify the unit recruitment cost

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
User avatar
hermestrismi
Posts: 626
Joined: February 6th, 2016, 11:28 pm
Location: Tunisia
Contact:

modify the unit recruitment cost

Post by hermestrismi »

Hi,
Is there a way to modify a unit cost of recruitment in one scenario and not all the campaign (other than modify_unit_type which change it for the whole campaign)?
I checked the wiki about effects but I didn't find it
User avatar
Lord-Knightmare
Discord Moderator
Posts: 2365
Joined: May 24th, 2010, 5:26 pm
Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
Contact:

Re: modify the unit recruitment cost

Post by Lord-Knightmare »

hermestrismi wrote: April 4th, 2023, 9:53 am Hi,
Is there a way to modify a unit cost of recruitment in one scenario and not all the campaign (other than modify_unit_type which change it for the whole campaign)?
I checked the wiki about effects but I didn't find it
You can use [modify_unit_type] for just that scenario only

Code: Select all

[scenario]
    [modify_unit_type]
    [/modify_unit_type]
[/scenario]
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
User avatar
hermestrismi
Posts: 626
Joined: February 6th, 2016, 11:28 pm
Location: Tunisia
Contact:

Re: modify the unit recruitment cost

Post by hermestrismi »

Lord-Knightmare wrote: April 4th, 2023, 11:34 am
hermestrismi wrote: April 4th, 2023, 9:53 am Hi,
Is there a way to modify a unit cost of recruitment in one scenario and not all the campaign (other than modify_unit_type which change it for the whole campaign)?
I checked the wiki about effects but I didn't find it
You can use [modify_unit_type] for just that scenario only

Code: Select all

[scenario]
    [modify_unit_type]
    [/modify_unit_type]
[/scenario]
Is it working in a nested event?
User avatar
Lord-Knightmare
Discord Moderator
Posts: 2365
Joined: May 24th, 2010, 5:26 pm
Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
Contact:

Re: modify the unit recruitment cost

Post by Lord-Knightmare »

hermestrismi wrote: April 4th, 2023, 11:45 am
Is it working in a nested event?
Huh? No events.

I mean if you add it in a scenario, it only will only apply to that scenario.
If you add in a campaign, it will be applied to every scenario of the campaign.

Nothing complex about it.
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
User avatar
hermestrismi
Posts: 626
Joined: February 6th, 2016, 11:28 pm
Location: Tunisia
Contact:

Re: modify the unit recruitment cost

Post by hermestrismi »

Lord-Knightmare wrote: April 4th, 2023, 12:12 pm
hermestrismi wrote: April 4th, 2023, 11:45 am
Is it working in a nested event?
Huh? No events.

I mean if you add it in a scenario, it only will only apply to that scenario.
If you add in a campaign, it will be applied to every scenario of the campaign.

Nothing complex about it.
Yes, I understand and it worked thanks to you.
I am just asking if I also can add this modification to an event inside the scenario and I understand that it is not possible
User avatar
Lord-Knightmare
Discord Moderator
Posts: 2365
Joined: May 24th, 2010, 5:26 pm
Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
Contact:

Re: modify the unit recruitment cost

Post by Lord-Knightmare »

I am just asking if I also can add this modification to an event inside the scenario and I understand that it is not possible
Not really. You'd have to do it the messy way UtBS does it in that case. Not really recommending that.
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
User avatar
hermestrismi
Posts: 626
Joined: February 6th, 2016, 11:28 pm
Location: Tunisia
Contact:

Re: modify the unit recruitment cost

Post by hermestrismi »

Lord-Knightmare wrote: April 4th, 2023, 12:40 pm
I am just asking if I also can add this modification to an event inside the scenario and I understand that it is not possible
Not really. You'd have to do it the messy way UtBS does it in that case. Not really recommending that.
Thank you very much
Post Reply