Script Call Support Boards

This is "script call support board", alright. Would be better if you create a thread instead. But ok...

@boyflea before you go further, you have to know that ;pageup and ;pagedown has its own handler in Window_Selectable @ line 295 ~ 300. Means you can't just put :left or :right and expect it to work because the system won't recognize it.

You can try to imitate it by overwriting it on Window_SkillCommand, like
Code:
class Window_SkillCommand
  def process_handling
    return unless open? && active
    return process_ok       if ok_enabled?        && Input.trigger?(:C)
    return process_cancel   if cancel_enabled?    && Input.trigger?(:B)
    return process_pagedown if handle?(:pagedown) && Input.trigger?(:R)
    return process_pageup   if handle?(:pageup)   && Input.trigger?(:L)
    # add these first
    return process_right if handle?(:right) && Input.trigger?(:right)
    return process_left   if handle?(:left)   && Input.trigger?(:left)
  end
end
Then ofc you also need to define the process_right & process_left methods. You can try to look at how process_pagedown & process_pageup works. Then you can expect your code to work
Checking some code in my game, it looks like :left is for cursor movement and :LEFT is for input.
@boyflea and @TheoAllen and @Roninator2
As this thread is for script calls, I think this particular query goes way beyond its remit, and risks subverting its purpose.

@boyflea If the answers so far do not help, then I suggest you start a new thread, probably best in 'Learning Ruby and RGSSx' forum.
Thankyou for the excellent pointers - apologies for the gatecrash- of course will start a new thread if need to explore more - apologies for abusing thread.
What is the script to call a sound effect? I want to call them via name so I can have dynamic titles. for example:
"PianoNote_#{number}_#{scale}"
To play sound effect, you can use
Code:
RPG::SE.new('name', volume, pitch).play
but I don't understand the relation of your dynamic titles
I simply couldn't use variables in the name just using the built in SE function. Thank you very much my friend.
I need to change the zoom of a picture with a script call, not through the 'Show Picture' command. Can anyone tell me what that script call might be?

Thanks.
Code:
$game_map.screen.pictures[id].move(origin, x, y, zoom_x, zoom_y, opacity, blend_type, duration)
or if in battle screen
Code:
$game_troop.screen.pictures[id].move(origin, x, y, zoom_x, zoom_y, opacity, blend_type, duration)
  • I haven't check what you gonna put on "origin". Could be a number between 0 ~ 1 with 0 being equivalent as "upper left" in move picture command.
  • zoom_x and zoom_y might need a number like 100 for being 100% zoom.
  • blend_type might be 0 for normal blend, 1 add, and 2 sub just like in event
@TheoAllen Thanks, you're a life saver.
I have a character who only acquires Magic skills after the start of the game. In all probability she will have leveled up, and so when she gets this ability and her MP shows, there will be a 'gap' between her actual MP and the maximum MP. I would like her to start off with a full tank.

The 'Recover All' event command would also heal her HP, which would not make sense.
Is there a script call which would only recover MP?
Thanks.
Try this'n:
Code:
$game_actors[1].mp = $game_actors[1].mmp
@KanaX Perfect!
Thank you very much.
Hello, anyone could help me finding the right script call, for my common event?
I needed an armor (equipable item) to run a common event when equiped an another one when dequiped, so i started using Equip Events from Hime, ( http://himeworks.com/2013/06/common-equip-events/ )
But the problem is that i want the armor to act different based on the class of the actor that is equiping it, i made a conditional branch like the one on this spoiler:
Spoiler
vym2fnz.png

The script call $game_temp.common_event_user is from the script Common Event Variables, from Hime ( http://himeworks.com/2013/04/common-event-variables/ ), it stores the id of the actor/enemy that used the potion or spell, but it doesn't give me the oportunity to store the class ID of the actor, to store it in a variable and be able to check it with a conditional branch.

What will be the script call to use in this common event?
I'm preeeeeetty sure an Actor's class id is stored in $game_actors[actor_id].class_id

To be more precise. Since you have the id of the Actor, you have access to all their properties.
Right, but as i said, "it stores the id of the actor/enemy that used the potion or spell", it doesn't store the actor id of the actor equiping the armor.
And how do i use $game_actors[actor_id].class_id to store it in a variable?
Question: Does Equip Events work for you?

It seems to only work when I equip what I already have equipped.

Anyway: Go to the script, line 85 and add this in a new line:
Code:
$game_variables[variable_id] = class_id
variable_id being the id of the variable you want to store your class id in.
I'm sorry, in which script do i insert this scrit call?
Common event variables or Equip events?

Yes, equip event does work. I had no problems
Equip Events
It gave me this error.
Spoiler: Error
uRUINHT.png
Spoiler: Script
2oUAPOO.png
Spoiler: Common event
BEa0rNk.png

Original thread: https://forums.rpgmakerweb.com/threads/script-call-support-boards.25767/