Two things I just fixed on the ship interface...
The number displayed for ship turn did not have the decimal place. This was easily fixed by using the same format as the other attribute uses.
The string for the number of guns currently installed decides to not want to be displayed.
I fixed it by duplicating the CreateString, like so... [SNIP] Why that string was not being displayed, even if just “0”, is beyond me since it was correctly entered into the interface attributes. I don’t see why it should be necessary to do what I did here, but it sorts it out so I’m happy. Oh, now I get it. The skills summary is interfering with the cannons - as soon as the summary is displayed the cannons quantity changes to the skill value.
Yep, now I have changed the string name for the cannon quantity to QCannons and it has fixed the problem.
The number displayed for ship turn did not have the decimal place. This was easily fixed by using the same format as the other attribute uses.
The string for the number of guns currently installed decides to not want to be displayed.
Yep, now I have changed the string name for the cannon quantity to QCannons and it has fixed the problem.
Code:
CreateString(true,"QCannons","0",FONT_BOLD_NUMBERS,COLOR_NORMAL,575,154,SCRIPT_ALIGN_CENTER,0.6);
GameInterface.strings.TCannons = GetCannonName(GetCaracterShipCannonsType(otherCh));
GameInterface.strings.QCannons = GetLocalShipAttrib(&tmpar,&refBaseShip,"CurCanQty");
if (sti(GameInterface.strings.QCannons) == 0 && GetCaracterShipCannonsType(refMyCh) == CANNON_TYPE_NONECANNON) {
SetSelectable("RCANNONS", false);
GameInterface.strings.QCannons = "";
}
Last edited: