RPG Maker Forums

I do not know if I am too tired, but I can not find how return Height; of a picture?


I am completely blocked. :headshake:
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


quest-menue.jpg


I check every prototype and function and found nothing,


Capture.JPG


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++;
}



Thanks a lot if i can get help or suggestion

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,470
Members
137,821
Latest member
Capterson
Top