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

382 connectés actuellement

29379762 visiteurs
depuis l'ouverture

9129 visiteurs
aujourd'hui



Barre de séparation

Partenaires

Indiexpo

Akademiya RPG Maker

Blog Alioune Fall

Fairy Tail Constellations

RPG Fusion

Lumen

ConsoleFun

RPG Maker VX

Eclipso

Tous nos partenaires

Devenir
partenaire



Menu de jobs

Tableau d'actions qui permet d'afficher des actions qu'on peut créer (sauter, cuisiner, porter des objets), ainsi qu'un système de niveaux pour ces compétences. Très pratique pour gérer l'obtention de capacités en adéquation avec vos systèmes.

Script pour RPG Maker XP
Ecrit par BlueBossa
Publié par BlueBossa (lui envoyer un message privé)
Signaler un script cassé

❤ 0

Auteur : BlueBossa
Logiciel : RPG Maker XP
Nombre de scripts :

Bonjour, je vous présente aujourd'hui mon premier script!!! image

Fonctionnement
Ok ok plus sérieusement, vous vous demander à quoi ça sert ? Bien c'est fait pour ceux qui font des jobs comme bûcheron, pêcheur , ou des habiletés comme courir, sauter, grimper dans leur jeu. Ca affiche leurs compétences et ont peut les modifier grâce à des points d'actions. Il peut y avoir en tout 12 actions. Les actions peuvent etre modifiées, augmentées, descendues n'importe quand et n'importe où.

Installation
A placer au-dessus de Main.

Utilisation
Pour modifier le nom des actions et créer vos propres actions aller a la ligne : 110, là vous avez d'écrit à la fin de la ligne "Action", remplacez par le nom d'action que vous voulez, ainsi de suite jusqu'a la ligne 121. Après réécrivaient Aux lignes 146 a 157, vos Actions (les meme que de 110 a 121) puis encore les mêmes de 330 a 331. Maintenant retourner a la ligne 122 et écrivez a la place de utilisation, la description de votre première action puis a 123 la description de votre 2 ainsi de suite jusqu'a 133.

Les niveaux et point d'Actions de vos Actions sont géraient en variable du jeu, la variable 26 est la première action et 37 la dernière, la variable 38 défini le nombre de point d'action. Donc si vous complétez une mission dans le jeu, vous pouvez faire dire a un gas qui a donner une mission :

Citation:

Message: Ho merci beaucoup
variable 38 : + 3
Message: Vous avez gagner 3 points d'action

Ou sinon :

Message: Ho merci beaucoup
Variable 26: +1
Message: Niveau bucheron Augmenté !!!
etc etc...



Quelque images:
image
image
image

Cette nouvelle option du jeu peut être accessible depuis le menu d'un jeu.

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
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
class Window_Gold < Window_Base
  def initialize
    super(0, 0, 160, 52)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.contents.font.name = $fontface
    self.contents.font.size = $fontsize
    refresh
  end
  def refresh
    self.contents.clear
    cx = contents.text_size($data_system.words.gold).width
    self.contents.font.color = normal_color
    self.contents.draw_text(4, -8, 120-cx-2, 32, $game_party.gold.to_s, 2)
    self.contents.font.color = system_color
    self.contents.draw_text(124-cx, -8, cx, 32, $data_system.words.gold, 2)
  end
end
class Window_PlayTime < Window_Base
  def initialize
    super(0, 0, 160, 86)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.contents.font.name = $fontface
    self.contents.font.size = $fontsize
    refresh
  end
  def refresh
    self.contents.clear
    self.contents.font.color = system_color
    self.contents.draw_text(4, -8, 130, 32, "Temps de jeu :")
    @total_sec = Graphics.frame_count / Graphics.frame_rate
    hour = @total_sec / 60 / 60
    min = @total_sec / 60 % 60
    sec = @total_sec % 60
    text = sprintf("%02d:%02d:%02d", hour, min, sec)
    self.contents.font.color = normal_color
    self.contents.draw_text(4, 28, 120, 32, text, 2)
  end
  def update
    super
    if Graphics.frame_count / Graphics.frame_rate != @total_sec
      refresh
    end
  end
end
class Window_Steps < Window_Base
  def initialize
    super(0, 0, 160, 86)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.contents.font.name = $fontface
    self.contents.font.size = $fontsize
    refresh
  end
  def refresh
    self.contents.clear
    self.contents.font.color = system_color
    self.contents.draw_text(4, -8, 130, 32, "Nombre de pas")
    self.contents.font.color = normal_color
    self.contents.draw_text(4, 28, 120, 32, $game_party.steps.to_s, 2)
  end
