Falcao Pearl ABS skill not casting for some reason?

Oh my god, so I typed out this massive thing (all organized with pictures) about my problem

and accidentally moved off the page and now it's gone /sigh

Basically, Valkymie here again with another frustrating problem.

I wanted to use Falcao Pearl ABS v3 script to make a skill the player could use to stun enemies, and also trigger events. Easy, right?

Well I sent my programmer brother a copy of my game, and continued to work on adding new maps, etc.

He finishes setting it up, and sends me instructions on how to get it to work on my end. I follow them correctly, but when I start the game up, it doesn't work.

I sent him my current version of the game, he can't get it to work either.

He sends me the older version that he had, and when I test it, the skill casts correctly, even triggers the labeled events.

so I COPY-PASTE his Pearl scripts and delete mine, and test it. Nothing.

I thought maybe it was due to the fact that I had added an 8-directional script and deleted a lighting script. (Running out of ideas at this point)

So i add/delete them from the older version, but it still works.

So basically I have no idea what could have changed in my newer version, that won't let me cast this skill in game even though I copied the older version's scripts and events.

I really don't want to have to go back to this older version and add in all of the maps, puzzles, events, etc that I've made since I sent him the file

So if anyone has a clue about what else could be causing the skill to not work (if the scripts, events, skill itself, and class are all the same..)

I'd greatly appreciate it, as I am very sleepy, and very frustrated.

Note: Let me know if you need screenshots of anything and I'll edit them into here if I'm still awake, or in the morning.

Note2: The older version also saves like instantly, whereas the newer file seems to take forever and "not responding" shows up while it does it.

Idk if this is related at all or another problem entirely. I just dont know.

Edit: Just in case, since I'm going to bed

The script I used - http://www.rpgmakervxace.net/topic/8809-falcao-pearl-abs-liquid-v3-update/

The changes my brother made + other screenshots - http://imgur.com/a/dAKrO
I've moved this thread to Script support. Please be sure to post your threads in the correct forum next time. Thank you.


Please post a link to the scripts you're using (do not post scripts you got from the internet here).


If your brother's script is not uploaded to the internet somewhere else, then you can paste it here - but please with code- and spoiler tags.
Ahh thank you for moving it, I must have been in the wrong forum when i accidentally backed out of the post

My brother didn't write the original script, he just made a few slight edits so that it would do the things I needed it to

Should I just post a link to where I got the original script? and then add the screenshots I made when I first tried to post this thread, showing what it was he changed?

Sorry, I'm still new to these forums, so I'm not sure what you mean by "do not post scripts you got from the internet here" (as in, do not re-post the whole script, or do not even link to them) Also very sleepy still

Thank you for your patience
yes, you should add a link - and if your brother made a few minor edits, you should show the lines he changed.


What we do not want (but some people still do) is posting a script of several hundred lines inside your post - you should link to the site where you got the script if that is possible at all.


So you did everything right with your edits to the first post.
First of all, what exactly are you trying to accomplish here? Are you trying to make Actor_1 invoke skill automatically during event and the skill is not invoked successfully?

On your screenshot, event EV030:

------------------------------------------------------

script => $game_party.set_skill(1,3,:R)

              p $game_actors[1].assigned_skill

Erase Event

-------------------------------------------------------

I tried the above script. The skill is set successfully. But, there is no skill invoked by the Actor_1. And then I changed the above script with...

---------------------------------------------------

script => $game_party.set_skill(1,3,:R)
               $game_player.use_skill(3)

Erase Event

---------------------------------------------------

Now, the party leader use the skill automatically when the event is autorun.
The 'set_skill' method just equips the skill on the player, but it won't use it automatically.


You should use the move route script calls and not the regular event script calls for using skills in cut-scenes (and for anything else).


In the move route command, you select the event (or player) just like you would for a regular move route, and simply use a script call there to use your tools (use_skill, use_weapon, etc).


And keep in mind, that if the player can not use the skill for any reason (no MP/TP for it, it's on cooldown, etc), it will NOT be triggered. So, make sure that your player gets enough MP/TP to use it, and that it's not on cooldown before you trigger it in your cut-scene.


Also a thing to note about tool triggered events...


Unless you make a second page for these events, you won't be able to re-trigger them again until you change the map and come back.


Another thing, it's not 003, it is simply 3. Get rid of the extra zeros.
@Moogle_X: I wanted Actor 1 to be able to use this skill whenever the hotkey (R in this case) was pressed, that, if used on an enemy chasing her, would stun them. If used on certain events labeled with <start_with_skill: 003>, it would start them.

I changed the script as you suggested, but nothing happens when I press the hotkey, still.

@Sixth: I'm not trying to make it used in a cutscene, though, but in regular gameplay. Like walking around and being able to use it as you would in any action battle game.

Example: being able to swing a sword at anytime, doing so to an enemy hurts them, doing it to bushes clears them away. Same concept, but my character uses magic.

I tried getting rid of the extra zeros, but pressing the hotkey still doesn't do anything in my version

Like I said in the original post, everything works in the older version of my game that my brother had. the 003 works, the skill casts whenever i press R, the events trigger when I use the skill on it.

It's just that it doesn't work in my current version of the game, and I would like to know what could cause that if the scripts and events are set up the same exact way.
Then you should re-check your key settings.

Unless your brother messed up something in the code itself, the ABS script works perfectly in this regard, I am using it for my wannabe IGMC entry too.

And speaking of which, what's the purpose of that 'BLANK' constant? It is not needed at all, and might even mess up Falcao's input check methods.

If you want to disable a tool trigger key in the settings, simply set their key settings to 'nil' (without the apostrophes), and add this snippet below the ABS scripts in the script editor:

module PearlKey def self.press?(key) return false if key.nil? return @press[key] end def self.trigger?(key) return false if key.nil? return @trigger[key] endendRemove that 'BLANK' constant your brother put in too from the PearlKey module. I wouldn't be surprised if that would be the source of the issue...Btw, why would you use '003' instead of a simple '3'? It is possible that both of them are working, I haven't tested it, but one of them takes 2 times less effort to type in, so there is really no point in putting those extra zeros there.
Then you should re-check your key settings.

Unless your brother messed up something in the code itself, the ABS script works perfectly in this regard, I am using it for my wannabe IGMC entry too.

And speaking of which, what's the purpose of that 'BLANK' constant? It is not needed at all, and might even mess up Falcao's input check methods.

If you want to disable a tool trigger key in the settings, simply set their key settings to 'nil' (without the apostrophes), and add this snippet below the ABS scripts in the script editor:

module PearlKey def self.press?(key) return false if key.nil? return @press[key] end def self.trigger?(key) return false if key.nil? return @trigger[key] endendRemove that 'BLANK' constant your brother put in too from the PearlKey module. I wouldn't be surprised if that would be the source of the issue...Btw, why would you use '003' instead of a simple '3'? It is possible that both of them are working, I haven't tested it, but one of them takes 2 times less effort to type in, so there is really no point in putting those extra zeros there.
The blank constant was a null ASCII character that as the player, you wouldn't be able to press in-game. So basically to disable certain menus/weapon/follower attack etc without having to change much else to the script

by "key settings" I assume you mean in Pearl Battler settings, so I changed the "BLANK"s to "nil"s, deleted the blank constant from Pearl Kernel, added in your script edit, and I get "undefined method 'nil' for PearlKey:Module"

am I supposed to add something in elsewhere? or put something in the wrong spot?

Anyways I used 003 because that's what my brother said to do, plus the skills tab in the database lists them all as three digits, so I figured it would be "more likely to work" if I used the exact layout of number that it was shown to have /shrug

both 003 and 3 work on the older version of the project, but neither do on the newer version
The snippet I posted must be below the "- Pearl Kernel" script, in a separate slot (or you can just copy/paste it at the end of the Kernel script too).


This is how a disabled tool key should look like in the "- Battler Settings" script:

Weapon = [nil, 'J']I just tested this, and it works for me without any errors. As long as the key is set to 'nil' the player can't trigger the tool at all.
Basically, if you have put my snippet at the right place, it should not even be possible to get the error you got. o.o


I don't know much about these ASCII keyboard codes, but I know that on my older laptop, 2 of these keys were constantly "pressed" without any player input, and prevented me from using some of these keyboard scripts. So, I think, it depends on the PC and keyboard too sometimes.
Hmm my Battler Settings looks different. Do we have different versions of the script or something? (mine says v3)

Weapon = [PearlKey::nil, ''] # Weapon usageBut I put the snippet where you said to (separate slot right underneath pearl kernel

I still get that error.

Personally I don't think the ASCII is doing it, since when I test on the older version of the game, it works there, and I'm using the same computer to test either version of the game.

Idk though, I'm not that experienced with rpgmaker. All i know is that the older version of my game, it works, but the newer version (which as far as i'm concerned I only added maps and events to) it doesnt

