Hi Ben,
Can you see why my code above does not work, something to do with the declarations again.
Thanks if you can help.
Can you see why my code above does not work, something to do with the declarations again.
Thanks if you can help.
TOTAL_COST=((NUM_OBS_UNITS)*PER_UNIT_UPDATE_COST[UPDATE_TYPES_ARRAY[UPDATE_TYPES_INDEX]]); if (TOTAL_COST <= Playergold(player[0]) && (NUM_OBS_UNITS ==1) ){ //special case: slightly different message and text message(player[0], 'ObsUnitsCostOKand1unit'); } elseif (TOTAL_COST <= PlayerGold(player[0]) && (OBS_UNIT_ARRAY.# >1) ){ message(player[0], 'ObsUnitsCostOK'); } else { message(player[0], 'ObsUnitsCostNotEnoughGold'); } }
Comment