coba bantu ya kk...
neh masukin script nih ke script kk...
- Spoiler:
- Code:
-
module RUSTED
# [x,y] <=== x tuh code barang, y tuh id barang
# x = 0 = item, x = 1 = weapon, x = 2 = armor
SHOPITEM = [[0,1],[1,1],[1,2],[2,3],[0,4],[1,5],[1,4],[2,4]]
end
class Interpreter
def detect_tag(tag)
x = $game_player.x
y = $game_player.y
if $game_map.terrain_tag(x, y) == tag
dothing
end
end
def dothing
if Input.trigger?(Input::A)
$game_temp.shop_goods = RUSTED::SHOPITEM
$scene = Scene_Shop.new
end
end
end
trus bikin common_even... set jadi paralel proses
trus di evennya pilih script...
ketik detect_tag(x) <<<== x = tag yang mau di detect
bis tuh pilih trigger switchnya...
jadi klo trigger switchnya nyala... tuh tag bakal di detect trus...
o0o iya tambahan...
tuh buat munculin shopnya pencet tombol A == > dikeyboard defaultnya Z
sorry klo caranya agak ribet...
sapa tau ada yang punya yang lebih simple