jcruise

Villager
Member
Joined
May 4, 2020
Messages
28
Reaction score
8
First Language
English
Primarily Uses
RMMV
I'd like to do just that, but I don't know how to call setObjFloorLevel from outside the code.

Using the comments doesn't work. My guess is that the comments are processed when the map is loaded. OcRam's plugin doesn't parse an event page if it's spawned from another map.

But yeah, finding a way to call setObjFloorLevel from my common event would be great

I had a similar issue, and I fixed it with this script call:

$gameMap._events[$gameMap.LastSpawnedEventID()]._higherLevel = false;
 

Kirby44

Veteran
Veteran
Joined
Mar 6, 2017
Messages
152
Reaction score
22
First Language
french
Primarily Uses
RMMV
I had a similar issue, and I fixed it with this script call:

$gameMap._events[$gameMap.LastSpawnedEventID()]._higherLevel = false;
I noticed this var too, but for an obscure reason it doesn't work (it only works when I use the plugin command)

When I try to change the _higherLevel variable like you did, it doesn't work, but mysteriously when I add $gameMap.LastSpawnedEventID() as a possible parameter for the floor_level like if I specify 1000 as event ID, it will take the last spawned event (implying I edited the code) it works :LZSskeptic:
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
6,661
Reaction score
2,588
First Language
Dutch
Primarily Uses
RMMV
@Kirby44 the one I give is used in a scriptcall.
but if that doesn't work either as it isn't parsed, only @OcRam might
know the answer, if its a bug or need a compability patch, he should
knows it.

he might be busy as well for other plugins, creating, fixing, extending.
so I hope he can answer you.

depending on the plugin (YEP, Galv, or another one) which can help
dig to the problem.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
6,661
Reaction score
2,588
First Language
Dutch
Primarily Uses
RMMV
@AnnoyingDog please press F8 or F12 and screenshot the console log.
maybe your event as well where it crashed.

as "undefined" is something you didn't add or removed while still reading it.
so the object don't exist.
 

Latest Threads

Latest Profile Posts

Finally finished moving into a new place. I'm freakin' exhausted. 6 days of moving crap will do that to you. I am out of shape. Then again... multiple trips up 5 flights of stairs with boxes will wear you out...
✨NUMINA Big Update Release!! ✨
New relationship mechanics, improved translation & update on Part II release =>
How is it the final month of 2022 already? feel like we were still in January yesterday
Each story takes the point of view of each character. and I have 25 characters. meaning I have to learn more about cutscenes.
I'm weak at this
Screenshot (59).png
Bex
Editing POP Tileset DLCs to fit as many needed Tiles as possible on 1 outdoor and 1 indoor Tileset.
It is to practise and to get me easier started with prototyping some early Maps. Just started editing/rearranging the Tilesets.

Forum statistics

Threads
126,963
Messages
1,182,694
Members
166,809
Latest member
Ichisansfw
Top