Buat para expert eventer ato scripter, gw mau tanya nih.
Gw pengen coba menerapkan sistem pembikinan weapon yg gak cuman beli pake Gold doang tapi melalui material yg udah kita kumpulin dari encounter2 battle biasa (bukan event battle) tp bingung gimana.
Contoh kasus:=======================================================
gw bikin satu Weapon namanya 'Hunter Sword'. nah untuk ngedapetin ni Hunter Sword, player hrs punya minimal 4 Iron Ore sama 300 Gold and ditukerin di NPC Blacksmith.
kalo bahan/uang gak mencukupi, player cuman dapet pesen dr Blacksmith : 'Kamu tdk memiliki Iron ore yg cukup'.
kalo mencukupi, bahan Iron ore tadi di subtract -4 dari inventory plus goldnya. lalu kita dapetin tu Hunter Sword.
======================================================
Nah,gw udah mikirin berberapa metode buat itu tp kebanyakan gak berhasi/kurang sempurna. gw mikirnya sih pake Variable Switch.
misal: enemy troops slime dikasi battle event. trus gw pasang Variable Switch :
- Code:
-
Condition: Enemy [1. slime]'s HP 0% or below
@>control variables: [0001:Iron ore] += random no.(0...1)
[[^ apa bakal nambah variabel Iron Ore secara random?]]
change item : [Iron ore], +1
@>Text: -,-, Normal,Bottom
: : Obtained Iron Ore!
tp biarpun kalo nambah secara random, message 'Obtained Iron ore!' nya sama itemnya tetep dapet terus dong pas akhir battle.
kalo pake conditional branch, variablenya gak bisa di atur random..
kalo soal pengurangan variable + item di Blacksmith sih gw tau caranya.
Nah,minta solusi dong. apa bisa lewat cara non-heavy scripting? ato musti scripting secara langsung?. thanks.