Day.png);">
Apprendre


Vous êtes
nouveau sur
Oniromancie?

Visite guidée
du site


Découvrir
RPG Maker

RM 95
RM 2000/2003
RM XP
RM VX/VX Ace
RM MV/MZ

Apprendre
RPG Maker

Tutoriels
Guides
Making-of

Dans le
Forum

Section Entraide

Tutos: Checklist de la composition (...) / Sorties: Dread Mac Farlane - episode 8 / Sorties: Dread Mac Farlane - episode 7 / Jeux: Ce qui vit Dessous / News: Quoi de neuf sur Oniromancie (...) / Chat

Bienvenue
visiteur !




publicité RPG Maker!

Statistiques

Liste des
membres


Contact

Mentions légales

422 connectés actuellement

29375522 visiteurs
depuis l'ouverture

4889 visiteurs
aujourd'hui



Barre de séparation

Partenaires

Indiexpo

Akademiya RPG Maker

Blog Alioune Fall

Fairy Tail Constellations

Offgame

Kingdom Ultimate

Le Temple de Valor

Le Comptoir Du clickeur

Tous nos partenaires

Devenir
partenaire



forums

Index du forum > Entraide > [RPG maker VX Ace] Party Storage System


Slime55 - posté le 30/12/2014 à 18:21:31 (442 messages postés)

❤ 0

Domaine concerné: script
Logiciel utilisé: RPG maker VX Ace
Bonsoir !
Dans le script ci-dessous, les personnages qui sont utilisés dans le menu de storage ont comme graphics les character, mais j'aimerais que ce soit celui de leur battler. Serait-il possible de changer cela svp ?
Voilou, merci d'avance !

( Et voilà le script bien sûr ... )

Portion de code : Tout sélectionner

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡    Sakuraba's Party Storage System (PSS) v1.2
#≡    by: Sakuraba
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Change Log:
#≡      12/12/2014: 13:30 > Added Release Feature
#≡      25/08/2014: 20:30 > Added Lock Feature
#≡      23/07/2014: 14:42 > Finished Script
#≡      22/07/2014: 19:00 > Started  Script
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Terms of Use:
#≡    ◦ Do NOT remove this Header
#≡    ◦ Give Credit to "Sakuraba" if Used
#≡    ◦ Feel Free to use in commercial and non commercial projects
#≡    ◦ Edit below Script Line ONLY if you know what you're doing
#≡    ◦ Don't post this in other forums, post a link to this forum instead
#≡    ◦ Do NOT steal the Code!!!
#≡    ◦ Do NOT steal the Sakuraba Nickname!!!
#≡    ◦ ENJOY
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Requires:
#≡    ◦ This Script
#≡    ◦ Nothing Else
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Description
#≡    ◦ This script allows the player to have a "storage" of párty members,
#≡      similar to pokemon games, stores actors does not gain experience or
#≡      level up, storage is unlimited, however this script allows to limit
#≡      the max mambers party can have. When party is full, adding a new actor
#≡      makes the new actor to be send to the stock.Now, actors can be locked
#≡      and released from storage.
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Compatibility & Glitches
#≡    ◦ None
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Script Calls
#≡    ◦ use "SceneManager.call(Scene_PartyStorageBox)" to call the storage scene
#≡    ◦ Use "$game_stock.add_actor(actor_id") to add an actor to the stock, where
#≡      actor_id is the database ID of an actor
#≡    ◦ Use "$game_stock.remove_actor(actor_id") to remove an actor of the stock,
#≡      where actor_id is the database ID of an actor
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Note Tags
#≡    ◦ use <party_lock> to lock actors in party
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
 
module SAKURABA
  module SKPSS
    
    MAXPARTYMEMBERS = 6   #this controls the max actors that the party can have
    PARTYWINDOWTITLE = "Party Members" #Text to show above party window
    STOCKWINDOWTITLE = "Waiting Members" #Text to show above party stock window
  end
end
 
#~ #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#~ #≡   ● SCRIPT LINE!!!  ◦Edit below ONLY if you know what you're doing 
#~ #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!    
 
 
#==============================================================================
# ● Window_StoreCommand
#==============================================================================
class Window_StoreCommand < Window_Command
  
#≡   ● Window Attributes Setup ===============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def self.init_command_position
    @@last_command_symbol = nil
  end
  
  def initialize
    super(0, 0)
  end
  
  def window_width
    return 160
  end
  
  def visible_line_number
    return 3 #item_max
  end
  
#≡   ● Window Commands Setup =================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def make_command_list
    add_command("Deposit",    :store,  $game_party.members.size > 1)
    mxptymbr = SAKURABA::SKPSS::MAXPARTYMEMBERS
    add_command("Withdraw",   :get,  $game_party.members.size < mxptymbr && $game_stock.members.size > 0 )
    add_command("Release",   :fire,  $game_stock.members.size > 0)
    add_command("Close",      :exit, true)
  end
 
  def process_ok   
    super
  end 
  
end
 
#==============================================================================
# ● Game_Stock 
#==============================================================================
class Game_Stock < Game_Unit 
  
#≡   ● Class Setup ===========================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
  def initialize
    super
    @actors = []
  end
 
  def exists
    !@actors.empty?
  end
 
  def members
    all_members
  end
 
  def all_members
    @actors.collect {|id| $game_actors[id] }
  end
 
  def highest_level
    lv = members.collect {|actor| actor.level }.max
  end
 
  def add_actor(actor_id)
    @actors.push(actor_id) unless @actors.include?(actor_id)
    actor = $game_actors[actor_id]
    actor.recover_all
    $game_player.refresh
    $game_map.need_refresh = true
  end
 
  def remove_actor(actor_id)
    @actors.delete(actor_id)
    $game_player.refresh
    $game_map.need_refresh = true
  end
 
  def members_equip_include?(item)
    members.any? {|actor| actor.equips.include?(item) }
  end
end
 
#==============================================================================
# ● Game_Party // Method Overwriting 
#==============================================================================
class Game_Party < Game_Unit
 
  def add_actor(actor_id)
    mxprtymbr = SAKURABA::SKPSS::MAXPARTYMEMBERS    
    if $game_party.members.size >= mxprtymbr 
      $game_stock.add_actor(actor_id)
    else
    @actors.push(actor_id) unless @actors.include?(actor_id)
    $game_player.refresh
    $game_map.need_refresh = true
    end       
  end
 
  def remove_actor(actor_id)
  if $game_party.members.include?($game_actors[actor_id])
    @actors.delete(actor_id)
    $game_player.refresh
    $game_map.need_refresh = true
  else
    $game_stock.remove_actor(actor_id)
  end  
  end
end
 
#==============================================================================
# ● Data Manager Module  //// DO NOT EDIT!! 
#==============================================================================
module DataManager
#≡   ● Method Aliasing =======================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  class << self
    alias :sk_create_game_objects :create_game_objects
    alias :sk_make_save_contents :make_save_contents 
    alias :sk_extract_save_contents :extract_save_contents
  end
#≡   ● Data Setup  ===========================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  def self.create_game_objects
    sk_create_game_objects
    $game_stock         = Game_Stock.new
  end
  
  def self.make_save_contents
    contents = sk_make_save_contents
    contents[:stock]         = $game_stock
    contents
  end
  
  def self.extract_save_contents(contents)
    sk_extract_save_contents(contents)
    $game_stock         = contents[:stock]
  end
  
end
 
#==============================================================================
# ● Window_PartyList  ///// EDITABLE
#==============================================================================
class Window_PartyList < Window_Selectable
 
  attr_reader   :pending_index
#≡   ● Window Attributes  ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def initialize(x, y)
    super(x, y, 160, 270)
    @pending_index = -1
    refresh
  end
  
  def item_max
    $game_party.members.size
  end
 
  def item_height
    40 
  end
 
#≡   ● Actor MiniStatus Drawing  =============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
  def draw_item(index)
    actor = $game_party.members[index]
    rect = item_rect(index)
    draw_actor_graphic(actor, rect.x + 16, 38 + (index * 40))
    draw_actor_name(actor, 32 , index * 40, width = 104, )
    draw_actor_minimalisthp(actor, 32, 16 +(index * 40))
    draw_actor_minimalislevel(actor, 88, 16 +(index * 40))
  end
  
  def draw_actor_minimalisthp(actor, x, y)
    draw_gauge(x + 10, y ,40, actor.hp_rate, hp_gauge_color1, hp_gauge_color2)
    change_color(system_color)
    draw_text(x, y, 16, line_height, Vocab::hp_a)
  end
  
  def draw_actor_minimalislevel(actor, x, y)
    change_color(system_color)
    draw_text(x, y, 16, line_height, Vocab::level_a)
    change_color(normal_color)
    draw_text(x + 16, y, 24, line_height, actor.level, 2)
  end
 
#≡   ● Somewhat Vital Process  ===============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
def process_cursor_move
    return unless cursor_movable?
    last_index = @index
    cursor_down (Input.trigger?(:DOWN))  if Input.repeat?(:DOWN)
    cursor_up   (Input.trigger?(:UP))    if Input.repeat?(:UP)
    Sound.play_cursor if @index != last_index
    $pwindex = @index 
    refresh
  end
 
  def select_last
    select($game_party.menu_actor.index || 0)
  end
 
  def pending_index=(index)
    last_pending_index = @pending_index
    @pending_index = index
    redraw_item(@pending_index)
    redraw_item(last_pending_index)
  end
  
end
 
 
#==============================================================================
# ● Window_StockList  ///// EDITABLE
#==============================================================================
class Window_StockList < Window_Selectable
 
  attr_reader   :pending_index          
  
#≡   ● Window Attributes  ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def initialize
    super(160, 48, 384, 368)
    @pending_index = -1
    refresh
  end
 
  def item_max
    $game_stock.members.size
  end
 
  def item_height
    40
  end
  
  def col_max
    return 3
  end
  
  def row_max
    return 500
  end
  
  def spacing
    return 0
  end
