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

it has to be something with scripts, since it is impossible to be between two events without pixel movement. and since it is a known bug in victor's pixel movement for activating side-by-side events (activating both at the same time),

I used this fix though only one event moves (this works...).

but it changes the graphic for a few frames which should not be!

I deactivate the scripts and as I said, without it is impossible to be in that position the events can change their graphics. Even victor's '<block rotation>' comment call is obsolete, it's not working.

here is the sprite I use:

[IMG]http://i.imgur.com/igNdhIm.png[/IMG]

and here is a screenshot from my event (sorry it is german...)

Spoiler
[IMG]http://i.imgur.com/dFnGPov.png[/IMG]
well.. I think I just change the sprite so every boulder is the same, no more disco stones...
then it doesn't really belong in this thread, does it?


If you are using imported scripts and have issues, PLEASE start a new thread.
hm... I thought it wouldn't be that big issue but it turns out I was false.

you're right... I guess I open new thread...
One question. So in battle, I was able to store a value from Game_System that checks all the actor's current MP during battle. For example, I have 4 actors and I have 100 MP stored (the total MP of the 4 actors added together). What I wanted to do is to make all the actor's HP to 0 and then, distribute the whole mana equally to those actors. Is this possible?
yes it is possible.
Something like this might work ...

Code:
mp = 0$game_party.battlers.each {|a| mp += a.mp}$game_party.battlers.each {|a| a.mp = mp/4}
It has to be in two passes because you need to get EVEYRONE'S MP before you know how much to allocate.
I see. I'm going to try this out and thank you for always helping me 😀
I can't for the life of me find where the default scripts set the location of the timer. Granted I'm not 100% sure what I'm looking for either.

Game_Interpreter references Game_Timer, which doesn't have any location data. There's also Sprite_Timer but that only draws the time, not the whole thing. Any help would be great ;x
You mean where the timer is drawn?

Look at the update_position method in Sprite_Timer.
 
mmm. How'd I miss that >_> thanks *hugs*
One question, how can I apply evade effects or evasion when using / applying substitute via script?
/E: doesn't matter anymore...
I'm not sure I understand the script for calling a common event in RGSS3.  According to the help thread,

$game_temp.reserve_common_event(10) should call Common Event number 10, right?  But whenever I try it, nothing happens.  Could someone please advise me on this?
It doesn't CALL the common event - it PREPARES the common event to run the next time it can.


It depends where you're putting it.


Common events ONLY run on the map. And you can only line up ONE common event to run.


Where in your game are you calling this? On the menu? On a custom scene? In battle? From a standard map event or common event? Any chance something happening after that is removing the id or setting up another one to call?
I was trying to call it on the map from the tail end of another common event.  It was supposed to update an image at the end of a common event I had to handle a certain button press.  I had it inside a common event mainly because I wanted to separate the coding for each of the buttons the player could press, since I didn't want the single page they were on to get large enough that I could lose stuff in it.

So basically, in the event on the map, I have conditionals for each valid key press.  Inside those conditional statements is a call to the common event that handles that button, then a 5 frame wait, to ensure the player can't press the buttons too rapidly for the system to keep up.  I was trying to call a common event in the middle of a script I had written for one of the button press common events, which I was writing since there were a fair number of conditionals in it, and I felt an if statement would be easier to work with than nested conditionals.
If you're eventing, just use Call Common Event to call the second common event at the end of the first one. No need to resort to script calls to do something you can already accomplish via eventing.
Reserve Common event makes that common event prepared for execution. For example, we are in a scene and you called the reserve common event function, you need to go back to Scene_Map or return to the map before the common event even executes.

--

I have a question. Can formulas be done in a note tag to reserve conditions? For example, I have this

class Game_Battler < Game_BattlerBase alias milena_item_apply item_apply #-------------------------------------------------------------------------- # * Apply Effect of Skill/Item #-------------------------------------------------------------------------- def item_apply(user, item) milena_item_apply(user, item) # this is where I would like the check to happen, in my case, if I want # the condition to be a.atk * 4 - b.def * 2 if item.note =~ /<>/ # proper note tag call? endendwhat I want is for the note tag to check if the formula calculation in the skill is exactly

a.atk * 4 - b.def * 2
Well, the whole point is that I didn't want to have turn a simple If statement into nested Conditionals just to call a single common event, but if I must, I must.
@Milena

Yes, it is possible.

But if you want to check for exact formulas, you don't need note-tags for it, nor regex.

A simple check like this will do:

if item.damage.formula == "a.atk * 4 - b.def * 2" #do stuffs hereendNote that this expects the spaces between the words/symbols/numbers to be exactly like in the check, so in this case you must put a space after every word/symbol/number in your damage formula except the last word/symbol/number. The check is also case sensitive but that should not be a problem anyway, I guess.If you want this for specific skills only, than you will need a note-tag check too.

A simple check like this:

Code:
if item.note.include?("<form note check>") && item.damage.formula == "a.atk * 4 - b.def * 2"  #do stuffs hereend
This will only do the stuffs inside the check if the item/skill got the <form note check> string in it's note-field.
@TaranAlvein:
You can look up how the game interpreter handles the "Call Common Event" command. As it was already mentioned, your command only reserves the common event for execution and is used for items/skills that invoke a common event after they were executed.

When working with event script commands, you can substitute the "Call Common Event" command with this code:

@params = [Common Event ID]

command_117

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