Passive "Attack" Editor

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
<skill change>
id: ID of active magic force
chance: 1
condition: a.skill_equipped?(ID of passive magic force)
</skill change>

then add this script

class Game_Battler  def skill_equipped?(id)    return false unless self.actor?    return self.actor.equipped_skills.include?(id)  endendbtw, I added the script since I think checking .equipped_skills directly on the notetags will cause an error if an enemy attacks... so we need to check first if the user is an actor
 
Last edited by a moderator:

Senshu

Veteran
Veteran
Joined
Nov 29, 2013
Messages
92
Reaction score
6
First Language
English
Primarily Uses
class Game_Battler

  def skill_equipped?(id)

    return false unless self.actor?

    return true if self.actor.equipped_skills.include?(id)

    return false

  end

end
Add the script where? to Tsuki's script? what line?

Edit: I added the script (separately, under materials) but now I get this error:

"Script 'attack skill change' line 271: NoMethodError occurred.

undefined method 'equipped_skills' for #<RPG::Actor:0xa41e948>"
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
just add it on a blank script
 

Senshu

Veteran
Veteran
Joined
Nov 29, 2013
Messages
92
Reaction score
6
First Language
English
Primarily Uses
Alrighty, I did so and got that error, though I don't really know what's wrong, all that's on that line is : eval(@condition)
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
oh wait, try to replace self.actor with just self

meaning this line: return true if self.actor.equipped_skills.include?(id)

should be 

return true if self.equipped_skills.include?(id)
 
Last edited by a moderator:

Senshu

Veteran
Veteran
Joined
Nov 29, 2013
Messages
92
Reaction score
6
First Language
English
Primarily Uses
I'm still getting that error >: here is what your script looks like now

class Game_Battler
  def skill_equipped?(id)
    return false unless self.actor?
    return true if self.equipped_skills.include?(id)
  end
end
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
just to be sure, you still have Yami's Equip skill right?

w8, I'm checking it out, but I cannot access the script right now, it won't load...
 

Senshu

Veteran
Veteran
Joined
Nov 29, 2013
Messages
92
Reaction score
6
First Language
English
Primarily Uses
Tried to work spoiler tags, but it didn't work out >>;
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Put in in a spoiler tag please... don't ever put a wall of text on a post without using spoiler tags

I see... try this:

class Game_Battler
  def skill_equipped?(id)
    return false unless self.actor?
    return true if self.equip_skills.include?(id)
  end
end
 

Senshu

Veteran
Veteran
Joined
Nov 29, 2013
Messages
92
Reaction score
6
First Language
English
Primarily Uses
This is the error I get, I have no idea what's causing it, I put in the script like you told me, but I don't think it's getting anywhere >:

Error.png
 

kerbonklin

Hiatus King
Veteran
Joined
Jan 6, 2013
Messages
1,726
Reaction score
275
First Language
English
Primarily Uses
RMMV
Wait how is this still going on? The suggestion I gave was so simple... All you needed was Tsuki's Skill Change script and any ordinary Passive-Skill/State script...

No offense.

Why don't people listen to me? Q_Q

Edit: It just may be an incompatibility with that Skill-Equip script you're trying. Is that necessary to your game? Or were you just using that to get this whole thing to work? Cause if it's the later, then just use any ordinary passive-skill/state script. Yanfly has one, Formar has one I think, Neonblack has one. OR JUST USE BOTH! :D  *Plays that "Old El Paso" taco commercial music*
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
This is the error I get, I have no idea what's causing it, I put in the script like you told me, but I don't think it's getting anywhere >:
That error says it cannot find equipped_skills for actors, which was what I wrote on the older suggestion...


I already posted a new script suggestion 4 hours before you posted, and it has nothing called equipped_skills in that, so the error is not from my suggestion anymore...


make sure you use the new one, and of course, make sure you remove the older one and also remove Fomar's script suggestion


@Ker - He can't seem to get the condition right, which is why I'm helping him on it...
 
Last edited by a moderator:

Senshu

Veteran
Veteran
Joined
Nov 29, 2013
Messages
92
Reaction score
6
First Language
English
Primarily Uses
Just in case I moved something or whatever, i'm going to refresh the scripts completely, copy and past them and start them fresh. I know I don't know anything about scripting, but at the very least I know I can follow what i'm told to do, So i'm really sorry if I am screwing something up, and again, thank you for going through this trouble, and as for it being nessisary, I find it nessisary for making each class useful, and diverse, and once I can get it finished, and learn to use it properly,I can start on things like map and story.

@ Ker

And atually the script you directed me to is a really big help, and almost everything is set up except we can't seem to get the state applied on battle start only when the skill is equipped and without an error

Edit: Ok, after re-pasting my scripts, I'm not getting an error anymore, but the passive is still not applying itself at battle start

Edit 2: Also, because I should probably give you any and all information, here are the 2 magic force skills I have made:

Equipable: ID: 3, Skill Type: Passive, Scope: User, Occasion: Only in battle, Success: 100%, Hit Type: Certain Hit

Attack Replacement: ID: 4, Skill Type: None, Scope: One Enemy, Occasion: Only in battle, Success: 100%, Hit Type: only in battle
Damage Formula: (a.atk * 4 - b.def * 2) + (a.mat * 2 - b.mdf), Add state: Normal attack 100%

Normal Attack Notes: ID: 1
Skill #1 will be used when you select
the Attack command.

<skill change>
id: 4
chance: 1
condition: a.skill_equipped?(3)
</skill change>

RESOLVED!!!!!!

Thank you so much for helping me, I'm not sure what changed really, but now it's working like a charm, and it's all thanks to you guys, I can actually get on with making my game now. Thank you so so much for all your help, time, and patience!

 
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
It wasn't supposed to apply anything at battle start (at least if you followed everything since I told you to only use the Equip skill and Skill change scripts), it's just a passive ability... then you simply check if it's equipped using the skill change script... :)


anyway, glad that it's resolved now... and sorry if I haven't got to reply, I was so tired and fell asleep... :)
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,977
Members
137,563
Latest member
cexojow
Top