[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,181
Reaction score
836
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,899
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,899
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,192
Reaction score
14,236
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


Here is the second song of the Eniko: Ghosts Of Grace soundtrack: Jus Ad Bellum (Battle Theme), composed by Nickolas Wolfe! Looking forward to your reactions!
Observation Log 1 on the planet of "RPGMAKERWEB": Local RMXP community seems to have very few survivors. Their script tech-level is in the early Stone Age(about the same as 66RPG in 2007).
Some cats/wolves/squirrels are spotted, they are likely friendly. :3
Keep working on establishing more meaningful contacts.
May try to use the "I Come in Peace" protocol if encounter any hostiles.
Using hiddenone's QTE tutorial I've been able to setup a simple fishing system. Instead of just the pointer moving, the goal moves as well. Holding the action button scrolls the pointer and pressing the down arrow key hooks the fish. The speed of both is variable as well as the number of successful hooks needed for a catch.

Forum statistics

Threads
108,926
Messages
1,040,648
Members
141,380
Latest member
Mrbinnsy
Top