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

looking for some info on 

DL::CPtr# AND.ptr
cant find any reference to DL::CPtr within my ruby library, and from what i can figure .ptr is similar to methods such as .to_i / .to_f but i also cant find what the hell it does .

Any help would be nice 🙂
I am currently learning to track on how to interchange the title screen's audio.

My first problem is that, I know how to change the cursor sound that would only be available to the title screen, although it becomes complicated and somehow gives me nothing but in zero and error.

I want the title screen to play a different cursor sound and confirmation sound, then goes back to the original cursor sound I indicated in the system.

How is this possible? Should I create a new script to just change it or re-edit the title scene?
Check the help file, Audio class section.

Code:
Audio.se_play('Audio/SE/name')
looking for some info on 

DL::CPtr# AND.ptrcant find any reference to DL::CPtr within my ruby library, and from what i can figure .ptr is similar to methods such as .to_i / .to_f but i also cant find what the hell it does .

Any help would be nice 🙂
If you can understand it, feel free to use it. http://rgss3doc.tk/en/full/DL/CPtr.html
I am currently learning to track on how to interchange the title screen's audio.
My first problem is that, I know how to change the cursor sound that would only be available to the title screen, although it becomes complicated and somehow gives me nothing but in zero and error.
Go to Window_TitleCommand and overwrite the cursor move/confirm functions:

  #--------------------------------------------------------------------------  # * Cursor Movement Processing  #--------------------------------------------------------------------------  def process_cursor_move    return unless cursor_movable?    last_index = @index    cursor_down (Input.trigger?🙂DOWN))  if Input.repeat?🙂DOWN)    cursor_up   (Input.trigger?🙂UP))    if Input.repeat?🙂UP)    cursor_right(Input.trigger?🙂RIGHT)) if Input.repeat?🙂RIGHT)    cursor_left (Input.trigger?🙂LEFT))  if Input.repeat?🙂LEFT)    cursor_pagedown   if !handle?🙂pagedown) && Input.trigger?🙂R)    cursor_pageup     if !handle?🙂pageup)   && Input.trigger?🙂L)    Sound.play_cursor if @index != last_index  end  #--------------------------------------------------------------------------  # * Processing When OK Button Is Pressed  #--------------------------------------------------------------------------  def process_ok    if current_item_enabled?      Sound.play_ok      Input.update      deactivate      call_ok_handler    else      Sound.play_buzzer    end  end
Change Sound.play_ok and Sound.play_cursor to Audio.se_play('Audio/SE/whatever').
thanks! now I can continue the ones I am currently making <3
Why can I not copy and paste vx scripts to an ace project by the name of the script (ie the whole thing at once)? 

and also I cannot copy my script data over from vx to ace and get it to work..I thought there was a way to convert the data file from rvdata to rvdata2?

I am working on an experiment.

Hi Little Yami...does that cost me $500 dollars too?

Edit-

I was wanting to copy all the base (RTP) scripts from vx to ace and see if other "add on" scripts would work from vx to ace if the base scripts were vx in the ace engine.?
Do you mean like the XP Ace thing?
If you can understand it, feel free to use it. http://rgss3doc.tk/en/full/DL/CPtr.html
Thanks.

I'll have a look over it and see if i can understand it 😀
hmm one more thing. Is there a way to access the weapons and armor's actual stats and change it in game?

Say for example:

Iron Sword = Attack:4

and I would be running an event like I will conjure the iron sword with magic and upgrade it to Iron Sword Lv. 2 or something like that. I want to change the actual attack of iron sword 6. In that, i added +2 to the amount of iron sword's attack.

The problem is this is doable with events and adding them in the database for every single level, but then the conditional branches will take too long, if the event would ever detect with item is to conjure in your inventory.
You would do that through $data_weapons and $data_armors. However, those are not saved when player progress is saved, so if you changed them, played a while and saved, then later reloaded the game, they would be back to what they originally were. You would have to change the save and load methods to include $data_weapons and $data_armors in the player's save file to overcome this.
- content removed-

nevermind, I got the answer to the ones I was about to ask.
Is there any way to check whether a sound effect is playing?
Here's a question - what kind of damage formula would I put for an item that heals more if the player's HP is lower? So say it was 60/80 - it would heal pretty low, but at 5/80 it would heal a lot more.
I'm having tiny issue getting a switch to properly work for two enemies that accompany a boss.

One enemy heals while the other uses status ailments after the boss drops to a certain level of health. No matter what I do, both enemies are activated, even if one of them gets defeated before the bosses health triggers the event.

What am I missing? It must be something small to ensure that one isn't activating its effect when defeated.
Here's a question - what kind of damage formula would I put for an item that heals more if the player's HP is lower? So say it was 60/80 - it would heal pretty low, but at 5/80 it would heal a lot more.
I'd be trying something like this:


b.hp < b.mhp / 4 ? 50 : b.hp < b.mhp / 2 ? 25 : 10


So if their hp is less than 1/4 of maxhp, it'll heal 50, otherwise if it's less than 1/2 of maxhp it'll heal 25, otherwise it'll only heal 10
Working on a simple scriplet so far. I am lost as to how can I access the usual item that is being used by the character.

My problems so far is how can I make a class that may determine if the array of item id that I indicated is being used or applied to the specific actor?

I thought it was on the Game_Battler or Scene_ItemBase but I am lost somehow.
You still need to provide a little more information. You say "the usual item that is being used BY the character" and then you say "if the item is being used or applied TO the specific actor"


So are you ONLY talking about battles, where an actor uses an item in a battle? And are you interested in checking what item an actor used, or what item was used ON the actor (where the actor is the target, and not the user)? Or are you talking about in AND out of battle, when an actor selects an item from the item menu (and again, is it JUST when they select an item, or is it when they have to select a target to use the item on)?
there is an array of items with effects:

e.g.

items_with_effects = [1,2,4]

what i wanted to do was that I wanted to make a class wherein:

 - if the player uses any of the items with their id as indicated on the array, then the actions would happen such as, teleporting on a certain area...etc.

My main problem is that how can I detect if the item with the indicated number is being used...

Edit: I am only wanting to apply this outside the battle.
Can you not just assign a common event to each item? When the item is used, the common event will be called.

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