#≡   ● Actor MiniStatus Drawing  =============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def draw_item(index)
    actor = $game_stock.members[index]
    enabled = $game_stock.members.include?(actor)
    rect = item_rect(index)
    draw_actor_graphic(actor, rect.x + 16,rect.y + 38)
    draw_actor_name(actor, rect.x + 32 ,rect.y - 1 , width = 96)   
    draw_actor_minimalislevel(actor,rect.x + 40,rect.y + 18 )
  end
  
  def draw_actor_minimalislevel(actor, x, y)
    change_color(system_color)
    draw_text(x, y, 16, line_height, Vocab::level_a)
    change_color(normal_color)
    draw_text(x + 16, y, 24, line_height, actor.level, 2)
  end
 
#≡   ● Somewhat Vital Process  ===============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def pending_index=(index)
    last_pending_index = @pending_index
    @pending_index = index
    redraw_item(@pending_index)
    redraw_item(last_pending_index)
  end
  
  def process_cursor_move
    return unless cursor_movable?
    last_index = @index
    cursor_down (Input.trigger?(:DOWN))  if Input.repeat?(:DOWN)
    cursor_up   (Input.trigger?(:UP))    if Input.repeat?(:UP)
    cursor_right(Input.trigger?(:RIGHT)) if Input.repeat?(:RIGHT)
    cursor_left (Input.trigger?(:LEFT))  if Input.repeat?(:LEFT)
    cursor_pagedown   if !handle?(:pagedown) && Input.trigger?(:R)
    cursor_pageup     if !handle?(:pageup)   && Input.trigger?(:L)
    Sound.play_cursor if @index != last_index
    $swindex = @index 
    refresh
  end
end
 
#==============================================================================
# ● Window_PartyTitle
#==============================================================================
class Window_PartyTitle < Window_Base
  
#≡   ● Initialize ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡ 
  def initialize
    super(0, 98, 160, 48)
    refresh
  end
 
#≡   ● Refreshing ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  def refresh
    contents.clear
    draw_text(0, 0, 150, 24, SAKURABA::SKPSS::PARTYWINDOWTITLE)
  end  
end
 
#==============================================================================
# ● Window_StockTitle
#==============================================================================
class Window_StockTitle < Window_Base
  
#≡   ● Initialize ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡ 
  def initialize
    super(160, 0, 384, 48)
    refresh
  end
 
#≡   ● Refreshing ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  def refresh
    contents.clear
    draw_text(0, 0, 360, 24, SAKURABA::SKPSS::STOCKWINDOWTITLE)
  end  
end
 
 
#≡   ● Add Actor Lock Param =================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
class RPG::Actor 
  
  def party_lock      
    if @party_lock.nil?
      if @note =~ /<party_lock>/
      @party_lock = true
      else
      @party_lock = false
      end
    end
        @party_lock
  end
end
 
#==============================================================================
# ● Scene_PartyStorageBox  //// EDITABBLE BUT NOT RECOMMENDED
#==============================================================================
class Scene_PartyStorageBox < Scene_Base
 
#≡   ● Initialize ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
  def start
    super
    create_cmdwindw
    create_partywindow
    create_boxwindow
    create_xtrawindows
  end
 
#≡   ● Create all Windows ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
  def create_xtrawindows
    @partitle =  Window_PartyTitle.new
    @sotckitle = Window_StockTitle.new
  end
  
  def create_cmdwindw
    @cmdwdw = Window_StoreCommand.new
    @cmdwdw.set_handler(:store,      method(:command_store))
    @cmdwdw.set_handler(:get,      method(:command_get))
    @cmdwdw.set_handler(:fire,      method(:command_fire))
    @cmdwdw.set_handler(:exit,      method(:return_scene))
    @cmdwdw.set_handler(:cancel,    method(:return_scene))
    @cmdwdw.activate
  end  
 
  def create_partywindow
    @ptywndw = Window_PartyList.new(0,146)
    @ptywndw.set_handler(:ok, method(:store_ok))
    @ptywndw.set_handler(:cancel, method(:store_cancel))
    
  end 
  
  def create_boxwindow
    @stckwndw = Window_StockList.new
    @stckwndw.set_handler(:ok, method(:get_ok))
    @stckwndw.set_handler(:cancel, method(:store_cancel))
  end 
  
#≡   ● Window Handlers   ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  def command_store
    @ptywndw.select(0)
    @ptywndw.activate
  end
  
  def command_get
    @stckwndw.select(0)
    @stckwndw.activate
  end
  
   def command_fire
    @stckwndw.select(0)
    @stckwndw.activate
    $releasing = true
  end
  
  def store_ok    
    storeactor = $game_party.members[$pwindex].id
    if $data_actors[storeactor].party_lock == true
      Sound.play_buzzer
      @ptywndw.activate
    else
    $game_stock.add_actor(storeactor)
    $game_party.remove_actor($game_party.members[$pwindex].id)
    @ptywndw.refresh
    @stckwndw.refresh
    if $game_party.members.size == 1
      @cmdwdw.refresh
      @cmdwdw.activate
    else
      @ptywndw.select(0)
      @ptywndw.activate
    end 
     
    
    end   
  end
 
  def get_ok
    if $releasing == true
    $game_stock.remove_actor($game_stock.members[$swindex].id)
    @ptywndw.refresh
    @stckwndw.refresh
    if $game_stock.members.size == 0 
      @cmdwdw.refresh
      @cmdwdw.activate
      releasing = false
    else
      @stckwndw.select(0)
      @stckwndw.activate
    end
    else 
    getactor = $game_stock.members[$swindex].id
    $game_party.add_actor(getactor)
    $game_stock.remove_actor($game_stock.members[$swindex].id)
    @ptywndw.refresh
    @stckwndw.refresh
    if $game_stock.members.size == 0 or $game_party.members.size >= SAKURABA::SKPSS::MAXPARTYMEMBERS
      @cmdwdw.refresh
      @cmdwdw.activate
    else
      @stckwndw.select(0)
      @stckwndw.activate
    end
  end
end
 
  
  def store_cancel
    @cmdwdw.refresh
    @cmdwdw.activate
    $releasing = false
  end    
end
#≡   ● End Of Script   ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡ 
 




7163D - posté le 30/12/2014 à 18:44:31 (946 messages postés)

❤ 0

Votez Minimaliste

Les personnages de VX Ace n'ont pas de Battler, tu veut dire leur faceset?

Minimaliste, le "." comme signe de ralliement.


Slime55 - posté le 30/12/2014 à 19:13:14 (442 messages postés)

❤ 0

Oui voilà, dsl. A force de jongler avec les autres RPG voilà ce qui se passe ...


7163D - posté le 30/12/2014 à 19:51:06 (946 messages postés)

❤ 0

Votez Minimaliste

Essaye celui-là:

Portion de code : Tout sélectionner

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡    Sakuraba's Party Storage System (PSS) v1.2
#≡    by: Sakuraba
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Change Log:
#≡      12/12/2014: 13:30 > Added Release Feature
#≡      25/08/2014: 20:30 > Added Lock Feature
#≡      23/07/2014: 14:42 > Finished Script
#≡      22/07/2014: 19:00 > Started  Script
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Terms of Use:
#≡    ◦ Do NOT remove this Header
#≡    ◦ Give Credit to "Sakuraba" if Used
#≡    ◦ Feel Free to use in commercial and non commercial projects
#≡    ◦ Edit below Script Line ONLY if you know what you're doing
#≡    ◦ Don't post this in other forums, post a link to this forum instead
#≡    ◦ Do NOT steal the Code!!!
#≡    ◦ Do NOT steal the Sakuraba Nickname!!!
#≡    ◦ ENJOY
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Requires:
#≡    ◦ This Script
#≡    ◦ Nothing Else
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Description
#≡    ◦ This script allows the player to have a "storage" of párty members,
#≡      similar to pokemon games, stores actors does not gain experience or
#≡      level up, storage is unlimited, however this script allows to limit
#≡      the max mambers party can have. When party is full, adding a new actor
#≡      makes the new actor to be send to the stock.Now, actors can be locked
#≡      and released from storage.
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Compatibility & Glitches
#≡    ◦ None
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Script Calls
#≡    ◦ use "SceneManager.call(Scene_PartyStorageBox)" to call the storage scene
#≡    ◦ Use "$game_stock.add_actor(actor_id") to add an actor to the stock, where
#≡      actor_id is the database ID of an actor
#≡    ◦ Use "$game_stock.remove_actor(actor_id") to remove an actor of the stock,
#≡      where actor_id is the database ID of an actor
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Note Tags
#≡    ◦ use <party_lock> to lock actors in party
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
 
module SAKURABA
  module SKPSS
    
    MAXPARTYMEMBERS = 6   #this controls the max actors that the party can have
    PARTYWINDOWTITLE = "Party Members" #Text to show above party window
    STOCKWINDOWTITLE = "Waiting Members" #Text to show above party stock window
  end
end
 
#~ #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#~ #≡   ● SCRIPT LINE!!!  ◦Edit below ONLY if you know what you're doing 
#~ #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!    
 
 
#==============================================================================
# ● Window_StoreCommand
#==============================================================================
class Window_StoreCommand < Window_Command
  
#≡   ● Window Attributes Setup ===============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def self.init_command_position
    @@last_command_symbol = nil
  end
  
  def initialize
    super(0, 0)
  end
  
  def window_width
    return 160
  end
  
  def visible_line_number
    return 3 #item_max
  end
  
#≡   ● Window Commands Setup =================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def make_command_list
    add_command("Deposit",    :store,  $game_party.members.size > 1)
    mxptymbr = SAKURABA::SKPSS::MAXPARTYMEMBERS
    add_command("Withdraw",   :get,  $game_party.members.size < mxptymbr && $game_stock.members.size > 0 )
    add_command("Release",   :fire,  $game_stock.members.size > 0)
    add_command("Close",      :exit, true)
  end
 
  def process_ok   
    super
  end 
  
end
 
#==============================================================================
# ● Game_Stock 
#==============================================================================
class Game_Stock < Game_Unit 
  
#≡   ● Class Setup ===========================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
  def initialize
    super
    @actors = []
  end
 
  def exists
    !@actors.empty?
  end
 
  def members
    all_members
  end
 
  def all_members
    @actors.collect {|id| $game_actors[id] }
  end
 
  def highest_level
    lv = members.collect {|actor| actor.level }.max
  end
 
  def add_actor(actor_id)
    @actors.push(actor_id) unless @actors.include?(actor_id)
    actor = $game_actors[actor_id]
    actor.recover_all
    $game_player.refresh
    $game_map.need_refresh = true
  end
 
  def remove_actor(actor_id)
    @actors.delete(actor_id)
    $game_player.refresh
    $game_map.need_refresh = true
  end
 
  def members_equip_include?(item)
    members.any? {|actor| actor.equips.include?(item) }
  end
end
 
#==============================================================================
# ● Game_Party // Method Overwriting 
#==============================================================================
class Game_Party < Game_Unit
 
  def add_actor(actor_id)
    mxprtymbr = SAKURABA::SKPSS::MAXPARTYMEMBERS    
    if $game_party.members.size >= mxprtymbr 
      $game_stock.add_actor(actor_id)
    else
    @actors.push(actor_id) unless @actors.include?(actor_id)
    $game_player.refresh
    $game_map.need_refresh = true
    end       
  end
 
  def remove_actor(actor_id)
  if $game_party.members.include?($game_actors[actor_id])
    @actors.delete(actor_id)
    $game_player.refresh
    $game_map.need_refresh = true
  else
    $game_stock.remove_actor(actor_id)
  end  
  end
end
 
#==============================================================================
# ● Data Manager Module  //// DO NOT EDIT!! 
#==============================================================================
module DataManager
#≡   ● Method Aliasing =======================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  class << self
    alias :sk_create_game_objects :create_game_objects
    alias :sk_make_save_contents :make_save_contents 
    alias :sk_extract_save_contents :extract_save_contents
  end
#≡   ● Data Setup  ===========================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  def self.create_game_objects
    sk_create_game_objects
    $game_stock         = Game_Stock.new
  end
  
  def self.make_save_contents
    contents = sk_make_save_contents
    contents[:stock]         = $game_stock
    contents
  end
  
  def self.extract_save_contents(contents)
    sk_extract_save_contents(contents)
    $game_stock         = contents[:stock]
  end
  
end
 
#==============================================================================
# ● Window_PartyList  ///// EDITABLE
#==============================================================================
class Window_PartyList < Window_Selectable
 
  attr_reader   :pending_index
#≡   ● Window Attributes  ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def initialize(x, y)
    super(x, y, 160, 270)
    @pending_index = -1
    refresh
  end
  
  def item_max
    $game_party.members.size
  end
 
  def item_height
    40 
  end
 
#≡   ● Actor MiniStatus Drawing  =============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
  def draw_item(index)
    actor = $game_party.members[index]
    rect = item_rect(index)
    draw_actor_face(actor, rect.x + 16, 38 + (index * 40))
    draw_actor_name(actor, 32 , index * 40, width = 104, )
    draw_actor_minimalisthp(actor, 32, 16 +(index * 40))
    draw_actor_minimalislevel(actor, 88, 16 +(index * 40))
  end
  
  def draw_actor_minimalisthp(actor, x, y)
    draw_gauge(x + 10, y ,40, actor.hp_rate, hp_gauge_color1, hp_gauge_color2)
    change_color(system_color)
    draw_text(x, y, 16, line_height, Vocab::hp_a)
  end
  
  def draw_actor_minimalislevel(actor, x, y)
    change_color(system_color)
    draw_text(x, y, 16, line_height, Vocab::level_a)
    change_color(normal_color)
    draw_text(x + 16, y, 24, line_height, actor.level, 2)
  end
 
#≡   ● Somewhat Vital Process  ===============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
def process_cursor_move
    return unless cursor_movable?
    last_index = @index
    cursor_down (Input.trigger?(:DOWN))  if Input.repeat?(:DOWN)
    cursor_up   (Input.trigger?(:UP))    if Input.repeat?(:UP)
    Sound.play_cursor if @index != last_index
    $pwindex = @index 
    refresh
  end
 
  def select_last
    select($game_party.menu_actor.index || 0)
  end
 
  def pending_index=(index)
    last_pending_index = @pending_index
    @pending_index = index
    redraw_item(@pending_index)
    redraw_item(last_pending_index)
  end
  
end
 
 
#==============================================================================
# ● Window_StockList  ///// EDITABLE
#==============================================================================
class Window_StockList < Window_Selectable
 
  attr_reader   :pending_index          
  
#≡   ● Window Attributes  ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def initialize
    super(160, 48, 384, 368)
    @pending_index = -1
    refresh
  end
 
  def item_max
    $game_stock.members.size
  end
 
  def item_height
    40
  end
  
  def col_max
    return 3
  end
  
  def row_max
    return 500
  end
  
  def spacing
    return 0
  end
#≡   ● Actor MiniStatus Drawing  =============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def draw_item(index)
    actor = $game_stock.members[index]
    enabled = $game_stock.members.include?(actor)
    rect = item_rect(index)
    draw_actor_face(actor, rect.x + 16,rect.y + 38)
    draw_actor_name(actor, rect.x + 32 ,rect.y - 1 , width = 96)   
    draw_actor_minimalislevel(actor,rect.x + 40,rect.y + 18 )
  end
  
  def draw_actor_minimalislevel(actor, x, y)
    change_color(system_color)
    draw_text(x, y, 16, line_height, Vocab::level_a)
    change_color(normal_color)
    draw_text(x + 16, y, 24, line_height, actor.level, 2)
  end
 
#≡   ● Somewhat Vital Process  ===============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def pending_index=(index)
    last_pending_index = @pending_index
    @pending_index = index
    redraw_item(@pending_index)
    redraw_item(last_pending_index)
  end
  
  def process_cursor_move
    return unless cursor_movable?
    last_index = @index
    cursor_down (Input.trigger?(:DOWN))  if Input.repeat?(:DOWN)
    cursor_up   (Input.trigger?(:UP))    if Input.repeat?(:UP)
    cursor_right(Input.trigger?(:RIGHT)) if Input.repeat?(:RIGHT)
    cursor_left (Input.trigger?(:LEFT))  if Input.repeat?(:LEFT)
    cursor_pagedown   if !handle?(:pagedown) && Input.trigger?(:R)
    cursor_pageup     if !handle?(:pageup)   && Input.trigger?(:L)
    Sound.play_cursor if @index != last_index
    $swindex = @index 
    refresh
  end
end
 
#==============================================================================
# ● Window_PartyTitle
#==============================================================================
class Window_PartyTitle < Window_Base
  
#≡   ● Initialize ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡ 
  def initialize
    super(0, 98, 160, 48)
    refresh
  end
 
#≡   ● Refreshing ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  def refresh
    contents.clear
    draw_text(0, 0, 150, 24, SAKURABA::SKPSS::PARTYWINDOWTITLE)
  end  
end
 
#==============================================================================
# ● Window_StockTitle
#==============================================================================
class Window_StockTitle < Window_Base
  
#≡   ● Initialize ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡ 
  def initialize
    super(160, 0, 384, 48)
    refresh
  end
 
#≡   ● Refreshing ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  def refresh
    contents.clear
    draw_text(0, 0, 360, 24, SAKURABA::SKPSS::STOCKWINDOWTITLE)
  end  
end
 
 
#≡   ● Add Actor Lock Param =================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
class RPG::Actor 
  
  def party_lock      
    if @party_lock.nil?
      if @note =~ /<party_lock>/
      @party_lock = true
      else
      @party_lock = false
      end
    end
        @party_lock
  end
end
 
#==============================================================================
# ● Scene_PartyStorageBox  //// EDITABBLE BUT NOT RECOMMENDED
#==============================================================================
class Scene_PartyStorageBox < Scene_Base
 
#≡   ● Initialize ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
  def start
    super
    create_cmdwindw
    create_partywindow
    create_boxwindow
    create_xtrawindows
  end
 
#≡   ● Create all Windows ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
  def create_xtrawindows
    @partitle =  Window_PartyTitle.new
    @sotckitle = Window_StockTitle.new
  end
  
  def create_cmdwindw
    @cmdwdw = Window_StoreCommand.new
    @cmdwdw.set_handler(:store,      method(:command_store))
    @cmdwdw.set_handler(:get,      method(:command_get))
    @cmdwdw.set_handler(:fire,      method(:command_fire))
    @cmdwdw.set_handler(:exit,      method(:return_scene))
    @cmdwdw.set_handler(:cancel,    method(:return_scene))
    @cmdwdw.activate
  end  
 
  def create_partywindow
    @ptywndw = Window_PartyList.new(0,146)
    @ptywndw.set_handler(:ok, method(:store_ok))
    @ptywndw.set_handler(:cancel, method(:store_cancel))
    
  end 
  
  def create_boxwindow
    @stckwndw = Window_StockList.new
    @stckwndw.set_handler(:ok, method(:get_ok))
    @stckwndw.set_handler(:cancel, method(:store_cancel))
  end 
  
#≡   ● Window Handlers   ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  def command_store
    @ptywndw.select(0)
    @ptywndw.activate
  end
  
  def command_get
    @stckwndw.select(0)
    @stckwndw.activate
  end
  
   def command_fire
    @stckwndw.select(0)
    @stckwndw.activate
    $releasing = true
  end
  
  def store_ok    
    storeactor = $game_party.members[$pwindex].id
    if $data_actors[storeactor].party_lock == true
      Sound.play_buzzer
      @ptywndw.activate
    else
    $game_stock.add_actor(storeactor)
    $game_party.remove_actor($game_party.members[$pwindex].id)
    @ptywndw.refresh
    @stckwndw.refresh
    if $game_party.members.size == 1
      @cmdwdw.refresh
      @cmdwdw.activate
    else
      @ptywndw.select(0)
      @ptywndw.activate
    end 
     
    
    end   
  end
 
  def get_ok
    if $releasing == true
    $game_stock.remove_actor($game_stock.members[$swindex].id)
    @ptywndw.refresh
    @stckwndw.refresh
    if $game_stock.members.size == 0 
      @cmdwdw.refresh
      @cmdwdw.activate
      releasing = false
    else
      @stckwndw.select(0)
      @stckwndw.activate
    end
    else 
    getactor = $game_stock.members[$swindex].id
    $game_party.add_actor(getactor)
    $game_stock.remove_actor($game_stock.members[$swindex].id)
    @ptywndw.refresh
    @stckwndw.refresh
    if $game_stock.members.size == 0 or $game_party.members.size >= SAKURABA::SKPSS::MAXPARTYMEMBERS
      @cmdwdw.refresh
      @cmdwdw.activate
    else
      @stckwndw.select(0)
      @stckwndw.activate
    end
  end
