Ruby/RGSSx questions that don't deserve their own thread

@Trihan Ruby is Case SeNsItIvE, silly ME.

Funny thing is, I can't get the camera to pan, but I did manage to get the camera reset to sort of work.
All the pan stuff I tried worked, which script call did you decide to go with?
@Trihan I went with the ones you gave me, the thing is...

Script: Zalerinian-Keyboard Manager

Custom inputs:
PAN_UP Key I
PAN-R Key K
PAN_DOWN Key M
PAN_L Key J

So...

PHP:
Input.press?(:PAN_UP)
Input.press?(:PAN_R)
Input.press?(:PAN_DOWN)
Input.press?(:PAN_L)

Yeah, mapping it to a keyboard function, for ease of use.
So what about the camera pan isn't doing what it's supposed to?
It simply doesn't move.

Like, I have the keys all set up, but nothing happens.

I don't get an error, just it does nothing.
Can you show me the full code of your script for handling this?
Warning, lots, and lots of lines. (I think over 1,200)

Spoiler: Zalernian Keyboard Manager
PHP:
It won't let me post it here, even in a spoiler...
But it is ingenious...
I, uh, meant the bit for handling the scroll input... XD
Well, the script I provided plays a role.

Anyway.

I have this setup in a common event / Parallel Process.
Spoiler: Common Event
index.php
If you put something else in the conditional branch like a Show Message, does that work when the key is pressed?
No, but I figured out a way to make the camera pan work.

I have another script that uses keyboard commands (it was needed for a pause screen script); I used that, and the only problem is that it moves jaggedly. But it works at the very least...
The reason it doesn't work is that your PAN constants used uppercase letters for I, M, J and K. You need to change them to lowercase so it can find the corresponding elements in Keys.
Sorry if this was asked previously, but I am not sure what kind of terms I should use for a search (I did try on google, but couldn't find it there).
In the "script window" you can use in events, if I wanted to create an equation like:

a = [(b+c)*10]+d

how I would I go about it? Also, if it doesn't fit in one line, do I need to do something to make the game interpret the equation correctly?
Do you mean specifically the "script" event command? If so, you just...put your equation in. What are you trying to do, exactly? (if it doesn't fit on one line, you can usually carry it over to the next one on things like brackets or operands)
Do you mean specifically the "script" event command? If so, you just...put your equation in. What are you trying to do, exactly? (if it doesn't fit on one line, you can usually carry it over to the next one on things like brackets or operands)
Well, I did try that, using $game_variables, but if I use brackets to determine in which order the operation should be solved, it gives me an error. I tried all 3 types of brackets, and it always gave me errors, so I thought there must be something else I am missing (I can do single operations just fine).
Okay, so what are you trying to do exactly?
It's nothing I can't do by using control variables, I want one variable's value to be equal to the sum of two other variables multiplied by 10, and then summed with a fourth variable. I was hoping there was a way to avoid a needlessly long wall of text in my game whenever I need to do some basic math. If there isn't, I'll do it one operation at a time, it's not a big deal.
You could do

a = $game_variables[id1]
b = $game_variables[id2]
c = $game_variables[id3]
c = (a + b) * 10
You could do

a = $game_variables[id1]
b = $game_variables[id2]
c = $game_variables[id3]
c = (a + b) * 10

I figured something similar would be possible. It still does occupy a lot of lines in the event page, but it's unlikely I'll get a solution which doesn't require to initialize variables, and this still beats doing every operation individually by a country mile. Thanks for letting me know. 🙂
Well you could also do

$game_variables[id3] = ($game_variables[id1] + $game_variables[id2]) * 10

There's more than enough room in the script box for that.

Original thread: https://forums.rpgmakerweb.com/threads/ruby-rgssx-questions-that-dont-deserve-their-own-thread.150/