16
OXCE Support / Re: Mana pool bar not drawn with correct color
« on: September 01, 2019, 02:22:18 pm »
Thanks!!!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
newTurnItem: |
var ptre BattleUnit itemOwner;
var int itemOwnerTUmax;
var int timer;
item.getOwner itemOwner;
# unprime gemmae not held by a Celatid
if eq itemOwner null;
item.setFuseTimer -1;
end;
# spend time on cloning
item.getFuseTimer timer;
if eq timer 0;
itemOwner.getTimeUnitsMax itemOwnerTUmax;
div itemOwnerTUmax 2;
itemOwner.setTimeUnits itemOwnerTUmax;
end;
return;
[01-09-2019_13-14-02] [ERROR] Can't match overload for operator 'BattleItem.getOwner' for:
[01-09-2019_13-14-02] [ERROR] [ptre BattleItem] [var ptre BattleUnit]
[01-09-2019_13-14-02] [ERROR] Excepted:
[01-09-2019_13-14-02] [ERROR] [ptr BattleItem] [var ptr BattleUnit]
[01-09-2019_13-14-02] [ERROR] [ptre BattleItem] [var ptr BattleUnit]
[01-09-2019_13-14-02] [ERROR] Error in parsing script 'newTurnItem' for 'STR_CELATID_GEMMA': invalid operation in line: 'item.getOwner itemOwner;'
sh -c "/home/denis/opt/OXCE/openxcom -data /mnt/Data/Games/XCOM -user /mnt/Data/Games/XCOM"
# General settings
mana:
enabled: true
battleUI: true
trainingPrimary: false
trainingSecondary: false
replenishAfterMission: true
statGrowthMultipliers:
mana: 0
extraStrings:
- type: en-US
strings:
STR_MANA: "MANA"
STR_MANA_POOL: "MANA POOL"
STR_MANA_MISSING: "MANA MISSING"
STR_MANA_RECOVERY: "MANA RECOVERY> {ALT}{0}"
STR_NOT_ENOUGH_MANA: "Not Enough Mana!"
STR_MANA_ABBREVIATION: "MAN"
STR_MANA_CURRENT: "CURRENT MANA"
STR_MANA_NORMALIZED: "NORMALIZED MANA"
STR_COST_MANA: "mana"
manaExperience: "Mana experience"
manaRequired: "Mana required?"
ToMana: "Mana dmg multiplier"
RandomMana: "Mana dmg RNG?"
mana: "Mana"
manaRecoveryPerDay: "Mana per day"
soldiers:
- type: STR_SOLDIER
minStats:
mana: 100
maxStats:
mana: 100
statCaps:
mana: 100
mana:
enabled: true
battleUI: true
trainingPrimary: false
trainingSecondary: false
replenishAfterMission: true
statGrowthMultipliers:
mana: 0
extraStrings:
- type: en-US
strings:
STR_MANA: "MANA"
STR_MANA_POOL: "MANA POOL"
STR_MANA_MISSING: "MANA MISSING"
STR_MANA_RECOVERY: "MANA RECOVERY> {ALT}{0}"
STR_NOT_ENOUGH_MANA: "Not Enough Mana!"
STR_MANA_ABBREVIATION: "MAN"
STR_MANA_CURRENT: "CURRENT MANA"
STR_MANA_NORMALIZED: "NORMALIZED MANA"
STR_COST_MANA: "mana"
manaExperience: "Mana experience"
manaRequired: "Mana required?"
ToMana: "Mana dmg multiplier"
RandomMana: "Mana dmg RNG?"
mana: "Mana"
manaRecoveryPerDay: "Mana per day"
var ptr RuleArmor armorRuleset;
var int newArmor;
unit.getRuleArmor armorRuleset;
armorRuleset.getArmor 0 newArmor;