| [rgss2-support] nambah atk dll | |
|
|
Pengirim | Message |
---|
ashm Veteran
Posts : 1131 Thanked : 8 Engine : RMVX Ace Skill : Intermediate Type : Event Designer
Trophies
Awards:
| Subyek: [rgss2-support] nambah atk dll 2012-06-22, 13:10 | |
| Para sepuh scripter, ane mau berguru. Kan kalo untuk nambah item lewat script kan : $game_party.gain_item(x)nah kalo nambah atk, defense, agi, spi utk spesifik actor apa ya ? Terus kalo conditional branch kan ada kolom "script". Nah ane mau ngecek "if anggota party udah ada yg belajar skill x apa belum" karena ane mau buat story skill, yg dipelajari actor itu teserah pemain. Itu baris kode nya apa? | |
|
| |
LowlingLife Administrator
Posts : 2000 Thanked : 25 Engine : Multi-Engine User
Trophies
Awards:
| Subyek: Re: [rgss2-support] nambah atk dll 2012-06-22, 13:59 | |
| 1. - Code:
-
$game_actors[Actor ID].atk += value $game_actors[Actor ID].def += value $game_actors[Actor ID].spi += value $game_actors[Actor ID].agi += value 2. - Code:
-
if $game_actors[Actor ID].skill_learn?(Skill ID) # Apa yang bakal dilakukan kalau udah learn else # Kalo enggak end Entah kenapa gak bisa... Coba di om.. Lagian pakai event gak bisa ya? | |
|
| |
Lukas Senior
Posts : 618 Thanked : 22
| Subyek: Re: [rgss2-support] nambah atk dll 2012-06-22, 14:42 | |
| - LowlingLife wrote:
2. - Code:
-
if $game_actors[Actor ID].skill_learn?(Skill ID) # Apa yang bakal dilakukan kalau udah learn else # Kalo enggak end Entah kenapa gak bisa... Coba di om.. Lagian pakai event gak bisa ya? if $game_actors[Actor ID].skill_learn?($data_skills[Skill ID]) | |
|
| |
ashm Veteran
Posts : 1131 Thanked : 8 Engine : RMVX Ace Skill : Intermediate Type : Event Designer
Trophies
Awards:
| Subyek: Re: [rgss2-support] nambah atk dll 2012-06-22, 15:34 | |
| @lowl : ini conditional branch buat separti bukan ? Maksud ane,bisa sih pake event.tapi bakal banyak. If actor x udah belajar skill ini... diulang terus sampesmua actor. dan ane pake 8 actor.
@lukas : ntar ane coba dulu. | |
|
| |
Lukas Senior
Posts : 618 Thanked : 22
| Subyek: Re: [rgss2-support] nambah atk dll 2012-06-22, 16:48 | |
| - ashm wrote:
- @lowl : ini conditional branch buat separti bukan ?
Maksud ane,bisa sih pake event.tapi bakal banyak. If actor x udah belajar skill ini... diulang terus sampesmua actor. dan ane pake 8 actor. @lukas : ntar ane coba dulu. script kecil : silahkan kembangkan https://dl.dropbox.com/u/71706537/ea.txt fungsi² array bisa di liat di Help file. smoga membantu | |
|
| |
LowlingLife Administrator
Posts : 2000 Thanked : 25 Engine : Multi-Engine User
Trophies
Awards:
| Subyek: Re: [rgss2-support] nambah atk dll 2012-06-22, 17:16 | |
| @ om Lukas : Tapi kok saya pakai yang ada $data_skills tetap aja om Argument Error? | |
|
| |
Lukas Senior
Posts : 618 Thanked : 22
| Subyek: Re: [rgss2-support] nambah atk dll 2012-06-22, 17:25 | |
| - LowlingLife wrote:
- @ om Lukas : Tapi kok saya pakai yang ada $data_skills tetap aja om Argument Error?
km pake command script ya ? itukan linenya kepotong jadi ga kebaca argumetnya. | |
|
| |
LowlingLife Administrator
Posts : 2000 Thanked : 25 Engine : Multi-Engine User
Trophies
Awards:
| |
| |
Lukas Senior
Posts : 618 Thanked : 22
| Subyek: Re: [rgss2-support] nambah atk dll 2012-06-22, 17:35 | |
| | |
|
| |
Sponsored content
| Subyek: Re: [rgss2-support] nambah atk dll | |
| |
|
| |
| [rgss2-support] nambah atk dll | |
|