end
class Window_Action < Window_Base
  def initialize
    super(0, 0, 240, 60)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.contents.font.name = $fontface
    self.contents.font.size = $fontsize
    refresh
  end
  def refresh
    self.contents.clear
    self.contents.draw_text(70, -2, 300, 32, "Action")
  end
end
class Window_Point_Action < Window_Base
  def initialize
    super(0, 0, 220, 60)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.contents.font.name = $fontface
    self.contents.font.size = $fontsize
    refresh
  end
  def refresh
    self.contents.clear
    self.contents.draw_text(4, -2, 300, 32, "Point d'action :   " + $game_variables[38].to_s)
  end
end
class Window_Action_Niveau < Window_Base
  def initialize
    super(0, 0, 105, 60)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.contents.font.name = $fontface
    self.contents.font.size = $fontsize
    refresh
  end
  def refresh
    self.contents.clear
    self.contents.draw_text(4, -2, 300, 32, "Niveau")
  end
end
class Window_Information_Action< Window_Base
  def initialize
    super(0, 0, 640, 417)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.contents.font.name = $fontface
    self.contents.font.size = $fontsize
    refresh
  end
  def refresh
    self.contents.clear
    self.contents.draw_text(4, -2, 300, 32, "Action")
    self.contents.draw_text(4, 30, 300, 32, "Action")
    self.contents.draw_text(4, 62, 300, 32, "Action")
    self.contents.draw_text(4, 94, 300, 32, "Action")
    self.contents.draw_text(4, 126, 300, 32, "Action")
    self.contents.draw_text(4, 158, 300, 32, "Action")
    self.contents.draw_text(4, 190, 300, 32, "Action")
    self.contents.draw_text(4, 222, 300, 32, "Action")
    self.contents.draw_text(4, 254, 300, 32, "Action")
    self.contents.draw_text(4, 286, 300, 32, "Action")
    self.contents.draw_text(4, 318, 300, 32, "Action")
    self.contents.draw_text(4, 350, 300, 32, "Action")
    self.contents.draw_text(260, -2, 300, 32, "Utilisation")
    self.contents.draw_text(260, 30, 300, 32, "Utilisation")
    self.contents.draw_text(260, 62, 300, 32, "Utilisation")
    self.contents.draw_text(260, 94, 300, 32, "Utilisation")
    self.contents.draw_text(260, 126, 300, 32, "Utilisation")
    self.contents.draw_text(260, 158, 300, 32, "Utilisation")
    self.contents.draw_text(260, 190, 300, 32, "Utilisation")
    self.contents.draw_text(260, 222, 300, 32, "Utilisation")
    self.contents.draw_text(260, 254, 300, 32, "Utilisation")
    self.contents.draw_text(260, 286, 300, 32, "Utilisation")
    self.contents.draw_text(260, 318, 300, 32, "Utilisation")
    self.contents.draw_text(260, 350, 300, 32, "Utilisation")
  end
end
class Window_Player_Action < Window_Base
  def initialize
    super(0, 0, 345, 420)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.contents.font.name = $fontface
    self.contents.font.size = $fontsize
    refresh
  end
  def refresh
    self.contents.clear
    self.contents.draw_text(4, -2, 300, 32, "Action")
    self.contents.draw_text(4, 30, 300, 32, "Action")
    self.contents.draw_text(4, 62, 300, 32, "Action")
    self.contents.draw_text(4, 94, 300, 32, "Action")
    self.contents.draw_text(4, 126, 300, 32, "Action")
    self.contents.draw_text(4, 158, 300, 32, "Action")
    self.contents.draw_text(4, 190, 300, 32, "Action")
    self.contents.draw_text(4, 222, 300, 32, "Action")
    self.contents.draw_text(4, 254, 300, 32, "Action")
    self.contents.draw_text(4, 286, 300, 32, "Action")
    self.contents.draw_text(4, 318, 300, 32, "Action")
    self.contents.draw_text(4, 350, 300, 32, "Action")
    self.contents.draw_text(275, -2, 300, 32, $game_variables[26].to_s)
    self.contents.draw_text(275, 30, 300, 32, $game_variables[27].to_s)
    self.contents.draw_text(275, 62, 300, 32, $game_variables[28].to_s)
    self.contents.draw_text(275, 94, 300, 32, $game_variables[29].to_s)
    self.contents.draw_text(275, 126, 300, 32, $game_variables[30].to_s)
    self.contents.draw_text(275, 158, 300, 32, $game_variables[31].to_s)
    self.contents.draw_text(275, 190, 300, 32, $game_variables[32].to_s)
    self.contents.draw_text(275, 222, 300, 32, $game_variables[33].to_s)
    self.contents.draw_text(275, 254, 300, 32, $game_variables[34].to_s)
    self.contents.draw_text(275, 286, 300, 32, $game_variables[35].to_s)
    self.contents.draw_text(275, 318, 300, 32, $game_variables[36].to_s)
    self.contents.draw_text(275, 350, 300, 32, $game_variables[37].to_s)
  end
