Can someone help me with making a Common event script that will clear actor 001's note description then change it to a string that is determined by (X) + a variable + (Y)? (variable ID 0001)
Ex: X= asd
Variable = 123
Y=Z
Actor note change upon running script would look like asd123Z
these changes need to be save file specific
I don't know what you're wanting to do with that, but changing note tags, especially for the Actor or Class objects is not a good idea.
Many, many scripts use those note tags, so It's probally best you don't mess with them. The odds are overwhelming you'll want to use a script that requires those note boxes, so I would strongly advise against using a script that ruins it.
Zoltor, the only reason it would ever be a "bad idea" to change the note tag contents of an Actor is because most script authors don't actually bother checking what the value of the note tag is -- instead, they assume that the value won't change and cache the information. For some reason, they assume that this will bring some "performance benefit" over making a call to the note method which -- at its absolute worst -- generates a single string which will most likely either be used or garbage collected.
Compared to the egregious abuse of iterations, for loops, poor Bitmap management and overall slipshod programming I've seen from the majority of the scripting community, generating a single string every once in a while hardly seems like a problem.
By the way, Killock, the answer is a very simple script call.
$game_actors[0].note = "asd#{$game_variables[1]}Z"This doesn't mean that scripts will automatically be aware of the change and use it, though -- in fact, it's extremely likely that they won't simply due to the way most script authors write their scripts, as I explained above. Try it, but I can almost guarantee you that it will not work without modifying whichever script is loading the note tag information for use.
Also, Shaz, the changed note tag contents will be stored in the save file -- after all, the note tag is simply an instance variable.
Edit: I also don't have Ace open, so I could be completely wrong about the details of how to set the note (I can't recall how Ace stores the information from the database in an instance of Game_Actor). If anyone else sees this and notices that it's incorrect, please provide the correct script call.
@Solistra im in love with you
Edit: partially, it was a no go, getting an error in Game_Interpreter line 1411 expecting $end
Note: this is what I have it as
$game_actors[0].note = "battler[#{$game_variables[1]}]"
@Solistra, it doesn't work.
note is a property of the RPG::Actor object, not of the Game_Actor object.
You try that code, you'll get an error saying note is not defined for Game_Actor.
You change the code to $game_actors[1].actor.note it refers back to the $data_actors object which DOES have the note property. This is NOT saved with the save file. Run the code, save the game and close it, rerun and resume the saved game, and the note will be exactly what it was at the start.
@Killok, did you search a bit? I know people have asked for note data to be changed in the past, and possibly for that very script. It requires not only the ability to change the note contents, but also to save it, AND to make sure the script looks at its value each time and not just at the start of the game (or of the battle, if you happen to want to change the graphic mid-battle).
Yeah, I think I discovered this when I was writing my dynamic features script - that SOME stuff on Game_Actor has to actually go back to the $data_actor object. So while you can make some changes that automatically get saved, there are other things you can't change, or if you do you have to make further changes to have it saved.
If you ran it and it persisted, it MIGHT have been that you didn't actually close the game. The $data... arrays are populated right at the start and are not refreshed when you return to the title screen. So going back to the title and then loading the save would show what you'd changed it to. For that reason, going back to the title then starting a new game or loading a different save would also make the new game or the saved game appear as if the data had changed for it as well.
Rather than a new script to change the note tags and have them saved, I'd just change the battle script to get the name from a new Game_Actor instance variable, which will automatically be saved, rather than the actor note. You would still have to ensure the battle script checks each time.
@shaz the script works now but does not change the actor graphic, I am not sure if It is edited to display the correct value though.
Currently: $game_actors[001].actor.note = "battler[#{$game_variables[0001]}]"
$end
I need the string to be : battlers[0]
I have looked around everywhere from note managers to custom equip scripts nothing has come close to what I am looking for
The closest thing would be a custom equip side view system that uses the character graphic in battle, as to where I strongly prefer the battler graphic, like rpg XP.
I used to be able to do this via Events (Gui whore) but I cannot with this as there is no battler graphics in ace. im currently running midway through a trial and will probably wind up buying it if i fianally get a solution
my only other option as a solution would be to change the battler style in my custom battle script and use the face graphic set as a battler but it comes to look awfully sloppy as a battle UI and I alo cannot increase the battlers scale using this it just looks plain bad.
I wasnt aware that thats what double posting entailed, I created a topic similar to this about a week ago and figured that was what you were referring to - I have now read the forum linked about rules.
What do you sugjest I do in this case than, can you recommend any other battle scripts of XP style? or can the other script be edited to imply the same Zoom/placement functions that style 3 has to style 4?
Do you need to include the .png?
And would you need to make these calls right at the start of the game, or would it pick it up correctly from the note tag the first time, then you just use the above to change it?