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.

 

 [Solved][ask-rgss2]Command disabled Dash

Go down 
3 posters
PengirimMessage
ashm
Veteran
Veteran
ashm


Level 5
Posts : 1131
Thanked : 8
Engine : RMVX Ace
Skill : Intermediate
Type : Event Designer

Trophies
Awards:

[Solved][ask-rgss2]Command disabled Dash Empty
PostSubyek: [Solved][ask-rgss2]Command disabled Dash   [Solved][ask-rgss2]Command disabled Dash Empty2012-11-23, 14:12

Quick question aja, ane kan mau buat player gak boleh dash.
Command scriptnya apa ya ? :hmm:

Alesan ane gak mau "ceklis disabled dash di Map properties" adalah si player gak bisa dash di sebuah plot, tapi di plot selanjutnya dia butuh dash (buat kabur).

Edit : bukan ubah speed doank, intinya pas mencet shift player gk bole dalam status dash.


Terakhir diubah oleh yerry_great tanggal 2012-11-24, 16:27, total 2 kali diubah (Reason for editing : salah title ama pnjelasan lagi)
Kembali Ke Atas Go down
yeki
Novice
Novice
yeki


Level 5
Posts : 182
Thanked : 6
Engine : RMVX Ace
Skill : Beginner
Type : Scripter

Trophies
Awards:

[Solved][ask-rgss2]Command disabled Dash Empty
PostSubyek: Re: [Solved][ask-rgss2]Command disabled Dash   [Solved][ask-rgss2]Command disabled Dash Empty2012-11-23, 23:42

hm..kalo sepintas sih menurutku butuh script basic dulu kyk

Code:

class Game_Player < Game_Character
attr_reader :dashing
alias :yeki_dash_initialize :initialize
def initialize
@dashing = true
end
 def dashing=(value)
  @dashing = value
 end
 def dash?
    return false if @move_route_forcing
    return false if $game_map.disable_dash?
    return false if in_vehicle?
    return Input.press?(Input::A) if @dashing
    reurn false
  end
end

baru bisa dipanggil di event script
Code:

$game_player.dashing = true / false

tapi masih untestable...via hpe soalnya
Kembali Ke Atas Go down
ashm
Veteran
Veteran
ashm


Level 5
Posts : 1131
Thanked : 8
Engine : RMVX Ace
Skill : Intermediate
Type : Event Designer

Trophies
Awards:

[Solved][ask-rgss2]Command disabled Dash Empty
PostSubyek: Re: [Solved][ask-rgss2]Command disabled Dash   [Solved][ask-rgss2]Command disabled Dash Empty2012-11-24, 07:58

oh...
butuh snippet gitu ya :hmm:
Itu ada error katanya di default script

'Game_Character' line 235 :No method occur
Undefined method '>'
Kembali Ke Atas Go down
yeki
Novice
Novice
yeki


Level 5
Posts : 182
Thanked : 6
Engine : RMVX Ace
Skill : Beginner
Type : Scripter

Trophies
Awards:

[Solved][ask-rgss2]Command disabled Dash Empty
PostSubyek: Re: [Solved][ask-rgss2]Command disabled Dash   [Solved][ask-rgss2]Command disabled Dash Empty2012-11-24, 08:07

aghhahah iya lupa naro aliasingnya nih yang bener

Code:

class Game_Player < Game_Character
  attr_reader :dashing
  alias :yeki_dash_initialize :initialize
  def initialize
    yeki_dash_initialize
    @dashing = true
  end
 def dashing=(value)
  @dashing = value
 end
 def dash?
    return false if @move_route_forcing
    return false if $game_map.disable_dash?
    return false if in_vehicle?
    return Input.press?(Input::A) if @dashing
    return false
  end
end
Kembali Ke Atas Go down
ashm
Veteran
Veteran
ashm


Level 5
Posts : 1131
Thanked : 8
Engine : RMVX Ace
Skill : Intermediate
Type : Event Designer

Trophies
Awards:

[Solved][ask-rgss2]Command disabled Dash Empty
PostSubyek: Re: [Solved][ask-rgss2]Command disabled Dash   [Solved][ask-rgss2]Command disabled Dash Empty2012-11-24, 10:55

Sip2 :D
Solved.

Thanks Yeki.
Moga2 ntr malem bisa diupload ojek nya
Kembali Ke Atas Go down
yerry_great
@> Moderator
@> Moderator
yerry_great


Kosong
Posts : 1251
Thanked : 15
Engine : Multi-Engine User
Skill : Very Beginner
Type : Jack of All Trades

[Solved][ask-rgss2]Command disabled Dash Empty
PostSubyek: Re: [Solved][ask-rgss2]Command disabled Dash   [Solved][ask-rgss2]Command disabled Dash Empty2012-11-24, 16:25

:gembok:

Locked since solved
Kembali Ke Atas Go down
http://ygdevlog.blogspot.com
Sponsored content





[Solved][ask-rgss2]Command disabled Dash Empty
PostSubyek: Re: [Solved][ask-rgss2]Command disabled Dash   [Solved][ask-rgss2]Command disabled Dash Empty

Kembali Ke Atas Go down
 
[Solved][ask-rgss2]Command disabled Dash
Kembali Ke Atas 
Halaman 1 dari 1
 Similar topics
-
» [SOLVED] Dash, Run, Sneak, Jump
» [Solved] Auto Battle Command
» [Solved] Buku RGSS2
» [ASK] Dash
» Error Dash Stamina by wltr3565

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