- Joined
- Sep 27, 2016
- Messages
- 99
- Reaction score
- 23
- First Language
- English
- Primarily Uses
- N/A
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:
edit: here's also the script call meant to enable the script itself:
thanks for any help on this!
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)

