|
| wtf happen with variable | |
|
+6ardo_96 hipon fjakf Daydreamer Notorius dnasman 10 posters | |
Pengirim | Message |
---|
dnasman
Admin Kodok Ganteng Indonesia™
Posts : 1361 Thanked : 21 Engine : RMXP Skill : Intermediate Type : Event Designer
Trophies
Awards:
| Subyek: wtf happen with variable 2009-05-18, 12:22 | |
| 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! | |
| | |
Pengirim | Message |
---|
Daydreamer Newbie
Posts : 98
| Subyek: Re: wtf happen with variable 2009-05-20, 07:41 | |
| 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. | |
| | | danny_warfield Advance
Posts : 561 Thanked : 2 Engine : RMVX Ace Skill : Beginner Type : Artist
| Subyek: Re: wtf happen with variable 2009-05-20, 10:54 | |
| 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) | |
| | | Notorius Veteran
Posts : 1408 Thanked : 0 Engine : RMVX Skill : Intermediate Type : Event Designer
| Subyek: Re: wtf happen with variable 2009-05-20, 12:36 | |
| Hebad Indonesia, teliti oooooh GOF tea atuh | |
| | | reijubv Kai Runes
Posts : 1476 Thanked : 33 Engine : RMVX
Trophies
Awards:
| Subyek: Re: wtf happen with variable 2009-05-25, 14:14 | |
| 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
| |
| | | Notorius Veteran
Posts : 1408 Thanked : 0 Engine : RMVX Skill : Intermediate Type : Event Designer
| Subyek: Re: wtf happen with variable 2009-05-25, 14:24 | |
| Kepanjangan uy... Karena script ini bukan topic saya Spoiler boleh yah... | |
| | | reijubv Kai Runes
Posts : 1476 Thanked : 33 Engine : RMVX
Trophies
Awards:
| Subyek: Re: wtf happen with variable 2009-05-25, 14:29 | |
| 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,, | |
| | | Notorius Veteran
Posts : 1408 Thanked : 0 Engine : RMVX Skill : Intermediate Type : Event Designer
| Subyek: Re: wtf happen with variable 2009-05-25, 14:38 | |
| 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 XP
EDIT: Ah ternyata memang ga perlu... Tinggal Var: [001: Coba doang] = [Siapa?Lupa]'s Level | |
| | | reijubv Kai Runes
Posts : 1476 Thanked : 33 Engine : RMVX
Trophies
Awards:
| Subyek: Re: wtf happen with variable 2009-05-25, 14:41 | |
| 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,,, | |
| | | Notorius Veteran
Posts : 1408 Thanked : 0 Engine : RMVX Skill : Intermediate Type : Event Designer
| Subyek: Re: wtf happen with variable 2009-05-25, 14:47 | |
| PINTER! Klo ga pake script kamu hasilnya 0 mlulu | |
| | | reijubv Kai Runes
Posts : 1476 Thanked : 33 Engine : RMVX
Trophies
Awards:
| Subyek: Re: wtf happen with variable 2009-05-25, 14:56 | |
| nah itu dia, selalu 0, hehe, ok ok, sng bisa ngbantu... | |
| | | Sponsored content
| Subyek: Re: wtf happen with variable | |
| |
| | | | wtf happen with variable | |
|
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 ]
|
|
|
|