Community,
Hello, I've been a lurker for about two years now and I'm currently super frustrated. Hope someone can help me. I use VX Ace and most Yanfly Engines (Ace, Core, Battle) and Yanfly Victory Aftermath. Here's my problem.
In my game I have an actor that cannot speak, so for the first 20 levels or so his victory quotes, drop quotes, and level up quotes are "..." (nothing but an elipsis)
Once you get to duel the wizard that has cursed this actor, the spell in broken, and I want this actor to change from "..." into actual words ("OMG I love rpg maker!").
I've tried to figure it out multiple ways...
1. Tried to switch to another actor - but I run into equipment problems, learned skills from items problems, etc.
2. I have Fomars class change script. I thought this would work. I left my actor notetags empty and put the elipsis quotes notetags in his starting "mage" class. Then I made another "mage" class with "OMG I love RPG Maker" quotes notetags and then did his script call which successfully imports all skills, equipment, everything... but it fails to use the new notetagged quotes.
Anyone have any help? Thanks in advance.
I don't know if this is the correct approach or not, but I just tried it and it seems to work. Create a dummy actor with all your quotes in the Notes section and then use this script snippet when you want to switch:
$data_actors[x].note = $data_actors[y].note
$data_actors[x].load_notetags_va
I don't think it works without the call to load_notetags_va.
Grounded,
Does the entire quote go inside one script call? I have the original actor set up and the dummy with the proper quotes. They are actor 023 and 024, respectively. So do I just make ONE event with a script call that reads:
$data_actors[023].note = $data_actors[024].note
$data_actors[023].load_notetags_va
?
Does one of these lines go in a notetag or something? I've tried as many variations as I can of this and I keep getting script errors. Thanks for your time once again, and sorry I'm kind of a plug and play nitwit.
Luke
It seems that it's only a partial solution anyway if what theoallen is saying is correct, but here's the crash I'm getting...
Script Game Interpreter line 1411: No MethodError Occurred
undefined method 'note' for [20]: Array
Maybe this helps?
And yes, I'd need this to be a permanent "fix" after making the script call once.
Luke
Here's something else to try, but it requires editing the Yanfly script directly. Modify the second line of the set_victory_text method from this:
text += actor.victory_quotes(type)[rand(actor.victory_quotes(type).size)]
to this:
if $game_switches[sWITCH_ID] && actor.id == ORIGINAL_ACTOR_ID
text += $game_actors[DUMMY_ACTOR_ID].victory_quotes(type)[rand($game_actors[DUMMY_ACTOR_ID].victory_quotes(type).size)]
else
text += actor.victory_quotes(type)[rand(actor.victory_quotes(type).size)]
end
This means if the switch with the ID you choose is on and the actor being processed matches your guy who couldn't speak then from that point onward his quotes will be pulled from the dummy actor instead. This should mean you only have to turn the switch on once at the correct point in the story.
Grounded,
Thanks for all your help. I swapped that second line with your new line, which looks like this
if $game_switches[0250] && actor.id == 023
text += $game_actors[024].victory_quotes(type)[rand($game_actors[024].victory_quotes(type).size)]
else
text += actor.victory_quotes(type)[rand(actor.victory_quotes(type).size)]
end
I set it up so that switch 0250 is the switch, actor 023 is original actor, and 024 is dum dum actor. Missing something? I made a sprite set to "action" and put the switch on when you talk to him... but when I do and then find a battle I still get the original actor quotes. Thanks for all your help so far by the way, hopefully I'm missing something dumb/obvious.
Luke
edit: I played around with it a little more and I took out the brackets around the IDs so it looks like this now
if $game_switches 0250 && actor.id == 023
text += $game_actors 024.victory_quotes(type)[rand($game_actors 024.victory_quotes(type).size)]
else
text += actor.victory_quotes(type)[rand(actor.victory_quotes(type).size)]
end
not sure if this is totally wrong or not, I'm trying everything, but when this happens I get the script error when trying to load the game that says
Script Yanfly Victory Aftermath line 419 Syntax Error occurred
unexpected tINTEGER, expecting keyword_then or ';' or '/n'
if $game_switches 0250 && actor.id == 023
Thanks again for the help and so many attempts by the way
Okay Grounded, I wanna thank you for all your help. I figured it all out, here's how I did it.
I downloaded Hime's Class Changing script and made a script call to change my character's class. I noticed that you can do the quote thing with not JUST actors but also with classes, so I deleted the actor's quotes and only put them into the original class, and then the changed class. Thanks again for all your help guys.
Luke