[Galv] Character Effects Bug/Question

Status
Not open for further replies.

Shiro-chan

Friendly Neighbourhood Neppy Maid
Veteran
Joined
Aug 7, 2018
Messages
158
Reaction score
45
First Language
German
Primarily Uses
RMVXA
Hello,
I have been messing around with the Character Effects script by Galv.
Link: https://galvs-scripts.com/2013/02/21/character-effects/
Now my problem is regarding the reflection options. The script natively allows changing a character's reflection, except this is a permanent change. I like that, but at some point I also need to undo that.
Example: the second actor changes outfits quite a lot due to transformation abilities, so when I change their actor graphic, the reflection will change accordingly. Let's call that the game's "default" state. After I use a scriptcall like
Code:
reflect_sprite(2,"Evil",3)
their reflection permanently changes to that graphic (the hooded figure in this example), as intended.
But how do I undo that? Because this change is permanent - even when I change the actor graphic, the defined reflection remains in place, and I want that removed once the "evil" reflection is no longer needed.
So I need a scriptcall to restore the default state.
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,185
Reaction score
839
First Language
Hungarian
Primarily Uses
RMVXA
Can't you just use that script call again to revert back to the default image used?
You should be able to do this at the same place you change your actor graphic, assuming it's an evented change.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,908
Reaction score
642
First Language
English
Primarily Uses
RMVXA
Try this
Ruby:
image = $game_actors[1].character_name.to_s
reflect_sprite(1,image,2)
change the actor number for the actor graphic you are trying to change.
 

Shiro-chan

Friendly Neighbourhood Neppy Maid
Veteran
Joined
Aug 7, 2018
Messages
158
Reaction score
45
First Language
German
Primarily Uses
RMVXA
Try this
Ruby:
image = $game_actors[1].character_name.to_s
reflect_sprite(1,image,2)
change the actor number for the actor graphic you are trying to change.
I tried it, and variants of it, and it does not work. The result is still permanent.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,908
Reaction score
642
First Language
English
Primarily Uses
RMVXA
it does not work
It works in galv's demo
But add on more values.
Ruby:
actor = $game_actors[1]
pos = actor.id
image = actor.character_name.to_s
index = actor.character_index
reflect_sprite(pos,image,index)
 
Last edited by a moderator:

Shiro-chan

Friendly Neighbourhood Neppy Maid
Veteran
Joined
Aug 7, 2018
Messages
158
Reaction score
45
First Language
German
Primarily Uses
RMVXA
It works in galv's demo
But add on more values.
Ruby:
actor = $game_actors[1]
image = actor.character_name.to_s
index = actor.character_index #<- doesn't work. need to test it. got to go to bed
reflect_sprite(actor,image,index)
Still doesn't work, and I found out why by asking a friend: the function I am looking for doesn't exist to begin with. So she altered the script and added it.

Code:
reset_reflect_sprite(actorID)
 

Attachments

  • galvcharactereffectsaltered.txt
    30.7 KB · Views: 1

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
41,231
Reaction score
14,251
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts

Pfft! If other people would stop replying to threads, I could DOMINATE the Latest Posts box!
After so many hours of debugging, losing data to crashes, and slight adjustments.
BlackJack now deals cards perfectly! Time to adjust the background and implement the game logic so you can actually play it.BlackJack.png
I once thought about a boss gauntled game. I actually did it.
Stream will be live shortly with some Gex 3! Feel free to drop by!

Forum statistics

Threads
109,061
Messages
1,041,728
Members
141,551
Latest member
Thwon
Top