end
 
  
  def store_cancel
    @cmdwdw.refresh
    @cmdwdw.activate
    $releasing = false
  end    
end
#≡   ● End Of Script   ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡ 
 



Minimaliste, le "." comme signe de ralliement.


Slime55 - posté le 30/12/2014 à 19:59:01 (442 messages postés)

❤ 0

Non, rien qui n'a changé :/


7163D - posté le 30/12/2014 à 20:31:06 (946 messages postés)

❤ 0

Votez Minimaliste

Pardon, j'ai copié ton code et non le mien :fou3
J'ai édité mon message, il devrait fonctionner maintenant

Minimaliste, le "." comme signe de ralliement.


Slime55 - posté le 30/12/2014 à 21:05:12 (442 messages postés)

❤ 0

ça marche effectivement, merci !

Mais il s'avère que d'autre problèmes ont fait surface ...
J'aimerais si possible que le script " demande " un graphics spécial pour le graphics affiché dans le menu Storage, exemple : Nommez un fichier en Graphics_storage, graphics serait le nom du fichier, comme Ralph_storage ou encore Ernest_storage.
Et donc j'aimerais que ce soit ces graphics là qui soit représenté dans le menu, je ne sais pas si ça demande un travail conséquent ou non, mais je t'en serais très reconnaissant si tu arrivais à me faire cela !
Bien sûr, les autres aussi peuvent me donner des propositions !

Merci d'avance :sourit


7163D - posté le 30/12/2014 à 21:20:41 (946 messages postés)

❤ 0

Votez Minimaliste

Portion de code : Tout sélectionner

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
 
module Cache
  def self.storage(filename)
    load_bitmap("Graphics/Storage/", filename)
  end
end
 
class Window_Base < Window
  def draw_storage(face_name, face_index, x, y, enabled = true)
    bitmap = Cache.storage(face_name)
    rect = Rect.new(face_index % 4 * 96, face_index / 4 * 96, 96, 96)
    contents.blt(x, y, bitmap, rect, enabled ? 255 : translucent_alpha)
    bitmap.dispose
  end
end
 
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡    Sakuraba's Party Storage System (PSS) v1.2
#≡    by: Sakuraba
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Change Log:
#≡      12/12/2014: 13:30 > Added Release Feature
#≡      25/08/2014: 20:30 > Added Lock Feature
#≡      23/07/2014: 14:42 > Finished Script
#≡      22/07/2014: 19:00 > Started  Script
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Terms of Use:
#≡    ◦ Do NOT remove this Header
#≡    ◦ Give Credit to "Sakuraba" if Used
#≡    ◦ Feel Free to use in commercial and non commercial projects
#≡    ◦ Edit below Script Line ONLY if you know what you're doing
#≡    ◦ Don't post this in other forums, post a link to this forum instead
#≡    ◦ Do NOT steal the Code!!!
#≡    ◦ Do NOT steal the Sakuraba Nickname!!!
#≡    ◦ ENJOY
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Requires:
#≡    ◦ This Script
#≡    ◦ Nothing Else
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Description
#≡    ◦ This script allows the player to have a "storage" of párty members,
#≡      similar to pokemon games, stores actors does not gain experience or
#≡      level up, storage is unlimited, however this script allows to limit
#≡      the max mambers party can have. When party is full, adding a new actor
#≡      makes the new actor to be send to the stock.Now, actors can be locked
#≡      and released from storage.
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Compatibility & Glitches
#≡    ◦ None
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Script Calls
#≡    ◦ use "SceneManager.call(Scene_PartyStorageBox)" to call the storage scene
#≡    ◦ Use "$game_stock.add_actor(actor_id") to add an actor to the stock, where
#≡      actor_id is the database ID of an actor
#≡    ◦ Use "$game_stock.remove_actor(actor_id") to remove an actor of the stock,
#≡      where actor_id is the database ID of an actor
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Note Tags
#≡    ◦ use <party_lock> to lock actors in party
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
 
module SAKURABA
  module SKPSS
    
    MAXPARTYMEMBERS = 6   #this controls the max actors that the party can have
    PARTYWINDOWTITLE = "Party Members" #Text to show above party window
    STOCKWINDOWTITLE = "Waiting Members" #Text to show above party stock window
  end
end
 
#~ #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#~ #≡   ● SCRIPT LINE!!!  ◦Edit below ONLY if you know what you're doing 
#~ #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!    
 
 
#==============================================================================
# ● Window_StoreCommand
#==============================================================================
class Window_StoreCommand < Window_Command
  
#≡   ● Window Attributes Setup ===============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def self.init_command_position
    @@last_command_symbol = nil
  end
  
  def initialize
    super(0, 0)
  end
  
  def window_width
    return 160
  end
  
  def visible_line_number
    return 3 #item_max
  end
  
#≡   ● Window Commands Setup =================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def make_command_list
    add_command("Deposit",    :store,  $game_party.members.size > 1)
    mxptymbr = SAKURABA::SKPSS::MAXPARTYMEMBERS
    add_command("Withdraw",   :get,  $game_party.members.size < mxptymbr && $game_stock.members.size > 0 )
    add_command("Release",   :fire,  $game_stock.members.size > 0)
    add_command("Close",      :exit, true)
  end
 
  def process_ok   
    super
  end 
  
end
 
#==============================================================================
# ● Game_Stock 
#==============================================================================
class Game_Stock < Game_Unit 
  
#≡   ● Class Setup ===========================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
  def initialize
    super
    @actors = []
  end
 
  def exists
    !@actors.empty?
  end
 
  def members
    all_members
  end
 
  def all_members
    @actors.collect {|id| $game_actors[id] }
  end
 
  def highest_level
    lv = members.collect {|actor| actor.level }.max
  end
 
  def add_actor(actor_id)
    @actors.push(actor_id) unless @actors.include?(actor_id)
    actor = $game_actors[actor_id]
    actor.recover_all
    $game_player.refresh
    $game_map.need_refresh = true
  end
 
  def remove_actor(actor_id)
    @actors.delete(actor_id)
    $game_player.refresh
    $game_map.need_refresh = true
  end
 
  def members_equip_include?(item)
    members.any? {|actor| actor.equips.include?(item) }
  end
end
 
#==============================================================================
# ● Game_Party // Method Overwriting 
#==============================================================================
class Game_Party < Game_Unit
 
  def add_actor(actor_id)
    mxprtymbr = SAKURABA::SKPSS::MAXPARTYMEMBERS    
    if $game_party.members.size >= mxprtymbr 
      $game_stock.add_actor(actor_id)
    else
    @actors.push(actor_id) unless @actors.include?(actor_id)
    $game_player.refresh
    $game_map.need_refresh = true
    end       
  end
 
  def remove_actor(actor_id)
  if $game_party.members.include?($game_actors[actor_id])
    @actors.delete(actor_id)
    $game_player.refresh
    $game_map.need_refresh = true
  else
    $game_stock.remove_actor(actor_id)
  end  
  end
end
 
#==============================================================================
# ● Data Manager Module  //// DO NOT EDIT!! 
#==============================================================================
module DataManager
#≡   ● Method Aliasing =======================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  class << self
    alias :sk_create_game_objects :create_game_objects
    alias :sk_make_save_contents :make_save_contents 
    alias :sk_extract_save_contents :extract_save_contents
  end
#≡   ● Data Setup  ===========================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  def self.create_game_objects
    sk_create_game_objects
    $game_stock         = Game_Stock.new
  end
  
  def self.make_save_contents
    contents = sk_make_save_contents
    contents[:stock]         = $game_stock
    contents
  end
  
  def self.extract_save_contents(contents)
    sk_extract_save_contents(contents)
    $game_stock         = contents[:stock]
  end
  
end
 
#==============================================================================
# ● Window_PartyList  ///// EDITABLE
#==============================================================================
class Window_PartyList < Window_Selectable
 
  attr_reader   :pending_index
#≡   ● Window Attributes  ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def initialize(x, y)
    super(x, y, 160, 270)
    @pending_index = -1
    refresh
  end
  
  def item_max
    $game_party.members.size
  end
 
  def item_height
    40 
  end
 
#≡   ● Actor MiniStatus Drawing  =============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
  def draw_item(index)
    actor = $game_party.members[index]
    rect = item_rect(index)
    draw_actor_storage(actor, rect.x + 16, 38 + (index * 40))
    draw_actor_name(actor, 32 , index * 40, width = 104, )
    draw_actor_minimalisthp(actor, 32, 16 +(index * 40))
    draw_actor_minimalislevel(actor, 88, 16 +(index * 40))
  end
  
  def draw_actor_minimalisthp(actor, x, y)
    draw_gauge(x + 10, y ,40, actor.hp_rate, hp_gauge_color1, hp_gauge_color2)
    change_color(system_color)
    draw_text(x, y, 16, line_height, Vocab::hp_a)
  end
  
  def draw_actor_minimalislevel(actor, x, y)
    change_color(system_color)
    draw_text(x, y, 16, line_height, Vocab::level_a)
    change_color(normal_color)
    draw_text(x + 16, y, 24, line_height, actor.level, 2)
  end
 
#≡   ● Somewhat Vital Process  ===============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
def process_cursor_move
    return unless cursor_movable?
    last_index = @index
    cursor_down (Input.trigger?(:DOWN))  if Input.repeat?(:DOWN)
    cursor_up   (Input.trigger?(:UP))    if Input.repeat?(:UP)
    Sound.play_cursor if @index != last_index
    $pwindex = @index 
    refresh
  end
 
  def select_last
    select($game_party.menu_actor.index || 0)
  end
 
  def pending_index=(index)
    last_pending_index = @pending_index
    @pending_index = index
    redraw_item(@pending_index)
    redraw_item(last_pending_index)
  end
  
