|
| [ask] soal variabel di RGSS2 | |
| | Pengirim | Message |
---|
eve Loli Mecha Mesum Musume
Posts : 1620 Thanked : 30 Engine : Other Skill : Beginner Type : Writer
Trophies
Awards:
| Subyek: [ask] soal variabel di RGSS2 2011-11-01, 16:54 | |
| oke simpel saja ada script
JOB_STATE = { 1 => ["Hero", "Actor1", 0, 137, 30, 250, 30, 20, 0, 20, 256, 30] } end
bisakah nomor yang wa tebalin itu diganti dengan variabel yang bisa di set via event? atau musti make variabel global yg make tanda '$' ntu? atau malah nda bisa diganti pake variabel sama sekali?
kalau memang bisa diganti pake variabel, apa variabelnya musti di deklarasikan dulu?
kalau bisa, bagaimana caranya?
====
note; ini bukan akhir dari pertanyaan wa.,., tapi untuk sekarang sampai di sini aja dulu | |
| | | Roger Novice
Posts : 191 Thanked : 3 Engine : RMVX Skill : Very Beginner Type : Scripter
| Subyek: Re: [ask] soal variabel di RGSS2 2011-11-01, 21:00 | |
| entah ini bisa membantu atau ga - Quote :
JOB_STATE = { 1 => ["Hero", "Actor1", 0, 137, 30, 250, 30, 20, 0, 20, 256, 30] } end
sepertinya itu fungsi ya?? yg ditebalin itu argument, menurut teori bisa diganti ma variabel (dan memang bisa di semua bahasa pemrograman) masalahnya ga bisa kasi tau variabel kaya apa (nama dan fungsinya) soalnya potongan script diatas kurang lengkap. Mengenai variabel yg dibikin di event, gw masi ragu2 bisa ato ga | |
| | | Kuro Ethernite The Creator
Posts : 1631 Thanked : 24 Engine : RMVX Ace Skill : Masterful Type : Jack of All Trades
Trophies
Awards:
| Subyek: Re: [ask] soal variabel di RGSS2 2011-11-01, 22:27 | |
| smua yg ada d sono itu variable.... n YES of course bisa pake global variable ~ just simply change.... - Code:
-
JOB_STATE = { 1 => ["Hero", "Actor1", 0, 137, 30, 250, 30, 20, 0, 20, 256, 30] } end to - Code:
-
JOB_STATE = { 1 => ["Hero", "Actor1", $game_variables[ID], $game_variables[ID], $game_variables[ID], $game_variables[ID], $game_variables[ID], $game_variables[ID], $game_variables[ID], $game_variables[ID], $game_variables[ID], $game_variables[ID]] } end
$game_variables[ID] (ID ganti dengan ID variable ny) itu udah ID variable yg langsung bisa d set dari event.... JUST make sure para variable trsebut nilai ny udah d deklarasiin (jangan biarin 0) ~ | |
| | | Sponsored content
| Subyek: Re: [ask] soal variabel di RGSS2 | |
| |
| | | | [ask] soal variabel di RGSS2 | |
|
Similar topics | |
|
| Permissions in this forum: | Anda tidak dapat menjawab topik
| |
| |
| Latest topics | » [Web Novel] Gloria Infidelis by LightNightKnight 2016-11-17, 21:27
» [Announcement] Forum baru untuk RMID by TheoAllen 2016-08-25, 16:39
» Where I'm Wrong ? by ReydVires 2016-07-24, 16:10
» flakeheartnet's Resources part III by flakeheartnet 2016-07-08, 14:30
» Keira's Art Warehouse by KeiraBlaze 2016-06-28, 19:27
» Theo Core Time System + Bingung by Lockin 2016-06-27, 16:24
» Error Script, Maybe ? by Lockin 2016-06-27, 16:20
» Nusaimoe @ RMID Lounge by Jihad Bagas 2016-06-21, 05:02
» Call Random Battle by Lockin 2016-06-15, 17:04
» Flakeheartnet Resources Part II [come back gift] by flakeheartnet 2016-06-07, 15:51
|
Statistics
|
Members: [ 4947 ]
Topics: [ 8258 ]
Posts: [ 112606 ]
Newest member: [ https://rmid.forumotion.net/u4968 ]
|
|
|
|