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.
|
|
| |
2009-05-18, 12:22 | wtf happen with variable |
---|
dnasman
Admin Kodok Ganteng Indonesia™
Posts : 1361 Thanked : 21 Engine : RMXP Skill : Intermediate Type : Event Designer
Awards:
| First topic message reminder :ach....akhirny msuk ke VX lagi, tp cuma utk project iseng2 aja sich..... ada keanehan sama RMVX punyaku, aq kan bikin event command gini: - @>Input Number: [001: Hitung], 2 digit(s) # input number utk variable 1
- @>Control Variables: [001: Hitung]*=50 #variable 1 dikalikan dengan 50
- @>Text: -,-, Normal, Bottom # message yg akan nampilin variable 1
:...........: \v[1]
coba lihat! ketika aq input 10 ke input number-ny, angka yg keluar di variable 1 kan harusnya 500, tp yg keluar malah 50 aja terus (50 * 10, masa 50?) terus aq coba pake angka yg laen, tapi masih aja itu yg keluar 50 kira2 ini kenapa ya? wtf happen with my RMVX? apakah ini terjadi jg pada VXers yg laen? apa mungkin cuma gw ya? *mimin jg manusia **emangnya mimin dnasman manusia? bukannya kodok? thnx! |
| | |
2009-05-20, 07:41 | Re: wtf happen with variable |
---|
Daydreamer Newbie
Posts : 98
| Coba buat satu variable yang isinya actor's level. (di VX tentunya) Tidak berfungsikan? Dalam RGSS2 ada beberapa script yang kurang lengkap. Makanya aku keluarkan Soal2 yang berkaitan dengan scripting. Dengan tujuan agar kalian semua bisa mengetahui, bahwa ada yang salah di program default nya RM (Khususnya VX). Kita tidak akan tahu kalau tidak mencobanya. Aku pun masih terus mencari, dengan cara mencoba semua fungsi yang ada. Jika misalnya anda sekalian menemui sesuatu yang tidak beres, atau ada perintah yang tidak berfungsi, jangan disimpan/dikoleksi sendiri. Sekian dan terima kasih. Awwww..... kok aku jadi kampanye ya.... sorry - sorry. |
| | | 2009-05-20, 10:54 | Re: wtf happen with variable |
---|
danny_warfield Advance
Posts : 561 Thanked : 2 Engine : RMVX Ace Skill : Beginner Type : Artist
| wah.. kalo udah terkumpul bagusan wiki sendiri soal RM script trouble shooting (pasti yg nyadar cuma pengguna RM indonesia haha soalnya aku belom pernah liat satupun di situs luar) |
| | | 2009-05-20, 12:36 | Re: wtf happen with variable |
---|
Notorius Veteran
Posts : 1408 Thanked : 0 Engine : RMVX Skill : Intermediate Type : Event Designer
| Hebad Indonesia, teliti oooooh GOF tea atuh |
| | | 2009-05-25, 14:14 | Re: wtf happen with variable |
---|
reijubv Kai Runes
Posts : 1476 Thanked : 33 Engine : RMVX
Awards:
| coba masukin script ini ke script editor, aku rekomendasikan paste aja di bawah script Game_Interpreter (bukan di dalam scriptnya, tapi dibawahnya, kayak mau masukin script baru) Ini script buat memperbaiki erornya variable2 di VX, semoga membantu.. - Spoiler:
- Code:
-
#================================================= # ** Game_Interpreter #------------------------------------------------------------------------------ # An interpreter for executing event commands. This class is used within the # Game_Map, Game_Troop, and Game_Event classes. #======================================================
class Game_Interpreter #-------------------------------------------------------------------------- # * Control Variables #-------------------------------------------------------------------------- def command_122 value = 0 case @params[3] # Operand when 0 # Constant value = @params[4] when 1 # Variable value = $game_variables[@params[4]] when 2 # Random value = @params[4] + rand(@params[5] - @params[4] + 1) when 3 # Item value = $game_party.item_number($data_items[@params[4]]) when 4 # Actor actor = $game_actors[@params[4]] if actor != nil case @params[5] when 0 # Level value = actor.level when 1 # Experience value = actor.exp when 2 # HP value = actor.hp when 3 # MP value = actor.mp when 4 # Maximum HP value = actor.maxhp when 5 # Maximum MP value = actor.maxmp when 6 # Attack value = actor.atk when 7 # Defense value = actor.def when 8 # Spirit value = actor.spi when 9 # Agility value = actor.agi end end when 5 # Enemy enemy = $game_troop.members[@params[4]] if enemy != nil case @params[5] when 0 # HP value = enemy.hp when 1 # MP value = enemy.mp when 2 # Maximum HP value = enemy.maxhp when 3 # Maximum MP value = enemy.maxmp when 4 # Attack value = enemy.atk when 5 # Defense value = enemy.def when 6 # Spirit value = enemy.spi when 7 # Agility value = enemy.agi end end when 6 # Character character = get_character(@params[4]) if character != nil case @params[5] when 0 # x-coordinate value = character.x when 1 # y-coordinate value = character.y when 2 # direction value = character.direction when 3 # screen x-coordinate value = character.screen_x when 4 # screen y-coordinate value = character.screen_y end end when 7 # Other case @params[4] when 0 # map ID value = $game_map.map_id when 1 # number of party members value = $game_party.members.size when 2 # gold value = $game_party.gold when 3 # steps value = $game_party.steps when 4 # play time value = Graphics.frame_count / Graphics.frame_rate when 5 # timer value = $game_system.timer / Graphics.frame_rate when 6 # save count value = $game_system.save_count end end for i in @params[0] .. @params[1] # Batch control case @params[2] # Operation when 0 # Set $game_variables[i] = value when 1 # Add $game_variables[i] += value when 2 # Sub $game_variables[i] -= value when 3 # Mul $game_variables[i] *= value when 4 # Div $game_variables[i] /= value if value != 0 when 5 # Mod $game_variables[i] %= value if value != 0 end if $game_variables[i] > 99999999 # Maximum limit check $game_variables[i] = 99999999 end if $game_variables[i] < -99999999 # Minimum limit check $game_variables[i] = -99999999 end end $game_map.need_refresh = true return true end end
|
| | | 2009-05-25, 14:24 | Re: wtf happen with variable |
---|
Notorius Veteran
Posts : 1408 Thanked : 0 Engine : RMVX Skill : Intermediate Type : Event Designer
| Kepanjangan uy... Karena script ini bukan topic saya Spoiler boleh yah... |
| | | 2009-05-25, 14:29 | Re: wtf happen with variable |
---|
reijubv Kai Runes
Posts : 1476 Thanked : 33 Engine : RMVX
Awards:
| Oke, gpp, aku lagi dwarnet yg kbagian mouse mati, jadi agk repot ngapa2innya juga... berfungsi ga scriptnya? sekarang kita bisa bikin variable pake levelnya actor, dsb dg script ituu,, |
| | | 2009-05-25, 14:38 | Re: wtf happen with variable |
---|
Notorius Veteran
Posts : 1408 Thanked : 0 Engine : RMVX Skill : Intermediate Type : Event Designer
| Uh.... variable set dari LV actor mah ga usah pake script kali. Kan udah bisa dari sononya. * Notorius cek RMVX takut beda Variable nya ma XPEDIT: Ah ternyata memang ga perlu... Tinggal Var: [001: Coba doang] = [Siapa?Lupa]'s Level |
| | | 2009-05-25, 14:41 | Re: wtf happen with variable |
---|
reijubv Kai Runes
Posts : 1476 Thanked : 33 Engine : RMVX
Awards:
| Bukan,kalau VX asli, ada sedikit eror dengan variable level karakter ma perkalian, juga ada yg lain, tapi lupa lg apaan, coba aja set2 variable tanpa script tdi, pasti ada erornya,,, |
| | | 2009-05-25, 14:47 | Re: wtf happen with variable |
---|
Notorius Veteran
Posts : 1408 Thanked : 0 Engine : RMVX Skill : Intermediate Type : Event Designer
| PINTER! Klo ga pake script kamu hasilnya 0 mlulu |
| | | 2009-05-25, 14:56 | Re: wtf happen with variable |
---|
reijubv Kai Runes
Posts : 1476 Thanked : 33 Engine : RMVX
Awards:
| nah itu dia, selalu 0, hehe, ok ok, sng bisa ngbantu... |
| | | | Re: wtf happen with variable |
---|
Sponsored content
| | | | Similar topics | |
|
Similar topics | |
| |
Halaman 2 dari 2 | Pilih halaman : 1, 2 | |
| Permissions in this forum: | Anda tidak dapat menjawab topik
| |
| |
Latest 10 Topics | [Web Novel] Gloria Infidelis 2016-11-17, 21:27 by LightNightKnight
[Announcement] Forum baru untuk RMID 2016-08-25, 16:39 by TheoAllen
Where I'm Wrong ? 2016-07-24, 16:10 by ReydVires
flakeheartnet's Resources part III 2016-07-08, 14:30 by flakeheartnet
Keira's Art Warehouse 2016-06-28, 19:27 by KeiraBlaze
Theo Core Time System + Bingung 2016-06-27, 16:24 by Lockin
Error Script, Maybe ? 2016-06-27, 16:20 by Lockin
Nusaimoe @ RMID Lounge 2016-06-21, 05:02 by Jihad Bagas
Call Random Battle 2016-06-15, 17:04 by Lockin
Flakeheartnet Resources Part II [come back gift] 2016-06-07, 15:51 by flakeheartnet
|
Statistics
|
Members: [ 4947 ]
Topics: [ 8258 ]
Posts: [ 112606 ]
Newest member: [ https://rmid.forumotion.net/u4968 ]
|
|
|
|
|
|