RPG Maker Forums

heyo!

Someone awhile back posted a pretty nice f2u script for making screen tints affect the player/events/followers, however, it seems like it's broken or I'm simply doing something wrong! I'm unfamiliar with scripting fully myself, so I'm hoping someone on here will be able to let me know if this is beyond help or is a simple fix;



this seems to be the main error message I'm getting out of this(ablight messy) script:

Code:
class Game_CharacterBase alias shaz_vp_init_private_members init_private_members def init_private_members shaz_vp_init_private_members @viewport = 1 end def set_viewport(value=1) @viewport = value if value.between?(1,3) end def viewport @viewport ? @viewport : 1 endendclass Spriteset_Map alias shaz_vp_update_characters update_characters def update_characters shaz_vp_update_characters @character_sprites.each {|sprite| sprite.viewport = [@viewport1, @viewport2, @viewport3][sprite.character.viewport - 1] } endend
It's suppose to act upon a script call event, an event id dictating where the screentint is(?) I believe, and what viewport(i.e player etc) to apply it to(?)

edit: here's also the script call meant to enable the script itself:
Code:
$game_map.event[2].set_viewport(1)
thanks for any help on this!

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,038
Messages
1,018,467
Members
137,821
Latest member
Capterson
Top