raymi100 291 Posted April 7, 2016 Hi hi~ I was just wondering how I'd go about making a skill that selects a random skill known by the user, when the user is asleep. Like the "Sleep Talk" skill in Pokemon. http://bulbapedia.bulbagarden.net/wiki/Sleep_Talk_(move) Any help at all would be appreciated! Thanks in advance~ Share this post Link to post Share on other sites
lonequeso 1,921 Posted April 7, 2016 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 Share this post Link to post Share on other sites
raymi100 291 Posted April 7, 2016 (edited) 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 That's great! Could you possibly explain to me how I could? My brain isn't functioning properly tonight XD Edited April 7, 2016 by raymi100 Share this post Link to post Share on other sites
lonequeso 1,921 Posted April 7, 2016 Actually I lied 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. 2 Share this post Link to post Share on other sites
DoubleX 208 Posted April 7, 2016 Actually I lied 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
lonequeso 1,921 Posted April 7, 2016 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. 1 Share this post Link to post Share on other sites
raymi100 291 Posted April 7, 2016 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
DoubleX 208 Posted April 7, 2016 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 1 Share this post Link to post Share on other sites
raymi100 291 Posted April 8, 2016 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! 1 Share this post Link to post Share on other sites
DoubleX 208 Posted April 8, 2016 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 1 Share this post Link to post Share on other sites