pqsc_programmer
Chieftain
- Joined
- Dec 26, 2022
- Messages
- 3
Civ IV intermediate modder ... Civ 5 novice modder.
Think I understand difference between Unit Promotions vs. Unit Attributes.
Unit Promotions are actually Attributes which follow a Tree Hierarchy, whereas Unit Attributes are stand-alone.
I would like a Unique Unit Promotion which contains various Unit Attributes.
This Unique Promotion would disallow Unit Promotion(s) that gives/have that/those same Unit Attribute(s).
Example:
PROMOTION_SCOUTING_1 gives +1 visibility. There's also an Attribute which gives +1 visibility: PROMOTION_EXTRA_SIGHT_I.
PROMOTION_SCOUTING_2 adds +1 to that visibility. However, there's also an Attribute PROMOTION_EXTRA_SIGHT_II which gives +2 visibility, at one stroke.
PROMOTION_MEDIC gives AdjacentTileHealChange, yet this Requires, amongst other undesirable Promotions, PROMOTION_SCOUTING_2.
PROMOTION_MEDIC_II gives AdjacentTileHealChange, EnemyHealChange, and NeutralHealChange, Obviously, this Requires PROMOTION_MEDIC.
Goal:
I want a so-called Master Scout and a Combat Medic.
I only want the Unit Attribute of PROMOTION_EXTRA_SIGHT_II and the Attributes of PROMOTION_MEDIC_II.
Via the Promotion Tree this would Require 6 Promotions.
My Unique Promotion would disallow Five Promotions for any given Unique Unit.
I've searched and searched, and read and read Threads for "days".
The only quasi viable solutions I've found are:
- provide a ToolTip of a Units Promotions.
- reduce the icon size of Promotions in the UnitPanel.
- totally re-vamp the Promotion Tree.
- snippet GameEvents potential: How to trap/transfer INSTA_HEAL.
Certainly my Goal will need Lua.
Became comfortable with Civ IV Python, kinda getting grasp on Lua.
I see there is a CanHavePromotion hook.
Haven't researched because seems to me I'm looking for some kinda of OfferUnitPromotion or GiveUnitPromotion hook.
I think I'm in the correct Forum.
Wanted to address my Q directly to WHoward69, amongst others, whom seem quite knowledgeable.
Is there anyone who can point me in the Right Direction?
Think I understand difference between Unit Promotions vs. Unit Attributes.
Unit Promotions are actually Attributes which follow a Tree Hierarchy, whereas Unit Attributes are stand-alone.
I would like a Unique Unit Promotion which contains various Unit Attributes.
This Unique Promotion would disallow Unit Promotion(s) that gives/have that/those same Unit Attribute(s).
Example:
PROMOTION_SCOUTING_1 gives +1 visibility. There's also an Attribute which gives +1 visibility: PROMOTION_EXTRA_SIGHT_I.
PROMOTION_SCOUTING_2 adds +1 to that visibility. However, there's also an Attribute PROMOTION_EXTRA_SIGHT_II which gives +2 visibility, at one stroke.
PROMOTION_MEDIC gives AdjacentTileHealChange, yet this Requires, amongst other undesirable Promotions, PROMOTION_SCOUTING_2.
PROMOTION_MEDIC_II gives AdjacentTileHealChange, EnemyHealChange, and NeutralHealChange, Obviously, this Requires PROMOTION_MEDIC.
Goal:
I want a so-called Master Scout and a Combat Medic.
I only want the Unit Attribute of PROMOTION_EXTRA_SIGHT_II and the Attributes of PROMOTION_MEDIC_II.
Via the Promotion Tree this would Require 6 Promotions.
My Unique Promotion would disallow Five Promotions for any given Unique Unit.
I've searched and searched, and read and read Threads for "days".
The only quasi viable solutions I've found are:
- provide a ToolTip of a Units Promotions.
- reduce the icon size of Promotions in the UnitPanel.
- totally re-vamp the Promotion Tree.
- snippet GameEvents potential: How to trap/transfer INSTA_HEAL.
Certainly my Goal will need Lua.
Became comfortable with Civ IV Python, kinda getting grasp on Lua.
I see there is a CanHavePromotion hook.
Haven't researched because seems to me I'm looking for some kinda of OfferUnitPromotion or GiveUnitPromotion hook.
I think I'm in the correct Forum.
Wanted to address my Q directly to WHoward69, amongst others, whom seem quite knowledgeable.
Is there anyone who can point me in the Right Direction?