Script help

Guys i need some help here i just want to simply lock a picture in my game so it won`t follow the player screen then i
found a script that i believe will help, but the things is i can`t fully understand what it says and they are some directions
how to do it but i can`t simply understand how it works, im just new about scripts so maybe u can explain me how
to do it, the script instructions is on the picture, guy please help me.
It's preferable to see the whole script tho...

As far as I know there are two way of using this "lock picture" script.
  1. Turn ON a switch before showing the picture (The ID is assigned under SWITCH_ID at line 60).
    I assume this way ALL pictures called after the switch is ON will be locked to the map and you can free them again by turning OFF the switch.

  2. Rename your picture file to include >>> [Fixed]
    I assumed it's something like this :
    1588139478733.png

    Using this way will permanently lock this picture file to the map.

The rest is talking about optional feature. I assume these two feature will ONLY affect pictures which are LOCKED to the map mentioned above, either through switch or that file name lock.
  • Grid Map Coordinate accessible through a designated switch (The ID is assigned under COORDINATE_SWITCH_ID at line 63).
    When you turned ON that switch, any coordinate input in your show picture will be treated as Map Coordinate instead of Screen Coordinate.
    1588139960163.png


  • Picture Layer accessible through a designated variable (The ID is assigned under Z_VARIABLE_ID at line 69).
    When you set the variable to corresponding number, any picture called afterward will be shown on designated layer number.
    Code:
    -2 = Behind parallax
    -1 = Behind map tile
     0 = No effect(?)
     1 = Above ground map tile
     2 = Above character

Example :
1588141141470.png


I'm just mentioning the important part which I only assumed. The detail is as written on the instruction.
Removed
so what kind of switch i will do? the common one? and how can
i assigned a ID under the switch ID? sorry im just new haha
pardon me, can you show me a example? btw im using Ace
Yes, as there's no other kind of switches and variables.

EDIT this part of the script and change the red circled number to your own ID.
1588141701945.png


1588141851346.png


I put the example above. It may looks different because it's RMMV, but it's still the same event as other RPG Maker.
Yes, as there's no other kind of switches and variables.

EDIT this part of the script and change the red circled number to your own ID.
View attachment 141392

View attachment 141394

I put the example above. It may looks different because it's RMMV, but it's still the same event as other RPG Maker.
you mean region? the f7 thing in the hot key? and which one should i put the id in the map picture too? hmmm alright ill gave a try about this thank you 🙂 i`ll let you know if something comes up. just a sec wait haha
Please remove the script from your post. Many scripters do not want others to post their scripts everywhere, because it means there are multiple versions floating around, and if they contain bugs, they can't be updated (and other reasons). When you DO post scripts, put them in code tags so the formatting is retained and the forum doesn't change any character sequences to emoji. If you want people to look at a script you're using, just post a link to the thread where the scripter originally posted it.

The instructions in the script are pretty clear, in your first screenshot. On line 60 you need to identify what switch you want to use. Then in the game, you need to turn on that switch prior to the Show Picture command, in order for it to lock to the map, then turn the switch off again when you Erase Picture, so future pictures won't be locked to the map.
This is what I did hahaha i really not good at this sorry if i`m kinda slow i don`t know if i will do that
all in just one event or two events
Please remove the script from your post. Many scripters do not want others to post their scripts everywhere, because it means there are multiple versions floating around, and if they contain bugs, they can't be updated (and other reasons). When you DO post scripts, put them in code tags so the formatting is retained and the forum doesn't change any character sequences to emoji. If you want people to look at a script you're using, just post a link to the thread where the scripter originally posted it.

The instructions in the script are pretty clear, in your first screenshot. On line 60 you need to identify what switch you want to use. Then in the game, you need to turn on that switch prior to the Show Picture command, in order for it to lock to the map, then turn the switch off again when you Erase Picture, so future pictures won't be locked to the map.

Yes i kinda understand it a but i will do it in the events? like the switch and the other one is the show picture? like i did in the screen shot?
Show Picture doesn't have to be in a parallel process - you only want to show it once, not repeatedly, 60 times a second. Just put it in the first event, after the transfer.

I suggest you give your switches and variables proper names. In two months when you need another switch, are you going to remember what switch 60 is for, if you just call it "2"?
Show Picture doesn't have to be in a parallel process - you only want to show it once, not repeatedly, 60 times a second. Just put it in the first event, after the transfer.

I suggest you give your switches and variables proper names. In two months when you need another switch, are you going to remember what switch 60 is for, if you just call it "2"?
Is this right? Or i`m missing something? Is this what you meent? sorry...
@StateAlchemist
from what I read in your posts, it seems that you are very new to the program and are still missing some basic concepts. Don't worry - no one is perfect at any beginning.
But it means that you'll have to learn that basics, and that is what tutorials are for.

Years ago I wrote tutorials exactly for people in your situation, you can find them linked in my signature.
The "Starting Point" will give you the basics of mapping and eventing and how to handle the editor, and the "How to use a script" should help you with the original problem of using and configuring that script.
Is this right? Or i`m missing something? Is this what you meent?

No, you don't need two events. You only need one. Put the Show Picture command at the bottom of the other commands in the other event.
like this? but where is the thing that said ID? And still it dose not lock the picture.

Original thread: https://forums.rpgmakerweb.com/threads/script-help.120798/