end
class Window_Actionst < Window_Base
  def initialize
    super(0, 0, 100, 448)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.contents.font.name = $fontface
    self.contents.font.size = $fontsize
    refresh
  end
  def refresh
    self.contents.clear
    self.contents.draw_text(4, -2, 300, 32, "Niveau")
    self.contents.draw_text(4, 30, 300, 32, $game_variables[26].to_s)
    self.contents.draw_text(4, 62, 300, 32, $game_variables[27].to_s)
    self.contents.draw_text(4, 94, 300, 32, $game_variables[28].to_s)
    self.contents.draw_text(4, 126, 300, 32, $game_variables[29].to_s)
    self.contents.draw_text(4, 158, 300, 32, $game_variables[30].to_s)
    self.contents.draw_text(4, 190, 300, 32, $game_variables[31].to_s)
    self.contents.draw_text(4, 222, 300, 32, $game_variables[32].to_s)
    self.contents.draw_text(4, 254, 300, 32, $game_variables[33].to_s)
    self.contents.draw_text(4, 286, 300, 32, $game_variables[34].to_s)
    self.contents.draw_text(4, 318, 300, 32, $game_variables[35].to_s)
    self.contents.draw_text(4, 350, 300, 32, $game_variables[36].to_s)
    self.contents.draw_text(4, 382, 300, 32, $game_variables[37].to_s)
  end
end
class Scene_Index_Action
  def initialize(menu_index = 0)
    @menu_index = menu_index
  end
  def main
    s1 = "Augmenter" 
    s2 = "Plus D'info"
    s3 = "Retour"
    @command_window = Window_Command.new(220, [s1, s2, s3])
    @command_window.index = @menu_index
    @command_window.x = 145 - @command_window.width / 2
    @command_window.y = 200
    @action_window = Window_Action.new
    @action_window.x = 295
    @action_window.y = 0
    @Player_action_window = Window_Player_Action.new
    @Player_action_window.x = 295
    @Player_action_window.y = 60
    @point_action_window = Window_Point_Action.new
    @point_action_window.x = 39
    @point_action_window.y = 0
    @action_niveau_window = Window_Action_Niveau.new
    @action_niveau_window.x = 535
    @action_niveau_window.y = 0
    @point_action = $game_variables[38]
    @continue_enabled = false
    for i in 0..3
    if @point_action > 0
      @continue_enabled = true
      end
    end
    if @continue_enabled
    else
      @command_window.disable_item(0)
    end
    Graphics.transition
    loop do
      Graphics.update
      Input.update
      update
      if $scene != self
        break
      end
    end
    Graphics.freeze
    @action_window.dispose
    @Player_action_window.dispose
    @command_window.dispose
    @point_action_window.dispose
    @action_niveau_window.dispose
  end
  def update
    @action_window.update
    @Player_action_window.update
    @point_action_window.update
    @action_niveau_window.update
    @command_window.update
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      $scene = Scene_Menu.new(1)
      return
    end
    if Input.trigger?(Input::C)
      case @command_window.index
      when 0  
        command_continue
      when 1  
        $game_system.se_play($data_system.decision_se)
        $scene = Scene_Information_Action.new
      when 2  
        $game_system.se_play($data_system.decision_se)
        $scene = Scene_Menu.new(1)
      end
    end
    def command_continue
    unless @continue_enabled
      $game_system.se_play($data_system.buzzer_se)
      return
    end
    $game_system.se_play($data_system.decision_se)
    $scene = Scene_Augmenter.new
  end
end
end
class Scene_Information_Action
  def initialize(menu_index = 0)
    @menu_index = menu_index
  end
  def main
    s1 = "                                           Retoure" 
    @command_window = Window_Command.new(640, [s1])
    @command_window.index = @menu_index
    @command_window.x = 320 - @command_window.width / 2
    @command_window.y = 417
    @information_action_window = Window_Information_Action.new
    @information_action_window.x = 0
    @information_action_window.y = 0
    Graphics.transition
    loop do
      Graphics.update
      Input.update
      update
      if $scene != self
        break
      end
    end
    Graphics.freeze
    @information_action_window.dispose
    @command_window.dispose
  end
  def update
    @information_action_window.update
    @command_window.update
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      $scene = Scene_Index_Action.new(1)
      return
    end
    if Input.trigger?(Input::C)
    case @command_window.index
      when 0 
        $game_system.se_play($data_system.decision_se)
        $scene = Scene_Index_Action.new(1)
      end
    end
  end