I just don't want to have to waste time adding all those maps and events back in to the older version, but I think I may have to :s
That's why you get that error.


You must remove the 'PearlKey::' prefix from there. It is simply 'nil', like in my example.
*Slams head on desk*

okay error is gone now lmao I'm sorry

Newer version of my game still does nothing when I press the skill's hotkey though 🙁
Which custom scripts are you using exactly? Placement is important. Show me a list of them, in the order you use them.


Also, have you tried to exchange the data between the old and new project the other way around?


So, instead of copying the script from the older version project, copy your new maps from your newer project version to the old one. See if it works that way.
Here's the order of scripts, Pearl is on top. The order is also the same between both the old version of the game and the new

Spoiler
[IMG]http://i.imgur.com/XhVjz3Z.png[/IMG]
I tried deleting all of the new version's Pearl scripts, and copy and pasting the old version's pearl scripts in their place, with the same order. That didn't work.

I copied Mog 8 directional, Yami Stamina Bar to the -old- version, and deleted Khas Lighting Effects. (those were any other script changes i had made since sending my brother the game files. But the skill still worked on the old version. So i'm really baffled as to what could be causing this.

And yeah copying all my new maps and stuff to the old one was what I was hoping to avoid. (A "waste of time") but I think that's the only solution at this point.

Thank you for trying to help, btw
It's actually easy to copy your new stuffs. Head into the Data folder of your new project, copy everything in there except the Scripts file, and paste it into the old project's Data folder. You are done.


Note that the old project must be closed before you paste your data from the newer one.


After the copy/paste job, open the older project and be amazed! 😀
Oh my God I thought I was going to have to literally re-do everything

I backed up everything and tried copying all the data files except scripts, and it made the older version not work! one of them is the problem

so im gonna copy the files one by one and see which one does it

EDIT: ok i found it

it was the "skill" data file. No idea what was wrong with it but I copied everything but it, and it works perfectly

and I can move on with my life lmao

Thank you so much, again sixth
You are welcome!


If you make this game for the IGMC, you might want to get rid of a few bugs Falcao's ABS got. I just posted a patch which fixes all of the bugs I found so far in the topic you posted in your opening post (where you got the script). The less bugs, the better, right? 😛


I checked your dev site just now... You got some drawing talents for sure! o.o


Btw, do you make that game with your brother only? I'm just curious, because I am using the same ABS for my IGMC game, working on it alone, and it seems that I won't be able to finish it, regardless if I work 24/7 on it or not, lol.
Ah yeah I'm doing this project for IGMC hehe, I'll go check that patch out 🙂

Yeah I want to pursue character design as a career, so naturally that's my strong point. (As for maps and story, well /shrug, they'll be okay.)

I'm making the game by myself for the most part, my brother is doing the tough coding stuff like editing scripts and whatnot.

It's a rather tough contest, I hadn't really used RPGMaker before I started this project. So I spent a lot of time just learning basic things. Not to mention I didn't know about the contest until a week in, so I was behind everyone else. If I keep up with the schedule I made for myself, I -might- be able to finish in time hahaha. (I'm hoping I can finish the game a day or two before the deadline so I can get some friends to test run it)

Luckily I can draw relatively quickly as long as I maintain my motivation and don't let anything (tumblr/youtube/twitch/other games) distract me.

Just a few more maps left to make, the rest is just stitching everything together and maybe one or two more puzzles that I'll probably make my brother do to save time lmao.
But making puzzles is the best part of game making! ... Well, after the real coding, that is. And making epic boss fights, yeah!


To each their own, right? 😀


Yeah, it is a tough contest, and honestly speaking, a solo project got little chance of winning anything (judging on some screenshots on the contest site). But even than, I was never so close to making an actual game, a real one which is playable and doesn't look like a game from the '90s, lol.


Good luck with your game! Looking forward to play it (if you make it in time 😛 )!

Original thread: https://forums.rpgmakerweb.com/threads/falcao-pearl-abs-skill-not-casting-for-some-reason.43100/