Installera Steam
logga in
|
språk
简体中文 (förenklad kinesiska)
繁體中文 (traditionell kinesiska)
日本語 (japanska)
한국어 (koreanska)
ไทย (thailändska)
Български (bulgariska)
Čeština (tjeckiska)
Dansk (danska)
Deutsch (tyska)
English (engelska)
Español – España (spanska – Spanien)
Español – Latinoamérica (spanska – Latinamerika)
Ελληνικά (grekiska)
Français (franska)
Italiano (italienska)
Bahasa Indonesia (indonesiska)
Magyar (ungerska)
Nederlands (nederländska)
Norsk (norska)
Polski (polska)
Português (portugisiska – Portugal)
Português – Brasil (portugisiska – Brasilien)
Română (rumänska)
Русский (ryska)
Suomi (finska)
Türkçe (turkiska)
Tiếng Việt (vietnamesiska)
Українська (ukrainska)
Rapportera problem med översättningen
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?