Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.
Original Source
- Original title: $gameScreen.picture(PID).Height ??? exist ???
- Original author: Jonforum
- Original date: December 16, 2016
- Source thread: https://forums.rpgmakerweb.com/threads/gamescreen-picture-pid-height-exist.72378/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Learning Javascript
Summary
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.
Archived First Post
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
Protected download
I check every prototype and function and found nothing,
Protected download
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
Protected download
I check every prototype and function and found nothing,
Protected download
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
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadReferenced Images / Attachments
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
0
replies
1
view
Topic Summary
Loading summary...

