Notice: fwrite(): Write of 59 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 44 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96
[XP] BattleStart!
Main Menu
  • Welcome to The RPG Maker Resource Kit.

[XP] BattleStart!

Started by darkserge000, March 04, 2012, 10:05:53 AM

0 Members and 1 Guest are viewing this topic.

darkserge000

#=========================================================#==============================================================
#module HMM
#Note: Create a [u]BattleStart! image[/u] and save it to your Graphics/Pictures
#==============================================================
#Ativate the animated image
  READY = true
#Temp
  RDFADE = 40 

  R_TRANSITION = "Eau"
end
    $hmmscript = {} if $hmmscript == nil
    $hmmscript["Battle_Start!"] = true
#===============================================================================
# Scene_Battle
#===============================================================================
class Scene_Battle
alias  hmm17_main main
def main
    Graphics.transition(30, "Graphics/Transitions/" + HMM::R_TRANSITION)
      Graphics.freeze
        if HMM::READY == true
          @ready = Sprite.new
          @ready.bitmap = RPG::Cache.picture("BattleStart!")
          @ready.visible = false
          @ready.y = -200
          @ready.zoom_y = 3
          @ready.z = 999
          @fade = HMM::RDFADE
          @ready_on = true
        end
       
hmm17_main 
  if HMM::READY == true
    if @ready != nil   
      @ready.dispose
      end
    end
end

alias hmm17_update update
def update
  if HMM::READY == true
    if @ready_on == true   
      for i in 0..80
        if @ready != nil and @ready.zoom_y > 1
          @ready.y += 10
          @ready.zoom_y -= 0.1
          @ready.visible = true
         
        elsif @ready != nil and @ready.zoom_y <= 1 and @ready.opacity > 250
          @ready.y = 0
          @ready.zoom_y = 1
          @fade -= 1
          end
            Graphics.update
end
            @ready_on = false
          end
         
if @fade <= 0 and @ready != nil
  @fade = 0
end

  if @fade <= 0 and @ready != nil
    @ready.opacity -= 7
    @ready.zoom_y += 0.2
    @ready.y -= 50   
  end
 
if @ready != nil and @ready.opacity <= 0
  @ready.dispose
  @ready = nil
  end
end

hmm17_update
  end
end

pacdiggity

1. Who wrote this?
2. If it wasn't you, then did you get permission to post it?
3. What does it do?
4. How does it work?

I can figure out 3 & 4 for myself, by looking at the script. But most people aren't scripters, therefore wouldn't be able to do that.
it's like a metaphor or something i don't know

AbsoluteIce

#2
You can't post completed scripts here.
Not to be a minimod or anything, but.. Read the rules first?

http://rmrk.net/index.php/topic,19760.0.html

Instead, post it here for RMXP :
http://rmrk.net/index.php/board,111.0.html

To Pacman :
Mmkay, brah.
なんでやねん

pacdiggity

I was going to move it, Ice, once I confirmed that he was allowed to post it and gave us some information.
it's like a metaphor or something i don't know