|
| Variable on Menu | |
| | Pengirim | Message |
---|
neclords Newbie
Posts : 74 Thanked : 1 Engine : RMVX Skill : Beginner Type : Mapper
| Subyek: Variable on Menu 2011-01-06, 02:37 | |
| Hem, gimana ya kalo misalnya di menuscreen kita mau tambahin variabel di samping foto karakternya? Thanks | |
| | | Blackcat Novice
Posts : 194 Thanked : 6 Engine : Other
| Subyek: Re: Variable on Menu 2011-01-06, 05:02 | |
| pake menu bawaan VX? bisa di lihat di script Window_MenuStatus bagian refresh trus tambahkan ini - Code:
-
self.contents.draw_text(x-20, y+60, contents.width, WLH, $game_variable[13], 0) Taruh aja itu di bawah draw actor mp di line 35 Jadi itu akan memperlihatkan jumlah variable no 13.
Terakhir diubah oleh Blackcat tanggal 2011-01-06, 19:48, total 1 kali diubah | |
| | | neclords Newbie
Posts : 74 Thanked : 1 Engine : RMVX Skill : Beginner Type : Mapper
| Subyek: Re: Variable on Menu 2011-01-06, 09:16 | |
| Kalo misalnya code untuk buat tambahan kayak atk di menu kan bisa pake kode ini kalo pake variabel gimana ya? def draw_hp nya di ganti apa? Trus misalnya party 4 org, beda variabel yang ditampilin gimana? Hehe Sori ngerepotin ini potongan scriptnya - Spoiler:
- Code:
-
def draw_hp(actor, x, y, width = 120)
self.contents.font.color = system_color
self.contents.draw_text(x, y + WLH / 2 * 1, 30, WLH, Vocab::hp_a)
self.contents.font.color = normal_color
last_font_size = self.contents.font.size
xr = x + width
yr = y
if width < 120
self.contents.draw_text(xr - 34, yr + WLH / 2 * 0, 44, WLH, actor.hp, 0)
else
self.contents.draw_text(xr - 84, yr + WLH / 2 * 0, 44, WLH, actor.hp, 1)
end
end
| |
| | | Blackcat Novice
Posts : 194 Thanked : 6 Engine : Other
| Subyek: Re: Variable on Menu 2011-01-06, 09:43 | |
| Yg atas tu gimana maksudnya ya? Gak ngerti aku. yang bawah, kalau gak mau repot ya begini. - Code:
-
self.contents.draw_text(x -20, y+60, contents.width, WLH, $game_variable[13 + actor.index], 0) catatan : actor.index itu nilainya 0 tuk party member no 1, jadi variable yg harus diubah ya. var no 13, 14, 15, 16. Nanti masing2 memunculkan nilai berbeda berdasar nilai variable, kalau bingung mending di praktekkan dulu deh lalu tanya lebih lanjut... Edit : coba juga tambahkan ini - Code:
-
draw_icon(120, x +70, y) self.contents.draw_text(x -240, y, contents.width, WLH, actor.atk, 2) - Spoiler:
sory, tuk sementara aku cuma bisa online lewat hape, jadi aku gak bakal bisa melihat isi spoiler. Thanks
| |
| | | Sponsored content
| Subyek: Re: Variable on Menu | |
| |
| | | | Variable on Menu | |
|
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 ]
|
|
|
|