end
 
 
#==============================================================================
# ● Window_StockList  ///// EDITABLE
#==============================================================================
class Window_StockList < Window_Selectable
 
  attr_reader   :pending_index          
  
#≡   ● Window Attributes  ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def initialize
    super(160, 48, 384, 368)
    @pending_index = -1
    refresh
  end
 
  def item_max
    $game_stock.members.size
  end
 
  def item_height
    40
  end
  
  def col_max
    return 3
  end
  
  def row_max
    return 500
  end
  
  def spacing
    return 0
  end
#≡   ● Actor MiniStatus Drawing  =============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def draw_item(index)
    actor = $game_stock.members[index]
    enabled = $game_stock.members.include?(actor)
    rect = item_rect(index)
    draw_actor_storage(actor, rect.x + 16,rect.y + 38)
    draw_actor_name(actor, rect.x + 32 ,rect.y - 1 , width = 96)   
    draw_actor_minimalislevel(actor,rect.x + 40,rect.y + 18 )
  end
  
  def draw_actor_minimalislevel(actor, x, y)
    change_color(system_color)
    draw_text(x, y, 16, line_height, Vocab::level_a)
    change_color(normal_color)
    draw_text(x + 16, y, 24, line_height, actor.level, 2)
  end
 
#≡   ● Somewhat Vital Process  ===============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def pending_index=(index)
    last_pending_index = @pending_index
    @pending_index = index
    redraw_item(@pending_index)
    redraw_item(last_pending_index)
  end
  
  def process_cursor_move
    return unless cursor_movable?
    last_index = @index
    cursor_down (Input.trigger?(:DOWN))  if Input.repeat?(:DOWN)
    cursor_up   (Input.trigger?(:UP))    if Input.repeat?(:UP)
    cursor_right(Input.trigger?(:RIGHT)) if Input.repeat?(:RIGHT)
    cursor_left (Input.trigger?(:LEFT))  if Input.repeat?(:LEFT)
    cursor_pagedown   if !handle?(:pagedown) && Input.trigger?(:R)
    cursor_pageup     if !handle?(:pageup)   && Input.trigger?(:L)
    Sound.play_cursor if @index != last_index
    $swindex = @index 
    refresh
  end
end
 
#==============================================================================
# ● Window_PartyTitle
#==============================================================================
class Window_PartyTitle < Window_Base
  
#≡   ● Initialize ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡ 
  def initialize
    super(0, 98, 160, 48)
    refresh
  end
 
#≡   ● Refreshing ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  def refresh
    contents.clear
    draw_text(0, 0, 150, 24, SAKURABA::SKPSS::PARTYWINDOWTITLE)
  end  
end
 
#==============================================================================
# ● Window_StockTitle
#==============================================================================
class Window_StockTitle < Window_Base
  
#≡   ● Initialize ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡ 
  def initialize
    super(160, 0, 384, 48)
    refresh
  end
 
#≡   ● Refreshing ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  def refresh
    contents.clear
    draw_text(0, 0, 360, 24, SAKURABA::SKPSS::STOCKWINDOWTITLE)
  end  
end
 
 
#≡   ● Add Actor Lock Param =================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
class RPG::Actor 
  
  def party_lock      
    if @party_lock.nil?
      if @note =~ /<party_lock>/
      @party_lock = true
      else
      @party_lock = false
      end
    end
        @party_lock
  end
end
 
#==============================================================================
# ● Scene_PartyStorageBox  //// EDITABBLE BUT NOT RECOMMENDED
#==============================================================================
class Scene_PartyStorageBox < Scene_Base
 
#≡   ● Initialize ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
  def start
    super
    create_cmdwindw
    create_partywindow
    create_boxwindow
    create_xtrawindows
  end
 
#≡   ● Create all Windows ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
  def create_xtrawindows
    @partitle =  Window_PartyTitle.new
    @sotckitle = Window_StockTitle.new
  end
  
  def create_cmdwindw
    @cmdwdw = Window_StoreCommand.new
    @cmdwdw.set_handler(:store,      method(:command_store))
    @cmdwdw.set_handler(:get,      method(:command_get))
    @cmdwdw.set_handler(:fire,      method(:command_fire))
    @cmdwdw.set_handler(:exit,      method(:return_scene))
    @cmdwdw.set_handler(:cancel,    method(:return_scene))
    @cmdwdw.activate
  end  
 
  def create_partywindow
    @ptywndw = Window_PartyList.new(0,146)
    @ptywndw.set_handler(:ok, method(:store_ok))
    @ptywndw.set_handler(:cancel, method(:store_cancel))
    
  end 
  
  def create_boxwindow
    @stckwndw = Window_StockList.new
    @stckwndw.set_handler(:ok, method(:get_ok))
    @stckwndw.set_handler(:cancel, method(:store_cancel))
  end 
  
#≡   ● Window Handlers   ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  def command_store
    @ptywndw.select(0)
    @ptywndw.activate
  end
  
  def command_get
    @stckwndw.select(0)
    @stckwndw.activate
  end
  
   def command_fire
    @stckwndw.select(0)
    @stckwndw.activate
    $releasing = true
  end
  
  def store_ok    
    storeactor = $game_party.members[$pwindex].id
    if $data_actors[storeactor].party_lock == true
      Sound.play_buzzer
      @ptywndw.activate
    else
    $game_stock.add_actor(storeactor)
    $game_party.remove_actor($game_party.members[$pwindex].id)
    @ptywndw.refresh
    @stckwndw.refresh
    if $game_party.members.size == 1
      @cmdwdw.refresh
      @cmdwdw.activate
    else
      @ptywndw.select(0)
      @ptywndw.activate
    end 
     
    
    end   
  end
 
  def get_ok
    if $releasing == true
    $game_stock.remove_actor($game_stock.members[$swindex].id)
    @ptywndw.refresh
    @stckwndw.refresh
    if $game_stock.members.size == 0 
      @cmdwdw.refresh
      @cmdwdw.activate
      releasing = false
    else
      @stckwndw.select(0)
      @stckwndw.activate
    end
    else 
    getactor = $game_stock.members[$swindex].id
    $game_party.add_actor(getactor)
    $game_stock.remove_actor($game_stock.members[$swindex].id)
    @ptywndw.refresh
    @stckwndw.refresh
    if $game_stock.members.size == 0 or $game_party.members.size >= SAKURABA::SKPSS::MAXPARTYMEMBERS
      @cmdwdw.refresh
      @cmdwdw.activate
    else
      @stckwndw.select(0)
      @stckwndw.activate
    end
  end
end
 
  
  def store_cancel
    @cmdwdw.refresh
    @cmdwdw.activate
    $releasing = false
  end    
end
#≡   ● End Of Script   ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡ 
 


Remplace ton script par celui-ci.
Il faut placer les images que tu veut voir en combat dans le dossier Graphics/Storage/ et leur donner le nom du héro.
Par contre fait attention à ce que ces images aient les mêmes dimensions que les faces, je n'ai pas trouvé comment modifier la taille de l'image.
Enjoy!

Minimaliste, le "." comme signe de ralliement.


Slime55 - posté le 31/12/2014 à 18:46:04 (442 messages postés)

❤ 0

Merci ! Mais il y a une erreur :
undefined method " draw_actor_storage " for #<Window_PartyList:0x8f52640>


Vraiment désolé de t'embêter, si tu en as marre, je comprendrais et je ne t'en voudrais pas !


7163D - posté le 31/12/2014 à 19:03:15 (946 messages postés)

❤ 0

Votez Minimaliste

Pas de problème!
J'ai juste écrit un peu vite:

Portion de code : Tout sélectionner

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
 
module Cache
  def self.storage(filename)
    load_bitmap("Graphics/Storage/", filename)
  end
end
 
class Window_Base < Window
  def draw_actor_storage(face_name, face_index, x, y, enabled = true)
    bitmap = Cache.storage(face_name)
    rect = Rect.new(face_index % 4 * 96, face_index / 4 * 96, 96, 96)
    contents.blt(x, y, bitmap, rect, enabled ? 255 : translucent_alpha)
    bitmap.dispose
  end
end
 
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡    Sakuraba's Party Storage System (PSS) v1.2
#≡    by: Sakuraba
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Change Log:
#≡      12/12/2014: 13:30 > Added Release Feature
#≡      25/08/2014: 20:30 > Added Lock Feature
#≡      23/07/2014: 14:42 > Finished Script
#≡      22/07/2014: 19:00 > Started  Script
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Terms of Use:
#≡    ◦ Do NOT remove this Header
#≡    ◦ Give Credit to "Sakuraba" if Used
#≡    ◦ Feel Free to use in commercial and non commercial projects
#≡    ◦ Edit below Script Line ONLY if you know what you're doing
#≡    ◦ Don't post this in other forums, post a link to this forum instead
#≡    ◦ Do NOT steal the Code!!!
#≡    ◦ Do NOT steal the Sakuraba Nickname!!!
#≡    ◦ ENJOY
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Requires:
#≡    ◦ This Script
#≡    ◦ Nothing Else
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Description
#≡    ◦ This script allows the player to have a "storage" of párty members,
#≡      similar to pokemon games, stores actors does not gain experience or
#≡      level up, storage is unlimited, however this script allows to limit
#≡      the max mambers party can have. When party is full, adding a new actor
#≡      makes the new actor to be send to the stock.Now, actors can be locked
#≡      and released from storage.
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Compatibility & Glitches
#≡    ◦ None
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Script Calls
#≡    ◦ use "SceneManager.call(Scene_PartyStorageBox)" to call the storage scene
#≡    ◦ Use "$game_stock.add_actor(actor_id") to add an actor to the stock, where
#≡      actor_id is the database ID of an actor
#≡    ◦ Use "$game_stock.remove_actor(actor_id") to remove an actor of the stock,
#≡      where actor_id is the database ID of an actor
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Note Tags
#≡    ◦ use <party_lock> to lock actors in party
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
 
