So, I’d like to add a script that, while not changing the main script itself, it instead adds to it.
The game I’m working with has a visual novel type of mechanic, with VN sprites and all, that has the parts stored in the graphics/pictures file and when a character wears a specific item, the VN sprite reflects it.
Where the 4000 variable is an array, @AC and “bodyS” are already stated before, and it continues with “elsif” statements repeating the same block of code.
What I would like to do is make it to where either: A. A separate script can be added to the game file that adds in my own custom stuff, or B. Simplify the script to where it can still call from the pictures file, but is called from the armor’s notetag or something like that instead of the repeating if statements.
I’m still learning Ruby and VXA so I’ll be working on figuring it out myself, but any helpful ideas/tips/suggestions would be grateful.
The game I’m working with has a visual novel type of mechanic, with VN sprites and all, that has the parts stored in the graphics/pictures file and when a character wears a specific item, the VN sprite reflects it.
Ruby:
if $game_actors[@ac].equip[5] == $data_armors["###"]
then
$game_variables[4000][6] = "#"
bodyS = "<filename>"
Where the 4000 variable is an array, @AC and “bodyS” are already stated before, and it continues with “elsif” statements repeating the same block of code.
What I would like to do is make it to where either: A. A separate script can be added to the game file that adds in my own custom stuff, or B. Simplify the script to where it can still call from the pictures file, but is called from the armor’s notetag or something like that instead of the repeating if statements.
I’m still learning Ruby and VXA so I’ll be working on figuring it out myself, but any helpful ideas/tips/suggestions would be grateful.