One of many features disabled in RMVX is the ability to change the Parallaxes, which was available in RMXP (and RM2K/3 before that) directly from the Event Commands. Parallaxes are graphics (usually of clouds or distant landscapes) that can scroll behind a map. While it is possible to set the parallax graphic in the map settings only, this "one parallax per map" rule is rather annoying.
As I start learning RGSS, the scripting language used by RMXP and RMVX, and familiarize myself with its nuances, being able to find workarounds and tweaks is half the fun.
I created a simple but effective (and certainly not perfect) method for changing parallaxes is with a small script in the form of the Change Parallax Scriptlet.
This helps me a lot. Thank you very much.
You’re welcome. Glad you found it useful. 🙂
Hello, Tried to use your script, but I got this error:
Script: game interpreter line 1411 argument error occurred.
wrong number of arguments (1 for 5)
Copy of 1411
end
#————————————————————————–
# * Script
#————————————————————————–
def command_355
script = @list[@index].parameters[0] + “n”
while next_event_code == 655
@index += 1
script += @list[@index].parameters[0] + “n”
end
eval(script)
end
end
I tested this and it works fine, so it would appear that another script is conflicting. Line 1411 (according to RMVX) is “Change EXP”.
The above “command_355” doesn’t appear to be correct. Search for other references from other scripts that may directly modify this command.
This is directly from RMVX:
def command_355
script = @list[@index].parameters[0] + “n”
loop do
if @list[@index+1].code == 655
script += @list[@index+1].parameters[0] + “n
2
else
break
end
@index += 1
end
eval(script)
return true
end