you'd probably want to pass the actor id as a parameter so you can fetch and change the correct one
Note Tag
RGSSx Script SupportI didn't say it was dumb. I first started scripting by modifying yanfly scripts (removing info from one scene into another etc) I said it wasnt a smart thing to start with a battle script mod, which its not. Especially a script as complex as VE Animated Battles...
I mean... Theres over 7000 lines of code in the main anim battle script compared to the 1000-1500 that the default engine uses (from various classes)
Getting lost/confused/breaking things is a very real possibility within a script so complex..
Personally, I wouldnt start changing things in that script without about an hour of reading the script prior to any attempt at altering the code. The last thing you wanna do is delete/change something important and break the system.
Also, the alias is only required if you are using another method (that has already been defined) as the base of your code. It only causes bugs / errors if you try alias methods that arent there..
I'm not worried about messing up the script, i have like 10 backups of my project 🙂
I still think it sounds easy to do for someone who actually has a grasp on the situation though lol. It's looking for an actor graphic, we need it to look for a variable, sounds simple enough 😛
I still think it sounds easy to do for someone who actually has a grasp on the situation though lol. It's looking for an actor graphic, we need it to look for a variable, sounds simple enough 😛
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
Okay, now in Victor's Actor Battlers script (which I think you also use, seeing as you mentioned that you change the battler via notetags) Victor noted in his script that there is a way of changing the battler sprite.
Code:
#------------------------------------------------------------------------------# Comment calls note tags:# Tags to be used in events comment box, works like a script call.# # <battler name id: x># This tag allows to change the actor battler graphic.# id : actor ID# x : battler graphic filename## <battler hue id: x># This tag allows to change the actor battler graphic.# id : actor ID# x : battler graphic hue (0-360)## <battler position i: x, y># This tag allows to change the battler position during combat.# only valid if VE_BATTLE_FORMATION = :custom# i : position index# x : new coorditante X# y : new coorditante X##------------------------------------------------------------------------------
Oh man... i was looking in the wrong script haha
Original thread: https://forums.rpgmakerweb.com/threads/note-tag.25129/