Script call for player through?

Hi there, I apologize in advance if this isn't the correct area for this question to be...But


This is bugging me...
sleep.png



All I need is a script call to make the player through true or false..


I can't believe I can't find a result anywhere...


Is this possible? It has to be....


I'm trying to make the player through from a skill being used, which is why i need a script call for player, because if I make it through on the event page or the move route, it will just effect the skill. not the player.


I've also tried making a common event for player through with a switch, that didn't quite work as i wanted it to.


Thanks for your time and I appreciate it!
smile.png



Kudaaj-
I'm very confused, what is "player through?" It would also help to know what engine you are using, I'm going to assume ace  😉
Sorry i guess I should be a liitttle more descriptive...Yes I am using VX Ace,


and "Player through" is the move route where the event/player is activated to be able to move through anything that is an unpassable tile/event.


I'm needing this for XAS abs system.


Normally one would say "oh well, just simply hit the Set move route, select player, and then click Through ON"


But this isn't the case, I need a Script call for it so it activates player through when I use a skill. as the player is supposed to dash through a target, and then back to original location, where player through would be turned off.
Please link to the script (XAS), so that we can check it.


What you're asking for has several problems, which is why I strongly suggest you think of other ways to solve it.


"through on" affects more than just passability - it will block the player from interacting with almost anything on the map, including events. So usually you make the specific cause that you want to change into through to allow the player to pass and not the player itself. And setting through for the player would also allow him to move into the middle of a blocked area like the sea, not only allowing him to move through a wall.


If you really want to only allow the player to pass through map obstacles, then I suggest you simply make copies of all tilesets, set everything to passable on the copy of the tileset and use the change tileset command.


Because there is a second problem: if the ABS changes the handling of movement (and a lot of those ABS scripts do to allow for pixel movement), then any answer you get for the default Ace might not work on the XAS engine - that's why the link to check that script is important.
Here is the script




Here, allow me to put up a short video  of what I am trying to achieve        


https://youtu.be/gQ4Mjx6huZc


As you can see I am using a skill which is actually seperate from the character itself, so if the player is on "Through" he will simply go forward through his target, or any unpassable tile, including water/walls, etc, and return to his position quickly, the only reason why I need "Player through" is because I only want him alone to be able to go through these tiles with this skill use, he will be returning to the beginning position and i'm hoping to have a through on - false to turn it off so he won't continue to be able tto walk through things after his ability is complete.
@Kudaaj330: I did not ask you to post that script here, I asked you to give a link to the script - to the script's original website with all its explanations, it's updates and so on.


Reposting scripts is extremely problematic as this is often against the scripter's wishes and ignoring that some scripts need other resources or manuals from that side, or that sometimes the user has an outdated version because he never checked the original side for the bugfix he needs and so on.
I screwed up, I apologize, here is what I believe you are looking for..


Official Website of xrxs - XAS creator
http://xrxs.at-ninja.jp/


XAS Hero edtion ACE ver 0.6


updates and download


https://atelierrgss.wordpress.com/rgss3-xiderowg-action-system-xas/


XAS Script...I'm having issues finding the script, I think you would have to download XAS, itself, and use the demo


from the link above..
Bump, i'm still trying to figure out a script call for activating "Player through" and deactivating right after.
why doesn't the alternative approach with changing tilesets as I suggested above work?


as I explained there, you'll get to a lot of problems in the engine if you try to set the player to through, you should look for solutions where that is not needed.
It's not about walking through tiles in particular though, It's about using an ability that dashes through an enemy which is also "Same" as player, not below, or above. then returns to his position with a dash back. and the issue is, the player gets stuck on the enemy rather than going through it.


Edit: The player would be back at the exact same position he left at, then the player through would be deactivated, that's what I was hoping for anyways..


But..


If it can't be done, ill have to figure something out, its ok, thanks 🙂
If it is for such an effect, I can think of several ways around it that doesn't use player through.


How about this:


You turn the player transparent and use an event that has the same sprite as the player and is turned to through to make it appear the player dashes through the target. Upon completion of the scene, that event gets removed again and the player turns visible again.


It's a bit tricky as you either need to use a clone event script or some special event code to always have such a event ready for repositioning on all maps, but it would solve the problem.


Always remember during development: what the player sees in the game is not neccessary the same as what happens in the engine

Original thread: https://forums.rpgmakerweb.com/threads/script-call-for-player-through.61743/