TheManFromMars
Warlord
- Joined
- Oct 25, 2010
- Messages
- 102
Hi
I am trying to create a new trait, 'Afraid of the Dark'.
This trait would reduce enemy unit movement and sight to 1 when in the boundaries of the civ with the trait. The trait would also add +25 unhappiness from war for a civ at war with the civ with the trait. Overpowered? Probably, but I haven't finalized it yet, but I need at least one of those two things to happen.
I'm aware of how to 'build' a trait using various attributes available. However this is not my issue. I cannot find a working list of the traits. Kael alluded to looking in the Schema to see what was available, and the trait.xml. The Trait.xml doesn't seem to help at all, it keeps relying on various referenced attributes, to which I cannot locate anywhere else. All I can find is reference after to reference to other references! This is very frustrating. I can't figure out where certain attributes may be located. For example defining a that a land units gain +1 movement is established by a tag like
<UnitMovementBonus1>UNITCOMBAT_MELEE</UnitMovementBonus>
I know that isn't right, I just can't find where <UnitMovementBonus1> might be defined, you have other like <YieldCropBonus> or whatever. I know that for example hills give a +1 sight bonus (I think) so there must be some sort of attribute outthere that defines <UnitSightBonus1>TERRAIN_HILLS</UnitSightBonus> - now something similar to that would be what I'm after. Or being able to locate the war unhappiness attributes etc.
Maybe I'm just tying myself in knots, but I can't imagine i'm the only one wanting to create such traits, not just +1 Gold on X resource (nothing wrong with that, but something a bit more unusual/creative may be nice.) I'm not asking for a hand out, but simply any help or information would be good, especially from someone who has tried it.
It should in theory be relatively easy and the possibilies vast, but it all depends on being able to define/create attributes or creatively alter pre-existing ones.
Any help most welcome.
I am trying to create a new trait, 'Afraid of the Dark'.
This trait would reduce enemy unit movement and sight to 1 when in the boundaries of the civ with the trait. The trait would also add +25 unhappiness from war for a civ at war with the civ with the trait. Overpowered? Probably, but I haven't finalized it yet, but I need at least one of those two things to happen.
I'm aware of how to 'build' a trait using various attributes available. However this is not my issue. I cannot find a working list of the traits. Kael alluded to looking in the Schema to see what was available, and the trait.xml. The Trait.xml doesn't seem to help at all, it keeps relying on various referenced attributes, to which I cannot locate anywhere else. All I can find is reference after to reference to other references! This is very frustrating. I can't figure out where certain attributes may be located. For example defining a that a land units gain +1 movement is established by a tag like
<UnitMovementBonus1>UNITCOMBAT_MELEE</UnitMovementBonus>
I know that isn't right, I just can't find where <UnitMovementBonus1> might be defined, you have other like <YieldCropBonus> or whatever. I know that for example hills give a +1 sight bonus (I think) so there must be some sort of attribute outthere that defines <UnitSightBonus1>TERRAIN_HILLS</UnitSightBonus> - now something similar to that would be what I'm after. Or being able to locate the war unhappiness attributes etc.
Maybe I'm just tying myself in knots, but I can't imagine i'm the only one wanting to create such traits, not just +1 Gold on X resource (nothing wrong with that, but something a bit more unusual/creative may be nice.) I'm not asking for a hand out, but simply any help or information would be good, especially from someone who has tried it.
It should in theory be relatively easy and the possibilies vast, but it all depends on being able to define/create attributes or creatively alter pre-existing ones.
Any help most welcome.