module SAKURABA
  module SKPSS
    
    MAXPARTYMEMBERS = 6   #this controls the max actors that the party can have
    PARTYWINDOWTITLE = "Party Members" #Text to show above party window
    STOCKWINDOWTITLE = "Waiting Members" #Text to show above party stock window
  end
end
 
#~ #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#~ #≡   ● SCRIPT LINE!!!  ◦Edit below ONLY if you know what you're doing 
#~ #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!    
 
 
#==============================================================================
# ● Window_StoreCommand
#==============================================================================
class Window_StoreCommand < Window_Command
  
#≡   ● Window Attributes Setup ===============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def self.init_command_position
    @@last_command_symbol = nil
  end
  
  def initialize
    super(0, 0)
  end
  
  def window_width
    return 160
  end
  
  def visible_line_number
    return 3 #item_max
  end
  
#≡   ● Window Commands Setup =================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def make_command_list
    add_command("Deposit",    :store,  $game_party.members.size > 1)
    mxptymbr = SAKURABA::SKPSS::MAXPARTYMEMBERS
    add_command("Withdraw",   :get,  $game_party.members.size < mxptymbr && $game_stock.members.size > 0 )
    add_command("Release",   :fire,  $game_stock.members.size > 0)
    add_command("Close",      :exit, true)
  end
 
  def process_ok   
    super
  end 
  
end
 
#==============================================================================
# ● Game_Stock 
#==============================================================================
class Game_Stock < Game_Unit 
  
#≡   ● Class Setup ===========================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
  def initialize
    super
    @actors = []
  end
 
  def exists
    !@actors.empty?
  end
 
  def members
    all_members
  end
 
  def all_members
    @actors.collect {|id| $game_actors[id] }
  end
 
  def highest_level
    lv = members.collect {|actor| actor.level }.max
  end
 
  def add_actor(actor_id)
    @actors.push(actor_id) unless @actors.include?(actor_id)
    actor = $game_actors[actor_id]
    actor.recover_all
    $game_player.refresh
    $game_map.need_refresh = true
  end
 
  def remove_actor(actor_id)
    @actors.delete(actor_id)
    $game_player.refresh
    $game_map.need_refresh = true
  end
 
  def members_equip_include?(item)
    members.any? {|actor| actor.equips.include?(item) }
  end
end
 
#==============================================================================
# ● Game_Party // Method Overwriting 
#==============================================================================
class Game_Party < Game_Unit
 
  def add_actor(actor_id)
    mxprtymbr = SAKURABA::SKPSS::MAXPARTYMEMBERS    
    if $game_party.members.size >= mxprtymbr 
      $game_stock.add_actor(actor_id)
    else
    @actors.push(actor_id) unless @actors.include?(actor_id)
    $game_player.refresh
    $game_map.need_refresh = true
    end       
  end
 
  def remove_actor(actor_id)
  if $game_party.members.include?($game_actors[actor_id])
    @actors.delete(actor_id)
    $game_player.refresh
    $game_map.need_refresh = true
  else
    $game_stock.remove_actor(actor_id)
  end  
  end
end
 
#==============================================================================
# ● Data Manager Module  //// DO NOT EDIT!! 
#==============================================================================
module DataManager
#≡   ● Method Aliasing =======================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  class << self
    alias :sk_create_game_objects :create_game_objects
    alias :sk_make_save_contents :make_save_contents 
    alias :sk_extract_save_contents :extract_save_contents
  end
#≡   ● Data Setup  ===========================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  def self.create_game_objects
    sk_create_game_objects
    $game_stock         = Game_Stock.new
  end
  
  def self.make_save_contents
    contents = sk_make_save_contents
    contents[:stock]         = $game_stock
    contents
  end
  
  def self.extract_save_contents(contents)
    sk_extract_save_contents(contents)
    $game_stock         = contents[:stock]
  end
  
end
 
#==============================================================================
# ● Window_PartyList  ///// EDITABLE
#==============================================================================
class Window_PartyList < Window_Selectable
 
  attr_reader   :pending_index
#≡   ● Window Attributes  ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def initialize(x, y)
    super(x, y, 160, 270)
    @pending_index = -1
    refresh
  end
  
  def item_max
    $game_party.members.size
  end
 
  def item_height
    40 
  end
 
#≡   ● Actor MiniStatus Drawing  =============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
  def draw_item(index)
    actor = $game_party.members[index]
    rect = item_rect(index)
    draw_actor_storage(actor, rect.x + 16, 38 + (index * 40))
    draw_actor_name(actor, 32 , index * 40, width = 104, )
    draw_actor_minimalisthp(actor, 32, 16 +(index * 40))
    draw_actor_minimalislevel(actor, 88, 16 +(index * 40))
  end
  
  def draw_actor_minimalisthp(actor, x, y)
    draw_gauge(x + 10, y ,40, actor.hp_rate, hp_gauge_color1, hp_gauge_color2)
    change_color(system_color)
    draw_text(x, y, 16, line_height, Vocab::hp_a)
  end
  
  def draw_actor_minimalislevel(actor, x, y)
    change_color(system_color)
    draw_text(x, y, 16, line_height, Vocab::level_a)
    change_color(normal_color)
    draw_text(x + 16, y, 24, line_height, actor.level, 2)
  end
 
#≡   ● Somewhat Vital Process  ===============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
def process_cursor_move
    return unless cursor_movable?
    last_index = @index
    cursor_down (Input.trigger?(:DOWN))  if Input.repeat?(:DOWN)
    cursor_up   (Input.trigger?(:UP))    if Input.repeat?(:UP)
    Sound.play_cursor if @index != last_index
    $pwindex = @index 
    refresh
  end
 
  def select_last
    select($game_party.menu_actor.index || 0)
  end
 
  def pending_index=(index)
    last_pending_index = @pending_index
    @pending_index = index
    redraw_item(@pending_index)
    redraw_item(last_pending_index)
  end
  
end
 
 
#==============================================================================
# ● Window_StockList  ///// EDITABLE
#==============================================================================
class Window_StockList < Window_Selectable
 
  attr_reader   :pending_index          
  
#≡   ● Window Attributes  ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def initialize
    super(160, 48, 384, 368)
    @pending_index = -1
    refresh
  end
 
  def item_max
    $game_stock.members.size
  end
 
  def item_height
    40
  end
  
  def col_max
    return 3
  end
  
  def row_max
    return 500
  end
  
  def spacing
    return 0
  end
#≡   ● Actor MiniStatus Drawing  =============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def draw_item(index)
    actor = $game_stock.members[index]
    enabled = $game_stock.members.include?(actor)
    rect = item_rect(index)
    draw_actor_storage(actor, rect.x + 16,rect.y + 38)
    draw_actor_name(actor, rect.x + 32 ,rect.y - 1 , width = 96)   
    draw_actor_minimalislevel(actor,rect.x + 40,rect.y + 18 )
  end
  
  def draw_actor_minimalislevel(actor, x, y)
    change_color(system_color)
    draw_text(x, y, 16, line_height, Vocab::level_a)
    change_color(normal_color)
    draw_text(x + 16, y, 24, line_height, actor.level, 2)
  end
 
#≡   ● Somewhat Vital Process  ===============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def pending_index=(index)
    last_pending_index = @pending_index
    @pending_index = index
    redraw_item(@pending_index)
    redraw_item(last_pending_index)
  end
  
  def process_cursor_move
    return unless cursor_movable?
    last_index = @index
    cursor_down (Input.trigger?(:DOWN))  if Input.repeat?(:DOWN)
    cursor_up   (Input.trigger?(:UP))    if Input.repeat?(:UP)
    cursor_right(Input.trigger?(:RIGHT)) if Input.repeat?(:RIGHT)
    cursor_left (Input.trigger?(:LEFT))  if Input.repeat?(:LEFT)
    cursor_pagedown   if !handle?(:pagedown) && Input.trigger?(:R)
    cursor_pageup     if !handle?(:pageup)   && Input.trigger?(:L)
    Sound.play_cursor if @index != last_index
    $swindex = @index 
    refresh
  end
end
 
#==============================================================================
# ● Window_PartyTitle
#==============================================================================
class Window_PartyTitle < Window_Base
  
#≡   ● Initialize ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡ 
  def initialize
    super(0, 98, 160, 48)
    refresh
  end
 
#≡   ● Refreshing ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  def refresh
    contents.clear
    draw_text(0, 0, 150, 24, SAKURABA::SKPSS::PARTYWINDOWTITLE)
  end  
end
 
#==============================================================================
# ● Window_StockTitle
#==============================================================================
class Window_StockTitle < Window_Base
  
#≡   ● Initialize ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡ 
  def initialize
    super(160, 0, 384, 48)
    refresh
  end
 
#≡   ● Refreshing ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  def refresh
    contents.clear
    draw_text(0, 0, 360, 24, SAKURABA::SKPSS::STOCKWINDOWTITLE)
  end  
end
 
 
#≡   ● Add Actor Lock Param =================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
class RPG::Actor 
  
  def party_lock      
    if @party_lock.nil?
      if @note =~ /<party_lock>/
      @party_lock = true
      else
      @party_lock = false
      end
    end
        @party_lock
  end
end
 
#==============================================================================
# ● Scene_PartyStorageBox  //// EDITABBLE BUT NOT RECOMMENDED
#==============================================================================
class Scene_PartyStorageBox < Scene_Base
 
#≡   ● Initialize ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
  def start
    super
    create_cmdwindw
    create_partywindow
    create_boxwindow
    create_xtrawindows
  end
 
#≡   ● Create all Windows ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
  def create_xtrawindows
    @partitle =  Window_PartyTitle.new
    @sotckitle = Window_StockTitle.new
  end
  
  def create_cmdwindw
    @cmdwdw = Window_StoreCommand.new
    @cmdwdw.set_handler(:store,      method(:command_store))
    @cmdwdw.set_handler(:get,      method(:command_get))
    @cmdwdw.set_handler(:fire,      method(:command_fire))
    @cmdwdw.set_handler(:exit,      method(:return_scene))
    @cmdwdw.set_handler(:cancel,    method(:return_scene))
    @cmdwdw.activate
  end  
 
  def create_partywindow
    @ptywndw = Window_PartyList.new(0,146)
    @ptywndw.set_handler(:ok, method(:store_ok))
    @ptywndw.set_handler(:cancel, method(:store_cancel))
    
  end 
  
  def create_boxwindow
    @stckwndw = Window_StockList.new
    @stckwndw.set_handler(:ok, method(:get_ok))
    @stckwndw.set_handler(:cancel, method(:store_cancel))
  end 
  