end
class Scene_Augmenter
  def initialize(menu_index = 0)
    @menu_index = menu_index
  end
  def main
    s1 = "Retoure"
    s2 = "Action"
    s3 = "Action"
    s4 = "Action"
    s5 = "Action"
    s6 = "Action"
    s7 = "Action"
    s8 = "Action"
    s9 = "Action"
    s10 = "Action"
    s11 = "Action"
    s12 = "Action"
    s13 = "Action"
    @command_window = Window_Command.new(320, [s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13])
    @command_window.index = @menu_index
    @command_window.x = 260 - @command_window.width / 2
    @command_window.y = 15
    @actionst_window = Window_Actionst.new
    @actionst_window.x = 420
    @actionst_window.y = 15
    Graphics.transition
    loop do
      Graphics.update
      Input.update
      update
      if $scene != self
        break
      end
    end
    Graphics.freeze
    @actionst_window.dispose
    @command_window.dispose
  end
  def update
    @actionst_window.update
    @command_window.update
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      $scene = Scene_Index_Action.new(0)
      return
    end
    if Input.trigger?(Input::C)
    case @command_window.index
      when 0 
        $game_system.se_play($data_system.decision_se)
        $scene = Scene_Index_Action.new(0)
      when 1
        $game_system.se_play($data_system.decision_se)
        $game_variables[26] += 1
        $game_variables[38] -= 1
        $scene = Scene_Augmenter.new(1)
        if $game_variables[38] == 0
          $scene = Scene_Index_Action.new(0)
        end
      when 2
        $game_system.se_play($data_system.decision_se)
        $game_variables[27] += 1
        $game_variables[38] -= 1
        $scene = Scene_Augmenter.new(2)
        if $game_variables[38] == 0
          $scene = Scene_Index_Action.new(0)
        end
      when 3
        $game_system.se_play($data_system.decision_se)
        $game_variables[28] += 1
        $game_variables[38] -= 1
        $scene = Scene_Augmenter.new(3)
        if $game_variables[38] == 0
          $scene = Scene_Index_Action.new(0)
        end
        when 4
        $game_system.se_play($data_system.decision_se)
        $game_variables[29] += 1
        $game_variables[38] -= 1
        $scene = Scene_Augmenter.new(4)
        if $game_variables[38] == 0
          $scene = Scene_Index_Action.new(0)
        end
        when 5
        $game_system.se_play($data_system.decision_se)
        $game_variables[30] += 1
        $game_variables[38] -= 1
        $scene = Scene_Augmenter.new(5)
        if $game_variables[38] == 0
          $scene = Scene_Index_Action.new(0)
        end
        when 6
        $game_system.se_play($data_system.decision_se)
        $game_variables[31] += 1
        $game_variables[38] -= 1
        $scene = Scene_Augmenter.new(6)
        if $game_variables[38] == 0
          $scene = Scene_Index_Action.new(0)
        end
        when 7
        $game_system.se_play($data_system.decision_se)
        $game_variables[32] += 1
        $game_variables[38] -= 1
        $scene = Scene_Augmenter.new(7)
        if $game_variables[38] == 0
          $scene = Scene_Index_Action.new(0)
        end
        when 8
        $game_system.se_play($data_system.decision_se)
        $game_variables[32] += 1
        $game_variables[38] -= 1
        $scene = Scene_Augmenter.new(8)
        if $game_variables[38] == 0
          $scene = Scene_Index_Action.new(0)
        end
        when 9
        $game_system.se_play($data_system.decision_se)
        $game_variables[33] += 1
        $game_variables[38] -= 1
        $scene = Scene_Augmenter.new(9)
        if $game_variables[38] == 0
          $scene = Scene_Index_Action.new(0)
        end
        when 10
        $game_system.se_play($data_system.decision_se)
        $game_variables[34] += 1
        $game_variables[38] -= 1
        $scene = Scene_Augmenter.new(10)
        if $game_variables[38] == 0
          $scene = Scene_Index_Action.new(0)
        end
        when 11
        $game_system.se_play($data_system.decision_se)
        $game_variables[35] += 1
        $game_variables[38] -= 1
        $scene = Scene_Augmenter.new(11)
        if $game_variables[38] == 0
          $scene = Scene_Index_Action.new(0)
        end
        when 12
        $game_system.se_play($data_system.decision_se)
        $game_variables[36] += 1
        $game_variables[38] -= 1
        $scene = Scene_Augmenter.new(12)
        if $game_variables[38] == 0
          $scene = Scene_Index_Action.new(0)
        end
        when 13
        $game_system.se_play($data_system.decision_se)
        $game_variables[37] += 1
        $game_variables[38] -= 1
        $scene = Scene_Augmenter.new(13)
        if $game_variables[38] == 0
          $scene = Scene_Index_Action.new(0)
        end
      end
    end
  end
