Hi everyone, I'm quite new to this, and am bumping into a few things I can't quite figure out, hopefully someone can help me.
What I would like to do is fairly simple (I think), I created a new skill to add to a weapon and I want that skill to replace skill#1 when the player selects the attack command whilst equipped with that weapon.
I've tried copying what skill 1 does and adding "Skill #129 will be used when you select the Attack command" (without the quotation marks) to the skills notes, but it doesn't work. I assume that is because it clashes with the basic attack skill, my problem is that I don't know how to make it so that the new skill overrides the basic attack without deleting skill#1's notes.
To be honest, I don't even know if just adding something to the notes will work anyway, I just assume it does.
Could anyone help me out here?
Thanks in advance.
Weapons changing basic attack.
● ARCHIVED · READ-ONLY
-
-
Here's the details:
http://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/weapon-attack-replace/
Here's the script:
https://github.com/Archeia/YEARepo/blob/master/Gameplay/Weapon_Attack_Replace.rb -
Thanks very much for the links. I used them both but unfortunately I can't seem to get it working.
I followed the instructions as presented, putting this
$imported = {} if $imported.nil?
$imported["YEA-WeaponAttackReplace"] = true
between 'Materials' and 'Main' in the script editor then added
module YEA
module REGEXP
module BASEITEM
ATTACK_SKILL = /<(?:ATTACK_SKILL|attack skill):[ ](\d+)>/i
end # BASEITEM
module WEAPON
ATTACK_SKILL = /<(?:ATTACK_SKILL|attack skill):[ ](\d+)>/i
end # WEAPON
end # REGEXP
end # YEA
after it. I have also added <attack skill: 129> in the weapon's notes, but it still uses the basic attack.
I'm sure I'm missing something, but I really don't know what it is. Should I have just copy/pasted that entire script where I started to the end, leaving nothing out?
I'm afraid I am very unfamiliar with these scripts and how to interpret them, I don't know how much I'm supposed to use and which parts to leave out. -
When a script requests to paste between "materials and main," they mean the whole script, not lines from the script. You can right-click somewhere between materials and main, then select "insert," then everything from the script just goes into the text box to the right. The second link (the Github one) provides the entire script, and you'll need to copy everything from Line 1 to Line 311, not just those short sections you mentioned.
Here's a tutorial from the RPG Maker blog on how to use scripts. -
Alrighty, thanks for clearing that up. Just tested it and it worked perfectly! Greatly appreciated, both of you.
And thanks for the tutorial, you've just covered the next request I was going to make :)