#≡   ● Window Handlers   ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  def command_store
    @ptywndw.select(0)
    @ptywndw.activate
  end
  
  def command_get
    @stckwndw.select(0)
    @stckwndw.activate
  end
  
   def command_fire
    @stckwndw.select(0)
    @stckwndw.activate
    $releasing = true
  end
  
  def store_ok    
    storeactor = $game_party.members[$pwindex].id
    if $data_actors[storeactor].party_lock == true
      Sound.play_buzzer
      @ptywndw.activate
    else
    $game_stock.add_actor(storeactor)
    $game_party.remove_actor($game_party.members[$pwindex].id)
    @ptywndw.refresh
    @stckwndw.refresh
    if $game_party.members.size == 1
      @cmdwdw.refresh
      @cmdwdw.activate
    else
      @ptywndw.select(0)
      @ptywndw.activate
    end 
     
    
    end   
  end
 
  def get_ok
    if $releasing == true
    $game_stock.remove_actor($game_stock.members[$swindex].id)
    @ptywndw.refresh
    @stckwndw.refresh
    if $game_stock.members.size == 0 
      @cmdwdw.refresh
      @cmdwdw.activate
      releasing = false
    else
      @stckwndw.select(0)
      @stckwndw.activate
    end
    else 
    getactor = $game_stock.members[$swindex].id
    $game_party.add_actor(getactor)
    $game_stock.remove_actor($game_stock.members[$swindex].id)
    @ptywndw.refresh
    @stckwndw.refresh
    if $game_stock.members.size == 0 or $game_party.members.size >= SAKURABA::SKPSS::MAXPARTYMEMBERS
      @cmdwdw.refresh
      @cmdwdw.activate
    else
      @stckwndw.select(0)
      @stckwndw.activate
    end
  end
end
 
  
  def store_cancel
    @cmdwdw.refresh
    @cmdwdw.activate
    $releasing = false
  end    
end
#≡   ● End Of Script   ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡ 
 



Minimaliste, le "." comme signe de ralliement.


Slime55 - posté le 31/12/2014 à 19:24:09 (442 messages postés)

❤ 0

ArgumentError occurred

wrong number of arguments (3 for 4 )

ligne 248


7163D - posté le 01/01/2015 à 11:31:50 (946 messages postés)

❤ 0

Votez Minimaliste

J'ai confondu deux fonctions, ce qui explique les deux erreurs...

Portion de code : Tout sélectionner

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
 
module Cache
  def self.storage(filename)
    load_bitmap("Graphics/Storage/", filename)
  end
end
 
class Window_Base < Window
  def draw_storage(face_name, face_index, x, y, enabled = true)
    bitmap = Cache.storage(face_name)
    rect = Rect.new(face_index % 4 * 96, face_index / 4 * 96, 96, 96)
    contents.blt(x, y, bitmap, rect, enabled ? 255 : translucent_alpha)
    bitmap.dispose
  end
 def draw_actor_storage(actor, x, y, enabled = true)
    draw_storage(actor.face_name, actor.face_index, x, y, enabled)
  end
end
 
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡    Sakuraba's Party Storage System (PSS) v1.2
#≡    by: Sakuraba
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Change Log:
#≡      12/12/2014: 13:30 > Added Release Feature
#≡      25/08/2014: 20:30 > Added Lock Feature
#≡      23/07/2014: 14:42 > Finished Script
#≡      22/07/2014: 19:00 > Started  Script
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Terms of Use:
#≡    ◦ Do NOT remove this Header
#≡    ◦ Give Credit to "Sakuraba" if Used
#≡    ◦ Feel Free to use in commercial and non commercial projects
#≡    ◦ Edit below Script Line ONLY if you know what you're doing
#≡    ◦ Don't post this in other forums, post a link to this forum instead
#≡    ◦ Do NOT steal the Code!!!
#≡    ◦ Do NOT steal the Sakuraba Nickname!!!
#≡    ◦ ENJOY
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Requires:
#≡    ◦ This Script
#≡    ◦ Nothing Else
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Description
#≡    ◦ This script allows the player to have a "storage" of párty members,
#≡      similar to pokemon games, stores actors does not gain experience or
#≡      level up, storage is unlimited, however this script allows to limit
#≡      the max mambers party can have. When party is full, adding a new actor
#≡      makes the new actor to be send to the stock.Now, actors can be locked
#≡      and released from storage.
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Compatibility & Glitches
#≡    ◦ None
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Script Calls
#≡    ◦ use "SceneManager.call(Scene_PartyStorageBox)" to call the storage scene
#≡    ◦ Use "$game_stock.add_actor(actor_id") to add an actor to the stock, where
#≡      actor_id is the database ID of an actor
#≡    ◦ Use "$game_stock.remove_actor(actor_id") to remove an actor of the stock,
#≡      where actor_id is the database ID of an actor
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
#≡   ● Note Tags
#≡    ◦ use <party_lock> to lock actors in party
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
 
module SAKURABA
  module SKPSS
    
    MAXPARTYMEMBERS = 6   #this controls the max actors that the party can have
    PARTYWINDOWTITLE = "Party Members" #Text to show above party window
    STOCKWINDOWTITLE = "Waiting Members" #Text to show above party stock window
  end
end
 
#~ #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#~ #≡   ● SCRIPT LINE!!!  ◦Edit below ONLY if you know what you're doing 
#~ #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!    
 
 
#==============================================================================
# ● Window_StoreCommand
#==============================================================================
class Window_StoreCommand < Window_Command
  
#≡   ● Window Attributes Setup ===============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def self.init_command_position
    @@last_command_symbol = nil
  end
  
  def initialize
    super(0, 0)
  end
  
  def window_width
    return 160
  end
  
  def visible_line_number
    return 3 #item_max
  end
  
#≡   ● Window Commands Setup =================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def make_command_list
    add_command("Deposit",    :store,  $game_party.members.size > 1)
    mxptymbr = SAKURABA::SKPSS::MAXPARTYMEMBERS
    add_command("Withdraw",   :get,  $game_party.members.size < mxptymbr && $game_stock.members.size > 0 )
    add_command("Release",   :fire,  $game_stock.members.size > 0)
    add_command("Close",      :exit, true)
  end
 
  def process_ok   
    super
  end 
  
end
 
#==============================================================================
# ● Game_Stock 
#==============================================================================
class Game_Stock < Game_Unit 
  
#≡   ● Class Setup ===========================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
  def initialize
    super
    @actors = []
  end
 
  def exists
    !@actors.empty?
  end
 
  def members
    all_members
  end
 
  def all_members
    @actors.collect {|id| $game_actors[id] }
  end
 
  def highest_level
    lv = members.collect {|actor| actor.level }.max
  end
 
  def add_actor(actor_id)
    @actors.push(actor_id) unless @actors.include?(actor_id)
    actor = $game_actors[actor_id]
    actor.recover_all
    $game_player.refresh
    $game_map.need_refresh = true
  end
 
  def remove_actor(actor_id)
    @actors.delete(actor_id)
    $game_player.refresh
    $game_map.need_refresh = true
  end
 
  def members_equip_include?(item)
    members.any? {|actor| actor.equips.include?(item) }
  end
end
 
#==============================================================================
# ● Game_Party // Method Overwriting 
#==============================================================================
class Game_Party < Game_Unit
 
  def add_actor(actor_id)
    mxprtymbr = SAKURABA::SKPSS::MAXPARTYMEMBERS    
    if $game_party.members.size >= mxprtymbr 
      $game_stock.add_actor(actor_id)
    else
    @actors.push(actor_id) unless @actors.include?(actor_id)
    $game_player.refresh
    $game_map.need_refresh = true
    end       
  end
 
  def remove_actor(actor_id)
  if $game_party.members.include?($game_actors[actor_id])
    @actors.delete(actor_id)
    $game_player.refresh
    $game_map.need_refresh = true
  else
    $game_stock.remove_actor(actor_id)
  end  
  end
end
 
#==============================================================================
# ● Data Manager Module  //// DO NOT EDIT!! 
#==============================================================================
module DataManager
#≡   ● Method Aliasing =======================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  class << self
    alias :sk_create_game_objects :create_game_objects
    alias :sk_make_save_contents :make_save_contents 
    alias :sk_extract_save_contents :extract_save_contents
  end
#≡   ● Data Setup  ===========================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  def self.create_game_objects
    sk_create_game_objects
    $game_stock         = Game_Stock.new
  end
  
  def self.make_save_contents
    contents = sk_make_save_contents
    contents[:stock]         = $game_stock
    contents
  end
  
  def self.extract_save_contents(contents)
    sk_extract_save_contents(contents)
    $game_stock         = contents[:stock]
  end
  
end
 
#==============================================================================
# ● Window_PartyList  ///// EDITABLE
#==============================================================================
class Window_PartyList < Window_Selectable
 
  attr_reader   :pending_index
#≡   ● Window Attributes  ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def initialize(x, y)
    super(x, y, 160, 270)
    @pending_index = -1
    refresh
  end
  
  def item_max
    $game_party.members.size
  end
 
  def item_height
    40 
  end
 
#≡   ● Actor MiniStatus Drawing  =============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
  def draw_item(index)
    actor = $game_party.members[index]
    rect = item_rect(index)
    draw_actor_storage(actor, rect.x + 16, 38 + (index * 40))
    draw_actor_name(actor, 32 , index * 40, width = 104, )
    draw_actor_minimalisthp(actor, 32, 16 +(index * 40))
    draw_actor_minimalislevel(actor, 88, 16 +(index * 40))
  end
  
  def draw_actor_minimalisthp(actor, x, y)
    draw_gauge(x + 10, y ,40, actor.hp_rate, hp_gauge_color1, hp_gauge_color2)
    change_color(system_color)
    draw_text(x, y, 16, line_height, Vocab::hp_a)
  end
  
  def draw_actor_minimalislevel(actor, x, y)
    change_color(system_color)
    draw_text(x, y, 16, line_height, Vocab::level_a)
    change_color(normal_color)
    draw_text(x + 16, y, 24, line_height, actor.level, 2)
  end
 