end
class Scene_Menu
  def initialize(menu_index = 0)
    @menu_index = menu_index
  end
  def main
    s1 = $data_system.words.item
    s2 = "Actions"
    s3 = $data_system.words.skill
    s4 = $data_system.words.equip
    s5 = "État"
    s6 = "Sauvegarder"
    s7 = "Quitter"
    @command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6, s7])
    @command_window.index = @menu_index
    if $game_party.actors.size == 0
      @command_window.disable_item(0)
      @command_window.disable_item(1)
      @command_window.disable_item(2)
      @command_window.disable_item(3)
    end
    if $game_system.save_disabled
      @command_window.disable_item(4)
    end
    @playtime_window = Window_PlayTime.new
    @playtime_window.x = 0
    @playtime_window.y = 256
    @steps_window = Window_Steps.new
    @steps_window.x = 0
    @steps_window.y = 342
    @gold_window = Window_Gold.new
    @gold_window.x = 0
    @gold_window.y = 428
    @status_window = Window_MenuStatus.new
    @status_window.x = 160
    @status_window.y = 0
    Graphics.transition
    loop do
      Graphics.update
      Input.update
      update
      if $scene != self
        break
      end
    end
    Graphics.freeze
    @command_window.dispose
    @playtime_window.dispose
    @steps_window.dispose
    @gold_window.dispose
    @status_window.dispose
  end
  def update
    @command_window.update
    @playtime_window.update
    @steps_window.update
    @gold_window.update
    @status_window.update
    if @command_window.active
      update_command
      return
    end
    if @status_window.active
      update_status
      return
    end
  end
  def update_command
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      $scene = Scene_Map.new
      return
    end
    if Input.trigger?(Input::C)
      if $game_party.actors.size == 0 and @command_window.index < 4
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      case @command_window.index
      when 0  
        $game_system.se_play($data_system.decision_se)
        $scene = Scene_Item.new
      when 1  
        $game_system.se_play($data_system.decision_se)
        $scene = Scene_Index_Action.new
        when 2  
        $game_system.se_play($data_system.decision_se)
        @command_window.active = false
        @status_window.active = true
        @status_window.index = 0
      when 3  
        $game_system.se_play($data_system.decision_se)
        @command_window.active = false
        @status_window.active = true
        @status_window.index = 0
      when 4  
        $game_system.se_play($data_system.decision_se)
        @command_window.active = false
        @status_window.active = true
        @status_window.index = 0
      when 5  
        if $game_system.save_disabled
          $game_system.se_play($data_system.buzzer_se)
          return
        end
        $game_system.se_play($data_system.decision_se)
        $scene = Scene_Save.new
      when 6 
        $game_system.se_play($data_system.decision_se)
        $scene = Scene_End.new
      end
      return
    end
  end
  def update_status
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      @command_window.active = true
      @status_window.active = false
      @status_window.index = -1
      return
    end
    if Input.trigger?(Input::C)
      case @command_window.index
      when 2
        if $game_party.actors[@status_window.index].restriction >= 2
          $game_system.se_play($data_system.buzzer_se)
          return
        end
        $game_system.se_play($data_system.decision_se)
        $scene = Scene_Skill.new(@status_window.index)
      when 3  
        $game_system.se_play($data_system.decision_se)
        $scene = Scene_Equip.new(@status_window.index)
      when 4  
        $game_system.se_play($data_system.decision_se)
        $scene = Scene_Status.new(@status_window.index)
      end
      return
    end
  end
