RPGMakerID
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Komunitas RPG Maker Indonesia
 
IndeksIndeks  Latest imagesLatest images  PencarianPencarian  PendaftaranPendaftaran  Login  
Per 2016, RMID pindah ke RMID Discord (Invite link dihapus untuk mencegah spambot -Theo @ 2019). Posting sudah tidak bisa dilakukan lagi.
Mohon maaf atas ketidaknyamanannya dan mohon kerjasamanya.

 

 [WIP]Ability Meter

Go down 
PengirimMessage
wltr3565
Senior
Senior
wltr3565


Level 5
Posts : 870
Thanked : 28
Engine : RMVX
Skill : Skilled
Type : Scripter

Trophies
Awards:

[WIP]Ability Meter Empty
PostSubyek: [WIP]Ability Meter   [WIP]Ability Meter Empty2011-05-07, 14:50

Ability Meter v0.1

Ini hanya prototype yang mau kusempurnain dirumah XD Emang belum selesai sih, dan gak ada flash disk :cry: numpang :kabur:

Nih script ngekloning Skill Treenya Monster Hunter series, dan karena namanya jelek, Skill Tree, nama script ini jadi Ability Meter. Scriptnya ngeberi skill kalo meterannya cukup dengan yang di syaratkan.

Code:
module WLTR
  module ABILITY_METER
    GROUPS = {}
    GROUPS[0] = ["Fire",
                "Increases ability to control fire.",
                [[-10, 33], [10, 34]]
                ]
  end
end

class Game_Actor < Game_Battler
  include WLTR::ABILITY_METER
  attr_accessor :ability_meter
 
  alias meter_setup setup
  def setup(actor_id)
    @ability_meter = []
    for i in GROUPS.keys
      @ability_meter[i] = 0
    end
    meter_setup(actor_id)
  end
 
  def ability_meters
    @ability_meter[0] = 10
    return @ability_meter
  end
 
  alias skill_metered skills
  def skills
    result = skill_metered
    ability_m = ability_meters
    plus = []
    for i in GROUPS.keys
      list = GROUPS[i][2]
      meter = ability_m[i]
      add = 0
      for j in list
        n = j[0]
        if n > 0
          if meter >= n
            add = j[1]
          end
        elsif n < 0
          if meter <= n
            add = j[1]
          end
        end
      end
      plus.push($data_skills[add])
    end
    return result + plus
  end
end
Silahkan tes, tapi belum sempurna :hammer:
Kembali Ke Atas Go down
 
[WIP]Ability Meter
Kembali Ke Atas 
Halaman 1 dari 1
 Similar topics
-
» Heroes Ability!
» Ability System v2.1 (KH-style)
» Wildan7 Noise Meter System
» [ASK]Escape Meter pada Atoa ATB

Permissions in this forum:Anda tidak dapat menjawab topik
RPGMakerID :: Scripts & Event Systems :: RMVX Scripts :: RGSS2 Support-
Navigasi: