RPG Maker VX Ace
[SOLVED] What God-forsaken script call do I use to change the column of a character graphic?
I've already spent the better part of an hour researching this and trying to get the engine to display a graphic at a specific column, but every script I've typed in has resulted in an error message and a crash. Here's what I currently have:

$game_map.event(2).pattern = 2;

Also tried the following:

$game_map.events(2).pattern = 2;
this._originalPattern = 2;
$game_map.event(2)._originalPattern = 2;

And none of those - I repeat, NONE - have worked. Error message and crash in all 4 different cases. For what it's worth, I at least feel like I'm on the right track now - I just need that one final push to get this to work.

If only there were some actual examples instead of just lists of functions literally anywhere...
Автор останньої редакції: MFG38; 4 черв. 2021 о 8:08
< >
Показані коментарі 13 із 3
Okay, I finally found a script call that didn't result in a crash. Turns out I can call this:

@original_pattern = 2;

...in a Set Move Route event.
Well I don't remember and won't install the program now but usually array elements are accessed by square brackets. So if you still need a similar way to your original attempts try something like this and see if it works.

$game_map.events[2].original_pattern = 2;
Цитата допису MFG38:
this._originalPattern = 2;

self.original_pattern = 2;

instead.
< >
Показані коментарі 13 із 3
На сторінку: 1530 50

Опубліковано: 4 черв. 2021 о 7:34
Дописів: 3