end
class Scene_Skill
  def initialize(actor_index = 0, equip_index = 0)
    @actor_index = actor_index
  end
  def main
    @actor = $game_party.actors[@actor_index]
    @help_window = Window_Help.new
    @status_window = Window_SkillStatus.new(@actor)
    @skill_window = Window_Skill.new(@actor)
    @skill_window.help_window = @help_window
    @target_window = Window_Target.new
    @target_window.visible = false
    @target_window.active = false
    Graphics.transition
    loop do
      Graphics.update
      Input.update
      update
      if $scene != self
        break
      end
    end
    Graphics.freeze
    @help_window.dispose
    @status_window.dispose
    @skill_window.dispose
    @target_window.dispose
  end
  def update
    @help_window.update
    @status_window.update
    @skill_window.update
    @target_window.update
    if @skill_window.active
      update_skill
      return
    end
    if @target_window.active
      update_target
      return
    end
  end
  def update_skill
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      $scene = Scene_Menu.new(2)
      return
    end
    if Input.trigger?(Input::C)
      @skill = @skill_window.skill
      if @skill == nil or not @actor.skill_can_use?(@skill.id)
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      $game_system.se_play($data_system.decision_se)
      if @skill.scope >= 3
        @skill_window.active = false
        @target_window.x = (@skill_window.index + 1) % 2 * 304
        @target_window.visible = true
        @target_window.active = true
        if @skill.scope == 4 || @skill.scope == 6
          @target_window.index = -1
        elsif @skill.scope == 7
          @target_window.index = @actor_index - 10
        else
          @target_window.index = 0
        end
      else
        if @skill.common_event_id > 0
          $game_temp.common_event_id = @skill.common_event_id
          $game_system.se_play(@skill.menu_se)
          @actor.sp -= @skill.sp_cost
          @status_window.refresh
          @skill_window.refresh
          @target_window.refresh
          $scene = Scene_Map.new
          return
        end
      end
      return
    end
    if Input.trigger?(Input::R)
      $game_system.se_play($data_system.cursor_se)
      @actor_index += 1
      @actor_index %= $game_party.actors.size
      $scene = Scene_Skill.new(@actor_index)
      return
    end
    if Input.trigger?(Input::L)
      $game_system.se_play($data_system.cursor_se)
      @actor_index += $game_party.actors.size - 1
      @actor_index %= $game_party.actors.size
      $scene = Scene_Skill.new(@actor_index)
      return
    end
  end
  def update_target
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      @skill_window.active = true
      @target_window.visible = false
      @target_window.active = false
      return
    end
    if Input.trigger?(Input::C)
      unless @actor.skill_can_use?(@skill.id)
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      if @target_window.index == -1
        used = false
        for i in $game_party.actors
          used |= i.skill_effect(@actor, @skill)
        end
      end
      if @target_window.index <= -2
        target = $game_party.actors[@target_window.index + 10]
        used = target.skill_effect(@actor, @skill)
      end
      if @target_window.index >= 0
        target = $game_party.actors[@target_window.index]
        used = target.skill_effect(@actor, @skill)
      end
      if used
        $game_system.se_play(@skill.menu_se)
        @actor.sp -= @skill.sp_cost
        @status_window.refresh
        @skill_window.refresh
        @target_window.refresh
        if $game_party.all_dead?
          $scene = Scene_Gameover.new
          return
        end
        if @skill.common_event_id > 0
          $game_temp.common_event_id = @skill.common_event_id
          $scene = Scene_Map.new
          return
        end
      end
      unless used
        $game_system.se_play($data_system.buzzer_se)
      end
      return
    end
  end
end
class Scene_Equip
  def initialize(actor_index = 0, equip_index = 0)
    @actor_index = actor_index
    @equip_index = equip_index
  end
  def main
    @actor = $game_party.actors[@actor_index]
    @help_window = Window_Help.new
    @left_window = Window_EquipLeft.new(@actor)
    @right_window = Window_EquipRight.new(@actor)
    @item_window1 = Window_EquipItem.new(@actor, 0)
    @item_window2 = Window_EquipItem.new(@actor, 1)
    @item_window3 = Window_EquipItem.new(@actor, 2)
    @item_window4 = Window_EquipItem.new(@actor, 3)
    @item_window5 = Window_EquipItem.new(@actor, 4)
    @right_window.help_window = @help_window
    @item_window1.help_window = @help_window
    @item_window2.help_window = @help_window
    @item_window3.help_window = @help_window
    @item_window4.help_window = @help_window
    @item_window5.help_window = @help_window
    @right_window.index = @equip_index
    refresh
    Graphics.transition
    loop do
      Graphics.update
      Input.update
      update
      if $scene != self
        break
      end
    end
    Graphics.freeze
    @help_window.dispose
    @left_window.dispose
    @right_window.dispose
    @item_window1.dispose
    @item_window2.dispose
    @item_window3.dispose
    @item_window4.dispose
    @item_window5.dispose
  end
  def refresh
    @item_window1.visible = (@right_window.index == 0)
    @item_window2.visible = (@right_window.index == 1)
    @item_window3.visible = (@right_window.index == 2)
    @item_window4.visible = (@right_window.index == 3)
    @item_window5.visible = (@right_window.index == 4)
    item1 = @right_window.item
    case @right_window.index
    when 0
      @item_window = @item_window1
    when 1
      @item_window = @item_window2
    when 2
      @item_window = @item_window3
    when 3
      @item_window = @item_window4
    when 4
      @item_window = @item_window5
    end
    if @right_window.active
      @left_window.set_new_parameters(nil, nil, nil)
    end
    if @item_window.active
      item2 = @item_window.item
      last_hp = @actor.hp
      last_sp = @actor.sp
      @actor.equip(@right_window.index, item2 == nil ? 0 : item2.id)
      new_atk = @actor.atk
      new_pdef = @actor.pdef
      new_mdef = @actor.mdef
      @actor.equip(@right_window.index, item1 == nil ? 0 : item1.id)
      @actor.hp = last_hp
      @actor.sp = last_sp
      @left_window.set_new_parameters(new_atk, new_pdef, new_mdef)
    end
  end
  def update
    @left_window.update
    @right_window.update
    @item_window.update
    refresh
    if @right_window.active
      update_right
      return
    end
    if @item_window.active
      update_item
      return
    end
  end
  def update_right
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      $scene = Scene_Menu.new(3)
      return
    end
    if Input.trigger?(Input::C)
      if @actor.equip_fix?(@right_window.index)
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      $game_system.se_play($data_system.decision_se)
      @right_window.active = false
      @item_window.active = true
      @item_window.index = 0
      return
    end
    if Input.trigger?(Input::R)
      $game_system.se_play($data_system.cursor_se)
      @actor_index += 1
      @actor_index %= $game_party.actors.size
      $scene = Scene_Equip.new(@actor_index, @right_window.index)
      return
    end
    if Input.trigger?(Input::L)
      $game_system.se_play($data_system.cursor_se)
      @actor_index += $game_party.actors.size - 1
      @actor_index %= $game_party.actors.size
      $scene = Scene_Equip.new(@actor_index, @right_window.index)
      return
    end
  end
  def update_item
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      @right_window.active = true
      @item_window.active = false
      @item_window.index = -1
      return
    end
    if Input.trigger?(Input::C)
      $game_system.se_play($data_system.equip_se)
      item = @item_window.item
      @actor.equip(@right_window.index, item == nil ? 0 : item.id)
      @right_window.active = true
      @item_window.active = false
      @item_window.index = -1
      @right_window.refresh
      @item_window.refresh
      return
    end
  end
end
class Scene_File
  def initialize(help_text)
    @help_text = help_text
  end
  def main
    @help_window = Window_Help.new
    @help_window.set_text(@help_text)
    @savefile_windows = []
    for i in 0..3
      @savefile_windows.push(Window_SaveFile.new(i, make_filename(i)))
    end
    @file_index = $game_temp.last_file_index
    @savefile_windows[@file_index].selected = true
    Graphics.transition
    loop do
      Graphics.update
      Input.update
      update
      if $scene != self
        break
      end
    end
    Graphics.freeze
    @help_window.dispose
    for i in @savefile_windows
      i.dispose
    end
  end
  def update
    @help_window.update
    for i in @savefile_windows
      i.update
    end
    if Input.trigger?(Input::C)
      on_decision(make_filename(@file_index))
      $game_temp.last_file_index = @file_index
      return
    end
    if Input.trigger?(Input::B)
      on_cancel
      return
    end
    if Input.repeat?(Input::DOWN)
      if Input.trigger?(Input::DOWN) or @file_index < 3
        $game_system.se_play($data_system.cursor_se)
        @savefile_windows[@file_index].selected = false
        @file_index = (@file_index + 1) % 4
        @savefile_windows[@file_index].selected = true
        return
      end
    end
    if Input.repeat?(Input::UP)
      if Input.trigger?(Input::UP) or @file_index > 0
        $game_system.se_play($data_system.cursor_se)
        @savefile_windows[@file_index].selected = false
        @file_index = (@file_index + 3) % 4
        @savefile_windows[@file_index].selected = true
        return
      end
    end
  end
  def make_filename(file_index)
    return "Sauvegarde#{file_index + 1}.rxdata"
  end
end
class Scene_Save < Scene_File
  def initialize
    super("Sauvegarder dans quel fichier?")
  end
  def on_decision(filename)
    $game_system.se_play($data_system.save_se)
    file = File.open(filename, "wb")
    write_save_data(file)
    file.close
    if $game_temp.save_calling
      $game_temp.save_calling = false
      $scene = Scene_Map.new
      return
    end
    $scene = Scene_Menu.new(5)
  end
  def on_cancel
    $game_system.se_play($data_system.cancel_se)
    if $game_temp.save_calling
      $game_temp.save_calling = false
      $scene = Scene_Map.new
      return
    end
    $scene = Scene_Menu.new(5)
  end
  def write_save_data(file)
    characters = []
    for i in 0...$game_party.actors.size
      actor = $game_party.actors[i]
      characters.push([actor.character_name, actor.character_hue])
    end
    Marshal.dump(characters, file)
    Marshal.dump(Graphics.frame_count, file)
    $game_system.save_count += 1
    $game_system.magic_number = $data_system.magic_number
    Marshal.dump($game_system, file)
    Marshal.dump($game_switches, file)
    Marshal.dump($game_variables, file)
    Marshal.dump($game_self_switches, file)
    Marshal.dump($game_screen, file)
    Marshal.dump($game_actors, file)
    Marshal.dump($game_party, file)
    Marshal.dump($game_troop, file)
    Marshal.dump($game_map, file)
    Marshal.dump($game_player, file)
  end
