- Joined
- Mar 28, 2016
- Messages
- 1,623
- Reaction score
- 1,439
- First Language
- French
- Primarily Uses
- RMMV
I do not know if I am too tired, but I can not find how return Height; of a picture?
I am completely blocked.
I do not know what to look for.
I just need to get the height of the previous images.
Images are generated dynamically and randomly, and their size varies depending on the content.
I just need to be able to get the height.
But for several hours I've run into a wall.
How to simply return the height of an picture?
Maybe there is another idea, but I must obliquely recuperate this height.
A picture is worth 1000 words, here is the concept
The second Quest need to take the last Height of the last quest and add to the var Dy
Those quests have never same size and need to be calculate.
//PID = Picture ID
$gameScreen.picture(PID-1).Height
$gameScreen.picture(PID-1)._Height

I check every prototype and function and found nothing,

Here the sample of the script am work on
Thanks a lot if i can get help or suggestion
I am completely blocked.
I do not know what to look for.
I just need to get the height of the previous images.
Images are generated dynamically and randomly, and their size varies depending on the content.
I just need to be able to get the height.
But for several hours I've run into a wall.
How to simply return the height of an picture?
Maybe there is another idea, but I must obliquely recuperate this height.
A picture is worth 1000 words, here is the concept
The second Quest need to take the last Height of the last quest and add to the var Dy
Those quests have never same size and need to be calculate.
//PID = Picture ID
$gameScreen.picture(PID-1).Height
$gameScreen.picture(PID-1)._Height

I check every prototype and function and found nothing,

Here the sample of the script am work on
//QUEST FUNCTION DATA JS consctor of dynamic quest engine
//Infinite Loop, Wait need break conditional check all Quest in meta
for (var Q = 0, PID = 575, Dx = 820, Dy = 350;; Q++) {
console.log('q= ' + Q);
if (!$dataArmors[QuestsID].meta['QuestTitle' + Q]) {
console.log('break ');
} // if not exist in meta, break , beacause no have more quest list
console.log('ok= ' + Q);
var Qtitle = $dataArmors[QuestsID].meta['QuestTitle' + Q];
// 1: affiche le titre de la quest
$gameScreen.setDTextPicture('\\OW[6]\\I[12] ' + Qtitle, 28);
$gameScreen.setFont('GameFont');
$gameScreen.showPicture(PID, '', 0, Dx, Dy, 100, 100, 255, 0);
$gameScreen.picture(PID).QuestID = $dataArmors[QuestsID].meta.QuestTips0
$gameScreen.setPictureCallCommon(PID, 26, 4); //Call picture click 5.5: Mouse OVER single Quest description
// check le type pour savoir comment interpreter le process validation la quest
var QType = $dataArmors[1].meta['QuestType' + Q]('Type');
if (QType === 'receipe') {
console.log(QType);
if ($dataArmors[1].meta['QuestCheck' + Q]) { // si vrai existe ? ajoute un icon valider et change la couleur
$gameScreen.setDTextPicture('\\OW[6]\\I[12]\\c[11] ' + Qtitle, 28);
$gameScreen.setFont('GameFont');
$gameScreen.showPicture(PID, '', 0, Dx, Dy, 100, 100, 255, 0);
$gameScreen.picture(PID).QuestID = $dataArmors[QuestsID].meta.QuestTips0;
}
} else if (QType === 'item') {}
if (Q === 1) {
break;
console.log('break ');
} // break test to delette, is debug test
console.log('Q= ' + Q);
PID++;
}
//Infinite Loop, Wait need break conditional check all Quest in meta
for (var Q = 0, PID = 575, Dx = 820, Dy = 350;; Q++) {
console.log('q= ' + Q);
if (!$dataArmors[QuestsID].meta['QuestTitle' + Q]) {
console.log('break ');
} // if not exist in meta, break , beacause no have more quest list
console.log('ok= ' + Q);
var Qtitle = $dataArmors[QuestsID].meta['QuestTitle' + Q];
// 1: affiche le titre de la quest
$gameScreen.setDTextPicture('\\OW[6]\\I[12] ' + Qtitle, 28);
$gameScreen.setFont('GameFont');
$gameScreen.showPicture(PID, '', 0, Dx, Dy, 100, 100, 255, 0);
$gameScreen.picture(PID).QuestID = $dataArmors[QuestsID].meta.QuestTips0
$gameScreen.setPictureCallCommon(PID, 26, 4); //Call picture click 5.5: Mouse OVER single Quest description
// check le type pour savoir comment interpreter le process validation la quest
var QType = $dataArmors[1].meta['QuestType' + Q]('Type');
if (QType === 'receipe') {
console.log(QType);
if ($dataArmors[1].meta['QuestCheck' + Q]) { // si vrai existe ? ajoute un icon valider et change la couleur
$gameScreen.setDTextPicture('\\OW[6]\\I[12]\\c[11] ' + Qtitle, 28);
$gameScreen.setFont('GameFont');
$gameScreen.showPicture(PID, '', 0, Dx, Dy, 100, 100, 255, 0);
$gameScreen.picture(PID).QuestID = $dataArmors[QuestsID].meta.QuestTips0;
}
} else if (QType === 'item') {}
if (Q === 1) {
break;
console.log('break ');
} // break test to delette, is debug test
console.log('Q= ' + Q);
PID++;
}
Thanks a lot if i can get help or suggestion
Last edited by a moderator:


