Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Need help with Auto-Life script
darklordzion
post May 5 2011, 02:02 PM
Post #1



Group Icon

Group: Member
Posts: 3
Type: Developer
RM Skill: Beginner




This is my first post so I am sorry if its in the wrong section. First I am trying to make an auto life skill using Tankentai SBS with ATB script.
The problem I am having is with Script 'Animation Overlay Patch' line 177: NameError occurred uninitialized constant Scene_Battle::Rate .
This is the line of code being mentioned.
CODE
#--------------------------------------------------------------------------
  # ++ Auto Resurrection - Animation
  #--------------------------------------------------------------------------
  def resurrection(target)
    for state in target.states
      for ext in state.extension
        name = ext.split('')
        next unless name[0] == "A"
        wait(50)
        name = name.join
        name.slice!("AUTOLIFE/")
        target.hp = target.maxhp * name.to_i / 100
        target.remove_state(1)
        target.remove_state(state.id)
        target.animation_id = N01::RESURRECTION
        target.animation_mirror = true if $back_attack
        @status_window.refresh
        wait($data_animations[N01::RESURRECTION].frame_max * RATE + 1)  <---- this is line 177
      end  
    end
  end
end

Can anyone help me with this? I have tired hard to figure this out myself and looking though many forums. Thank you.

This post has been edited by darklordzion: May 5 2011, 04:42 PM
Go to the top of the page
 
+Quote Post
   
darklordzion
post May 8 2011, 12:28 PM
Post #2



Group Icon

Group: Member
Posts: 3
Type: Developer
RM Skill: Beginner




Bump
Go to the top of the page
 
+Quote Post
   
Adhiesc
post May 26 2011, 01:59 AM
Post #3



Group Icon

Group: Member
Posts: 1
Type: Musician
RM Skill: Skilled





class Sprite_Base < Sprite

#--------------------------------------------------------------------------
# constants
#--------------------------------------------------------------------------
RATE = N01::ANIMATION_RATE <<< Line 212
Go to the top of the page
 
+Quote Post
   
darklordzion
post May 27 2011, 11:43 PM
Post #4



Group Icon

Group: Member
Posts: 3
Type: Developer
RM Skill: Beginner




Is that the fix or did you have a problem with that line?
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 23rd May 2013 - 04:44 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker