Instalar Steam
iniciar sesión
|
idioma
简体中文 (chino simplificado)
繁體中文 (chino tradicional)
日本語 (japonés)
한국어 (coreano)
ไทย (tailandés)
Български (búlgaro)
Čeština (checo)
Dansk (danés)
Deutsch (alemán)
English (inglés)
Español de Hispanoamérica
Ελληνικά (griego)
Français (francés)
Italiano
Bahasa Indonesia (indonesio)
Magyar (húngaro)
Nederlands (holandés)
Norsk (noruego)
Polski (polaco)
Português (Portugués de Portugal)
Português-Brasil (portugués de Brasil)
Română (rumano)
Русский (ruso)
Suomi (finés)
Svenska (sueco)
Türkçe (turco)
Tiếng Việt (vietnamita)
Українська (ucraniano)
Comunicar un error de traducción
You forgot a line in the Carry script block
// Carry Unit free
CurrentAbility = AllAbilities.FindAbilityTemplate('CarryUnit');
CurrentAbility.AbilityCosts.Length = 0;
ActionPointCost = new class'X2AbilityCost_ActionPoints'; <<<---- THIS IS WHAT YOU MISSED
ActionPointCost.iNumPoints = default.PICKUP_ACTION_POINTS;
ActionPointCost.bConsumeAllPoints = default.PICKUP_ENDS_TURN;
ActionPointCost.bFreeCost = default.PICKUP_TOTALLY_FREE;
CurrentAbility.AbilityCosts.AddItem(ActionPointCost);
CurrentAbility.ConcealmentRule = eConceal_Always;
Because you forgot to declare ActionPointCost anew for Carry, it was reusing the one for Drop (further up in the code) and overriding its values.
I rebuilt the mod just adding that one line, and it works! I can make Carry cost 1 AP while Drop costs 0 AP.
It seems like Drop uses the same "_IS_TOTALLY_FREE" behaviour as in PICKUP_TOTALLY_FREE, ignoring or overriding DROP_TOTALLY_FREE.
Why, I do not know - looking at your source code, the variable called is the correct one.
To confirm this: try the same settings as what you had, but with
DROP_TOTALLY_FREE = true
PICKUP_TOTALLY_FREE = false
and you will see that dropping costs 1 AP when it should cost 0, and that similarly
DROP_TOTALLY_FREE = false
PICKUP_TOTALLY_FREE = true
costs 0 AP when it should cost 1.
Again, no idea why this should happen from a look at your code, but it does happen. Can you confirm it?