#≡   ● Somewhat Vital Process  ===============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
def process_cursor_move
    return unless cursor_movable?
    last_index = @index
    cursor_down (Input.trigger?(:DOWN))  if Input.repeat?(:DOWN)
    cursor_up   (Input.trigger?(:UP))    if Input.repeat?(:UP)
    Sound.play_cursor if @index != last_index
    $pwindex = @index 
    refresh
  end
 
  def select_last
    select($game_party.menu_actor.index || 0)
  end
 
  def pending_index=(index)
    last_pending_index = @pending_index
    @pending_index = index
    redraw_item(@pending_index)
    redraw_item(last_pending_index)
  end
  
end
 
 
#==============================================================================
# ● Window_StockList  ///// EDITABLE
#==============================================================================
class Window_StockList < Window_Selectable
 
  attr_reader   :pending_index          
  
#≡   ● Window Attributes  ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def initialize
    super(160, 48, 384, 368)
    @pending_index = -1
    refresh
  end
 
  def item_max
    $game_stock.members.size
  end
 
  def item_height
    40
  end
  
  def col_max
    return 3
  end
  
  def row_max
    return 500
  end
  
  def spacing
    return 0
  end
#≡   ● Actor MiniStatus Drawing  =============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def draw_item(index)
    actor = $game_stock.members[index]
    enabled = $game_stock.members.include?(actor)
    rect = item_rect(index)
    draw_actor_storage(actor, rect.x + 16,rect.y + 38)
    draw_actor_name(actor, rect.x + 32 ,rect.y - 1 , width = 96)   
    draw_actor_minimalislevel(actor,rect.x + 40,rect.y + 18 )
  end
  
  def draw_actor_minimalislevel(actor, x, y)
    change_color(system_color)
    draw_text(x, y, 16, line_height, Vocab::level_a)
    change_color(normal_color)
    draw_text(x + 16, y, 24, line_height, actor.level, 2)
  end
 
#≡   ● Somewhat Vital Process  ===============================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  def pending_index=(index)
    last_pending_index = @pending_index
    @pending_index = index
    redraw_item(@pending_index)
    redraw_item(last_pending_index)
  end
  
  def process_cursor_move
    return unless cursor_movable?
    last_index = @index
    cursor_down (Input.trigger?(:DOWN))  if Input.repeat?(:DOWN)
    cursor_up   (Input.trigger?(:UP))    if Input.repeat?(:UP)
    cursor_right(Input.trigger?(:RIGHT)) if Input.repeat?(:RIGHT)
    cursor_left (Input.trigger?(:LEFT))  if Input.repeat?(:LEFT)
    cursor_pagedown   if !handle?(:pagedown) && Input.trigger?(:R)
    cursor_pageup     if !handle?(:pageup)   && Input.trigger?(:L)
    Sound.play_cursor if @index != last_index
    $swindex = @index 
    refresh
  end
end
 
#==============================================================================
# ● Window_PartyTitle
#==============================================================================
class Window_PartyTitle < Window_Base
  
#≡   ● Initialize ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡ 
  def initialize
    super(0, 98, 160, 48)
    refresh
  end
 
#≡   ● Refreshing ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  def refresh
    contents.clear
    draw_text(0, 0, 150, 24, SAKURABA::SKPSS::PARTYWINDOWTITLE)
  end  
end
 
#==============================================================================
# ● Window_StockTitle
#==============================================================================
class Window_StockTitle < Window_Base
  
#≡   ● Initialize ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡ 
  def initialize
    super(160, 0, 384, 48)
    refresh
  end
 
#≡   ● Refreshing ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  def refresh
    contents.clear
    draw_text(0, 0, 360, 24, SAKURABA::SKPSS::STOCKWINDOWTITLE)
  end  
end
 
 
#≡   ● Add Actor Lock Param =================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
class RPG::Actor 
  
  def party_lock      
    if @party_lock.nil?
      if @note =~ /<party_lock>/
      @party_lock = true
      else
      @party_lock = false
      end
    end
        @party_lock
  end
end
 
#==============================================================================
# ● Scene_PartyStorageBox  //// EDITABBLE BUT NOT RECOMMENDED
#==============================================================================
class Scene_PartyStorageBox < Scene_Base
 
#≡   ● Initialize ============================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
  def start
    super
    create_cmdwindw
    create_partywindow
    create_boxwindow
    create_xtrawindows
  end
 
#≡   ● Create all Windows ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡  
  def create_xtrawindows
    @partitle =  Window_PartyTitle.new
    @sotckitle = Window_StockTitle.new
  end
  
  def create_cmdwindw
    @cmdwdw = Window_StoreCommand.new
    @cmdwdw.set_handler(:store,      method(:command_store))
    @cmdwdw.set_handler(:get,      method(:command_get))
    @cmdwdw.set_handler(:fire,      method(:command_fire))
    @cmdwdw.set_handler(:exit,      method(:return_scene))
    @cmdwdw.set_handler(:cancel,    method(:return_scene))
    @cmdwdw.activate
  end  
 
  def create_partywindow
    @ptywndw = Window_PartyList.new(0,146)
    @ptywndw.set_handler(:ok, method(:store_ok))
    @ptywndw.set_handler(:cancel, method(:store_cancel))
    
  end 
  
  def create_boxwindow
    @stckwndw = Window_StockList.new
    @stckwndw.set_handler(:ok, method(:get_ok))
    @stckwndw.set_handler(:cancel, method(:store_cancel))
  end 
  
#≡   ● Window Handlers   ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡   
  def command_store
    @ptywndw.select(0)
    @ptywndw.activate
  end
  
  def command_get
    @stckwndw.select(0)
    @stckwndw.activate
  end
  
   def command_fire
    @stckwndw.select(0)
    @stckwndw.activate
    $releasing = true
  end
  
  def store_ok    
    storeactor = $game_party.members[$pwindex].id
    if $data_actors[storeactor].party_lock == true
      Sound.play_buzzer
      @ptywndw.activate
    else
    $game_stock.add_actor(storeactor)
    $game_party.remove_actor($game_party.members[$pwindex].id)
    @ptywndw.refresh
    @stckwndw.refresh
    if $game_party.members.size == 1
      @cmdwdw.refresh
      @cmdwdw.activate
    else
      @ptywndw.select(0)
      @ptywndw.activate
    end 
     
    
    end   
  end
 
  def get_ok
    if $releasing == true
    $game_stock.remove_actor($game_stock.members[$swindex].id)
    @ptywndw.refresh
    @stckwndw.refresh
    if $game_stock.members.size == 0 
      @cmdwdw.refresh
      @cmdwdw.activate
      releasing = false
    else
      @stckwndw.select(0)
      @stckwndw.activate
    end
    else 
    getactor = $game_stock.members[$swindex].id
    $game_party.add_actor(getactor)
    $game_stock.remove_actor($game_stock.members[$swindex].id)
    @ptywndw.refresh
    @stckwndw.refresh
    if $game_stock.members.size == 0 or $game_party.members.size >= SAKURABA::SKPSS::MAXPARTYMEMBERS
      @cmdwdw.refresh
      @cmdwdw.activate
    else
      @stckwndw.select(0)
      @stckwndw.activate
    end
  end
end
 
  
  def store_cancel
    @cmdwdw.refresh
    @cmdwdw.activate
    $releasing = false
  end    
end
#≡   ● End Of Script   ====================================================
#≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡ 
 



Minimaliste, le "." comme signe de ralliement.


Slime55 - posté le 01/01/2015 à 17:27:24 (442 messages postés)

❤ 0

Un grand merci, ça marche parfaitement !

J'ai déjà noté ton nom dans la liste des crédits, encore merci ! :F


7163D - posté le 01/01/2015 à 18:55:43 (946 messages postés)

❤ 0

Votez Minimaliste

De rien!

Minimaliste, le "." comme signe de ralliement.

Index du forum > Entraide > [RPG maker VX Ace] Party Storage System

repondre up

Suite à de nombreux abus, le post en invités a été désactivé. Veuillez vous inscrire si vous souhaitez participer à la conversation.

Haut de page

Merci de ne pas reproduire le contenu de ce site sans autorisation.
Contacter l'équipe - Mentions légales

Plan du site

Communauté: Accueil | Forum | Chat | Commentaires | News | Flash-news | Screen de la semaine | Sorties | Tests | Gaming-Live | Interviews | Galerie | OST | Blogs | Recherche
Apprendre: Visite guidée | RPG Maker 95 | RPG Maker 2003 | RPG Maker XP | RPG Maker VX | RPG Maker MV | Tutoriels | Guides | Making-of
Télécharger: Programmes | Scripts/Plugins | Ressources graphiques / sonores | Packs de ressources | Midis | Eléments séparés | Sprites
Jeux: Au hasard | Notre sélection | Sélection des membres | Tous les jeux | Jeux complets | Le cimetière | RPG Maker 95 | RPG Maker 2000 | RPG Maker 2003 | RPG Maker XP | RPG Maker VX | RPG Maker VX Ace | RPG Maker MV | Autres | Proposer
Ressources RPG Maker 2000/2003: Chipsets | Charsets | Panoramas | Backdrops | Facesets | Battle anims | Battle charsets | Monstres | Systems | Templates
Ressources RPG Maker XP: Tilesets | Autotiles | Characters | Battlers | Window skins | Icônes | Transitions | Fogs | Templates
Ressources RPG Maker VX: Tilesets | Charsets | Facesets | Systèmes
Ressources RPG Maker MV: Tilesets | Characters | Faces | Systèmes | Title | Battlebacks | Animations | SV/Ennemis
Archives: Palmarès | L'Annuaire | Livre d'or | Le Wiki | Divers