Jump to content
raymi100

"Sleep Talk" skill like in Pokemon?

Recommended Posts

Lol! I just found and installed this script last week:

 

http://www.rpgmakercentral.com/topic/20886-doublex-rmvxa-confusion-edit/

 

You can easily make a Sleep Talk skill with it  :D

That's great! Could you possibly explain to me how I could? My brain isn't functioning properly tonight XD

Edited by raymi100

Share this post


Link to post
Share on other sites

Actually I lied  :blink: I thought you could add the note tags to classes, too, but you can only add ti to states. Still, it's a start. For any state that has restrictions

for attacking you put this in the notes: <confusion edit> It will make the affected battler use random skills. However, it would apply to anyone in that state, not just a specific actor. Perhaps if you ask Double X, they'll be able to edit it so you can make a notetag for a skill or an actor.

  • Like 2

Share this post


Link to post
Share on other sites

Actually I lied  :blink: I thought you could add the note tags to classes, too, but you can only add ti to states. Still, it's a start. For any state that has restrictions

for attacking you put this in the notes: <confusion edit> It will make the affected battler use random skills. However, it would apply to anyone in that state, not just a specific actor. Perhaps if you ask Double X, they'll be able to edit it so you can make a notetag for a skill or an actor.

While I don't think I get what the OP wants, these 2 scripts might help as well:

DoubleX RMVXA State Triggers

DoubleX RMVXA Item Triggers

Share this post


Link to post
Share on other sites

Sleep Talk is a skill that allows the character to randomly use attacks while asleep. Just having the skill automatically triggers the random attacks. For it to work like that, there'd have to be a way for the system to check if the battler has "Sleep" and then check if they have the Sleep Talk skill. If both of those return true, the battler will randomly use their other skills. I'm no scripter, but it seems it would require the Confusion Edit script and another script or a edit of the base code to alter how the Sleep State processes.

  • Like 1

Share this post


Link to post
Share on other sites

Sleep Talk is a skill that allows the character to randomly use attacks while asleep. Just having the skill automatically triggers the random attacks. For it to work like that, there'd have to be a way for the system to check if the battler has "Sleep" and then check if they have the Sleep Talk skill. If both of those return true, the battler will randomly use their other skills. I'm no scripter, but it seems it would require the Confusion Edit script and another script or a edit of the base code to alter how the Sleep State processes.

Yep, exactly what lonequeso said, that's what I'm trying to do~

Share this post


Link to post
Share on other sites

Sleep Talk is a skill that allows the character to randomly use attacks while asleep. Just having the skill automatically triggers the random attacks. For it to work like that, there'd have to be a way for the system to check if the battler has "Sleep" and then check if they have the Sleep Talk skill. If both of those return true, the battler will randomly use their other skills. I'm no scripter, but it seems it would require the Confusion Edit script and another script or a edit of the base code to alter how the Sleep State processes.

In this case, assuming the Sleep Talk skill won't change from being appeared to being gone(or the reverse) from a character during battles, the confusion edit script can be used with the state triggers script to implement this:

1. Add <confusion edit> to a state with no restriction and remove by damage(just like a sleep state)

2. Add <add state trigger: stc4, sta4> to an ordinary sleep state, where stc4 and sta4 are these respectively:

    def self.stc4(battler)
      return battler.usable?($data_skills[sleep_talk_skill_id])
    end
    def self.sta4(battler)
      battler.remove_state(sleep_state_id)
      battler.add_state(confusion_state_id)
    end
  • Like 1

Share this post


Link to post
Share on other sites

 

Sleep Talk is a skill that allows the character to randomly use attacks while asleep. Just having the skill automatically triggers the random attacks. For it to work like that, there'd have to be a way for the system to check if the battler has "Sleep" and then check if they have the Sleep Talk skill. If both of those return true, the battler will randomly use their other skills. I'm no scripter, but it seems it would require the Confusion Edit script and another script or a edit of the base code to alter how the Sleep State processes.

In this case, assuming the Sleep Talk skill won't change from being appeared to being gone(or the reverse) from a character during battles, the confusion edit script can be used with the state triggers script to implement this:

1. Add <confusion edit> to a state with no restriction and remove by damage(just like a sleep state)

2. Add <add state trigger: stc4, sta4> to an ordinary sleep state, where stc4 and sta4 are these respectively:

    def self.stc4(battler)
      return battler.usable?($data_skills[sleep_talk_skill_id])
    end
    def self.sta4(battler)
      battler.remove_state(sleep_state_id)
      battler.add_state(confusion_state_id)
    end

I'll give that a shot and let you know how it goes!

  • Like 1

Share this post


Link to post
Share on other sites

Some amendments:

1. Add <confusion edit> to a state with restriction attack enemy and remove by damage(just like a sleep state)

2. Change stc4 to this:

    def self.stc4(battler)
      skill = $data_skills[sleep_talk_skill_id]
      return false unless battler.usable?(skill)
      battler.enemy? || battler.actor? && battler.skill_learn?(skill)
    end
  • Like 1

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted