Gluttony

Villager
Member
Joined
Mar 26, 2012
Messages
20
Reaction score
0
First Language
English
Primarily Uses
This is probably one of the noobier questions that'll ever come along here, but please bear with me, as I've never used scripts or coded before and I honestly don't know what I'm doing:

A member in another topic here pointed me towards a script that seems to accomplish what I was trying to do in my game (create 2-handed weapons), but I don't know how to actually make use of the script now that I have it.

If anyone's willing to help, it's probably best to assume I don't know anything about scripting. Because I don't really.

The script itself is here: http://www.rmxpunlimited.net/forums/topic/7838-cursed-weapons-unequippable-script-for-rmxp/page__p__67404#entry67404. The three things I'm most concerned with are that it works, that I'm giving proper credit (I don't know if that's in the script somewhere or I have to manually put it somewhere myself), and that I'm only using the Two-handed weapons/gauntlets part of the script (if I understand correctly, the other features can be turned off so that I only use the parts I want).

Again, sorry for not knowing how to do all this...
 

Yato

(aka Racheal)
Veteran
Joined
Mar 17, 2012
Messages
825
Reaction score
347
Primarily Uses
Let's see if I can help.


-The first step with any script is it goes just above Main. I'm assuming you're not using any other scripts, so we don't have to worry about script order.


-For turning off unused features, there is a section in the script from lines ~123 to ~169. Make sure they are all set to false except the one you want.


-The script portion you're using starts at line ~846. There is one bug noted in that section, though it seems minor and visual.


-As far as setting it up, you simply need to list the IDs of weapons that are two-handed into the array on line ~876 called TWO_HANDED_IDS. So if the first three weapons in your database were two-handed, you would go TWO_HANDED_IDS = [1, 2, 3] Same goes for the gauntlet set-up if you're using that.


As to if it works, it would appear so? But I no longer have XP to test it with. And for credit, it is in the script at the top (ForeverZer0), but seeing as how not everyone can access the scripts, I would suggest keeping a separate credits file.


Any other questions or anything I missed, feel free to shoot my way.
 
Last edited by a moderator:

Gluttony

Villager
Member
Joined
Mar 26, 2012
Messages
20
Reaction score
0
First Language
English
Primarily Uses
Excellent, it seems to work (and the bug that's mentioned doesn't actually seem to happen).

Where would I put a separate credits file?
 
Last edited by a moderator:

Gluttony

Villager
Member
Joined
Mar 26, 2012
Messages
20
Reaction score
0
First Language
English
Primarily Uses
Oh, wait, I'm getting a pretty bad error. After fleeing from a battle the following error message occurs:

Script 'Main' line 1137: NoMethodError occurred.

unidentified method 'any?' for nil:NilClass

And then the game closes.
 

Yato

(aka Racheal)
Veteran
Joined
Mar 17, 2012
Messages
825
Reaction score
347
Primarily Uses
I generally keep a credits txt file in the main folder of the program. As far as the error, I think I might know what's causing it? I have a question first. Does it only occur when you have no armor equipped?
 

Gluttony

Villager
Member
Joined
Mar 26, 2012
Messages
20
Reaction score
0
First Language
English
Primarily Uses
When it was occurring both of the 2 party members had armor, shields, and weapons, and one had an accessory. Neither had a helmet.

...But now the error isn't happening at all. And I didn't change anything.
 

Gluttony

Villager
Member
Joined
Mar 26, 2012
Messages
20
Reaction score
0
First Language
English
Primarily Uses
New, important issue that I've noticed (and would like help with if possible). Single-use items like potions no longer disappear from my inventory when I use them. They don't immediately indicate that they've had any effect either, but in fact can be used repeatedly, taking effect as many times as they were clicked on once the item menu is closed. This is definitely not how it used to work.

(This problem only occurs outside of combat)
 
Last edited by a moderator:

Latest Threads

Latest Posts

Latest Profile Posts

Redesigning characters after such a long time feels great. Makes me excited to work on an old game again.
Phone menu to replace main menu WIP:
It's been that long since I wrote a plugin, it took me 4 attempts to realize it's != rather than #. In a 40-line plugin, 20 of those lines being documentation!
Disk Check Plugin - Running on Linux:
RMMV-Game-Mint.png
workin on some graphics for my game. was originally planning on doing a cartoony style for the town but I might stick with this instead

Forum statistics

Threads
116,095
Messages
1,095,709
Members
151,469
Latest member
will-o-wistful
Top