end
class Scene_Status
  def initialize(actor_index = 0, equip_index = 0)
    @actor_index = actor_index
  end
  def main
    @actor = $game_party.actors[@actor_index]
    @status_window = Window_Status.new(@actor)
    Graphics.transition
    loop do
      Graphics.update
      Input.update
      update
      if $scene != self
        break
      end
    end
    Graphics.freeze
    @status_window.dispose
  end
  def update
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      $scene = Scene_Menu.new(4)
      return
    end
    if Input.trigger?(Input::R)
      $game_system.se_play($data_system.cursor_se)
      @actor_index += 1
      @actor_index %= $game_party.actors.size
      $scene = Scene_Status.new(@actor_index)
      return
    end
    if Input.trigger?(Input::L)
      $game_system.se_play($data_system.cursor_se)
      @actor_index += $game_party.actors.size - 1
      @actor_index %= $game_party.actors.size
      $scene = Scene_Status.new(@actor_index)
      return
    end
  end
end
class Scene_End
  def main
    s1 = "Écran-Titre"
    s2 = "Quitter"
    s3 = "Annuler"
    @command_window = Window_Command.new(192, [s1, s2, s3])
    @command_window.x = 320 - @command_window.width / 2
    @command_window.y = 240 - @command_window.height / 2
    Graphics.transition
    loop do
      Graphics.update
      Input.update
      update
      if $scene != self
        break
      end
    end
    Graphics.freeze
    @command_window.dispose
    if $scene.is_a?(Scene_Title)
      Graphics.transition
      Graphics.freeze
    end
  end
  def update
    @command_window.update
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      $scene = Scene_Menu.new(6)
      return
    end
    if Input.trigger?(Input::C)
      case @command_window.index
      when 0 
        command_to_title
      when 1  
        command_shutdown
      when 2  
        command_cancel
      end
      return
    end
  end
  def command_to_title
    $game_system.se_play($data_system.decision_se)
    Audio.bgm_fade(800)
    Audio.bgs_fade(800)
    Audio.me_fade(800)
    $scene = Scene_Title.new
  end
  def command_shutdown
    $game_system.se_play($data_system.decision_se)
    Audio.bgm_fade(800)
    Audio.bgs_fade(800)
    Audio.me_fade(800)
    $scene = nil
  end
  def command_cancel
    $game_system.se_play($data_system.decision_se)
    $scene = Scene_Menu.new(6)
  end
end



Merci aux personnes de ce site qui m'ont aidées pour mes quelques problèmes lors de la création de mon script. image




blackis - posté le 04/11/2008 à 10:31:23 (8 messages postés)

❤ 0

Pas mal, faisable en evènement très facilement par contre.
Ah, et on dit "retour", pas "retoure" (j'ai eu peur quand j'ai vu sa :-°)

To be or not to be. That is the question


baK - posté le 11/11/2008 à 09:51:51 (34 messages postés)

❤ 0

Ouah quel truc alors, j'ai eu exactement la même
idée sauf que moi je suis pas doué en script
Ce pourrait-il que ....... :hurle :hurle
COMMUNION D'ESPRIT ??????? :chante


dramar - posté le 30/01/2010 à 10:53:59 (42 messages postés)

❤ 0

Par contre, comment faire pour que 2point d'actions augmente un metier de 1? Merci d'avance

Un maker qui revient du passé


Heavy Rain - posté le 01/03/2010 à 09:49:41 (1053 messages postés)

❤ 0

Retoure XD

Rajoute "plonger" X) par contre pour la definition tu devra mettre comme "cuisiner" : faire des plats :lol

Je suis désespérant :D


nouillera - posté le 03/12/2010 à 16:17:08 (91 messages postés)

❤ 0

Il y a une erreur qui se règle vers la fin du texte du script, dans la partie avec les When. Quand on augmente, à partir de la huitième action, l'augmentation décale d'un rang vers le haut si quelqu'un voit ce que je veux dire.

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