-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathQuestSystem.js
3758 lines (3490 loc) · 127 KB
/
QuestSystem.js
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
"use strict";
/*:
@target MV MZ
@plugindesc Quest system v1.7.0
@author unagi ootoro
@url https://raw.githubusercontent.com/unagiootoro/RPGMZ/master/QuestSystem.js
@help
It is a plugin that introduces the quest system.
【How to use】
■ Creating a quest
Quest uses the plugin parameter "QuestDatas"
Create by editing.
"Requester", "Reward", "Quest content" required for the quest according to this parameter
Set items such as.
■ Quest state management
Each quest has a status (unordered, in progress, reported, etc.)
Its state is managed by variables.
The meanings of variable values are as follows.
0: Quest unregistered
Quests that are not registered and are not displayed in the list
1: Quest unordered
Unordered quest
2: Quest in progress
Orders received and ongoing quests
3: Quest can be reported
Quest that fulfilled the request and became reportable
4: Quest reported
The quest that made the report
5: Quest failure
Failed quest reward
6: Quest expired
Expired quest
7: Hidden quest
Hidden quest that only shows the outline
■ About state management performed by the quest plugin
The quest plugin only manages the following states:
・ When you receive an order for a quest, change the status from unordered to in progress.
・ When reporting a quest, change the status from reportable to reported
・ When canceling an in-progress quest, change the status from in-progress to unordered
If you want to change to a state other than the above, use the event command.
You need to change the value of the variable.
■ Reward receipt
Quest rewards will be received when you make a report.
■ Start of quest scene
The quest scene can be started in two ways:
・ Call "Quest Management" from the menu
-Execute the plug-in command "StartQuestScene"
It is assumed that these two are mainly used properly as follows.
Plugin command: Create a facility like a request office,
Orders and reports for quests there.
Menu: Check the status of each quest.
■ Quest command
The quest command classifies quests and orders and reports quests.
Used to manage commands.
* Plug-in commands and quest commands set in the menu
Because it is set by default
If you want to use it in a basic way, you do not need to change it.
There are the following types of quest commands.
all: Show all quests
questOrder: Show unordered quests
orderingQuest: View ongoing quests
questCancel: Cancel quest orders for ongoing quests
questReport: Report and receive rewards for reportable quests
reportedQuest: View reported quests
failedQuest: Show failed quests
expiredQuest: Show expired quests
hiddenQuest: Show hidden quests
■ Page break for quest details
If the detailed description of the quest cannot be displayed on one page, the page will automatically break.
If you want to manually break the page, in the quest detailed description
<newpage>
You can display the following content on a separate page by entering .
【Use plugin commands from scripts】
The functionality of plugin commands can also be used from scripts.
The MV version does not support the plug-in command itself, so
If you want to use the function in the plugin command, you need to use this script.
■ Start of quest scene
QuestSystemAlias.QuestUtils.startQuestScene(questCommands, fileName1 = "", fileName2 = "", xOfs = 240, yOfs = 300)
questCommands: Specify quest commands in the form ["all", "questOrder"].
fileName1: Specify the file name of the background image. (Optional)
fileName2: Specify the file name of the background standing image. (Optional)
xOfs: Specifies the X coordinate of the background standing image. (Optional)
yOfs: Specifies the Y coordinate of the background standing image. (Optional)
■ Reward acquisition
QuestSystemAlias.QuestUtils.getRewards(variableId)
variableId: Specify the variable ID of the target quest.
■ Change of detailed description of quest
QuestSystemAlias.QuestUtils.changeDetail(variableId, detail)
variableId: Specify the variable ID of the target quest.
detail: Specify the detailed description after the change.
■ Change of reward
QuestSystemAlias.QuestUtils.changeRewards(variableId, rawardDatas)
variableId: Specify the variable ID of the target quest.
rawardDatas: Specify rewards in the following format:
{type: "reward type", itemId: item ID, itemCount: number of items, gold: gold, exp: experience points}
type: Specify one of "gold", "exp", "item", "weapon", "armor".
itemId: Specify the corresponding ID when the type is one of "item", "weapon", "armor".
For example, if you want to specify a weapon with ID5, set type to "weapon" and itemId to 5.
itemCount: Specifies the number of items to get when the type is "item", "weapon", or "armor".
gold: Specifies the gold to get if the type is "gold".
exp: Specifies the experience value to obtain when type is "exp".
【License】
This plugin is available under the terms of the MIT license.
@command StartQuestScene
@text Quest scene start
@desc Start the quest scene.
@arg QuestCommands
@type select[]
@option all
@option questOrder
@option orderingQuest
@option questCancel
@option questReport
@option reportedQuest
@option failedQuest
@option expiredQuest
@option hiddenQuest
@default ["questOrder", "questCancel", "questReport"]
@text quest command
@desc Specify the quest command.
@arg BackgroundImage
@text background image
@type struct<BackgroundImage>
@default {"FileName1": "", "FileName2": "", "XOfs": "240", "YOfs": "300"}
@desc
Specify the background image of the quest scene.
@command GetRewards
@text Get rewards
@desc Get rewards for quests.
@arg VariableId
@type variable
@text variable ID
@desc Specify the variable ID of the quest to get the reward.
@command ChangeDetail
@text Quest details changed
@desc Change the quest details.
@arg VariableId
@type variable
@text variable ID
@desc Specifies the variable ID of the quest whose details you want to change.
@arg DetailNote
@type note
@text details
@desc Set the quest details to change.
@arg Detail
@type multiline_string
@text details(compatibility)
@desc (This is an older parameter but is left for compatibility.)Set the quest details to change.
@command ChangeRewards
@text Reward change
@desc Change quest rewards.
@arg VariableId
@type variable
@text variable ID
@desc Specify the variable ID of the quest whose reward you want to change.
@arg Rewards
@type struct<Reward>[]
@text reward
@desc Set the reward for the quest you want to change.
@param QuestDatas
@text quest data
@type struct<QuestData>[]
@default []
@desc
Register the quest data.
@param EnabledQuestMenu
@text Quest menu enabled
@type boolean
@on display
@off hidden
@default true
@desc
Specify whether to add the quest management screen to the menu.
@param EnabledQuestMenuSwitchId
@text Quest menu activation switch ID
@type switch
@default 0
@desc
Specify the switch ID that determines whether the quest management screen of the menu is valid / invalid.
@param MenuCommands
@text Menu display command
@type select[]
@option all
@option questOrder
@option orderingQuest
@option questCancel
@option questReport
@option reportedQuest
@option failedQuest
@option expiredQuest
@option hiddenQuest
@default ["orderingQuest", "reportedQuest", "all"]
@desc
Specify the filter command to be used on the quest management screen of the menu. See help quest command
@param MenuBackgroundImage
@text menu background image
@type struct<BackgroundImage>
@default {"FileName1": "", "FileName2": "", "XOfs": "240", "YOfs": "300"}
@desc
Specify the background image of the quest scene in the menu.
@param DisplayRequestor
@text View requester
@type boolean
@on display
@off hidden
@default true
@desc
Specify whether to display the title.
@param DisplayRewards
@text Reward display
@type boolean
@default true
@desc
Specify whether to display the reward request location.
@param DisplayDifficulty
@text Display of difficulty
@type boolean
@on display
@off hidden
@default true
@desc
Specify whether to display the quest difficulty level.
@param DisplayPlace
@text Display location
@type boolean
@default true
@desc
Specify whether to display the request location of the quest.
@param DisplayTimeLimit
@text Expiration date display
@type boolean
@on display
@off hidden
@default true
@desc
Specify whether to display the expiration date of the quest.
@param EnabledQuestOrderingCountWindow
@text Whether or not to display the number of quest orders window
@type boolean
@on display
@off hidden
@default true
@desc
Specifies whether or not to display the Quest Order Quantity window.
@param QuestOrderSe
@text Quest Order SE
@type struct<QuestOrderSe>
@default {"FileName": "Skill1", "Volume": "90", "Pitch": "100", "Pan": "0"}
@desc
Set the SE to play when you receive an order for a quest.
@param QuestReportMe
@text Quest Report ME
@type struct<QuestReportMe>
@default {"FileName": "Item", "Volume": "90", "Pitch": "100", "Pan": "0"}
@desc
Set the ME to play when reporting a quest.
@param WindowSize
@text Window size
@type struct<WindowSize>
@default {"CommandWindowWidth": "300", "CommandWindowHeight": "160", "DialogWindowWidth": "400", "GetRewardWindowWidth": "540" }
@desc
Set the size of various windows.
@param Text
@text Display text
@type struct<Text>
@default {"MenuQuestSystemText":"Quest confirmation","QuestOrderText":"Do you want to take this quest?","QuestOrderYesText":"Receive","QuestOrderNoText":"not accepted","QuestCancelText":"Do you want to cancel this quest?","QuestCancelYesText":"cancel","QuestCancelNoText":"do not cancel","QuestReportText":"Do you want to report this quest?","QuestReportYesText":"Report","QuestReportNoText":"do not report","NothingQuestText":"There is no corresponding quest.","GetRewardText":"Received the following items as a reward.","ReachedLimitText":"The number of quests has reached the limit.","HiddenTitleText":"??????????","AllCommandText":"All quests","QuestOrderCommandText":"Receive quest","OrderingQuestCommandText":"quest in progress","QuestCancelCommandText":"quest cancellation","QuestReportCommandText":"Report quest","ReportedQuestCommandText":"Reported quest","FailedQuestCommandText":"quest that failed","ExpiredQuestCommandText":"Expired quest","HiddenQuestCommandText":"unknown quest","NotOrderedStateText":"unordered","OrderingStateText":"in progress","ReportableStateText":"can be reported","ReportedStateText":"reported","FailedStateText":"failure","ExpiredStateText":"expired","RequesterText":"[Requester]:","RewardText":"[Reward]:","DifficultyText":"[Difficulty]:","PlaceText":"[Location]:","TimeLimitText":"[Period]:"}
@desc
Sets the text used in the game.
@param TextColor
@text Display text color
@type struct<TextColor>
@default {"NotOrderedStateColor":"#aaaaaa","OrderingStateColor":"#ffffff","ReportableStateColor":"#ffff00","ReportedStateColor":"#60ff60","FailedStateColor":"#0000ff","ExpiredStateColor":"#ff0000"}
@desc
Sets the color of the text used in the game.
@param CommandIcon
@text command icon
@type struct <CommandIcon>
@default {"AllCommandIcon": "0", "QuestOrderCommandIcon": "0", "OrderingQuestCommandIcon": "0", "QuestCancelCommandIcon": "0", "QuestReportCommandIcon": "0", "ReportedQuestCommandIcon": "0" , "FailedQuestCommandIcon": "0", "ExpiredQuestCommandIcon": "0", "HiddenQuestCommandIcon": "0"}
@desc
Specify the icon of the quest command.
@param GoldIcon
@text gold icon
@type number
@default 314
@desc
Set the gold icon to be displayed in the reward column.
@param ExpIcon
@text Experience point icon
@type number
@default 89
@desc
Set the experience value icon to be displayed in the reward column.
@param QuestTitleWrap
@text Quest title With or without line breaks
@type boolean
@default false
@desc
Set the presence or absence of line breaks in the quest title.
@param MaxOrderingQuests
@text Maximum number of quests that can be ordered
@type number
@default 3
@desc
Specify the number of quests that can be ordered at one time. If it is 0, you can receive infinite orders.
*/
/*~struct~QuestData:
@param VariableId
@text variable ID
@type variable
@desc
Specify variables that manage the state of the quest.
@param Title
@text title
@type string
@desc
Specify the title of the quest.
@param IconIndex
@text title icon
@type number
@desc
Specify the icon to be displayed in the title of the quest.
@param Requester
@text Requester name
@type string
@desc
Specify the name of the requester of the quest.
@param Rewards
@text reward
@type struct<Reward>[]
@desc
Specify the reward for the quest.
@param Difficulty
@text Difficulty
@type string
@desc
Specify the difficulty level of the quest.
@param Place
@text location
@type string
@desc
Specify the location of the quest.
@param TimeLimit
@text expiration date
@type string
@desc
Specify the expiration date of the quest.
@param DetailNote
@text Quest information
@type note
@desc
Specify the quest information.
@param HiddenDetailNote
@text Hidden information
@type note
@desc
Specifies information when the quest is hidden.
@param Detail
@text Quest information(compatibility)
@type multiline_string
@desc
(This is an older parameter but is left for compatibility.) Specify the quest information.
@param HiddenDetail
@text Hidden information(compatibility)
@type multiline_string
@desc
(This is an older parameter but is left for compatibility.) Specifies information when the quest is hidden.
@param QuestOrderCommonEventId
@text Common event ID that activates when accepting a quest
@type common_event
@default 0
@desc
Specify the common event ID that will be activated immediately after accepting the quest. If it is 0, it will not start.
@param CommonEventId
@text Common event ID that starts when the quest report is completed
@type common_event
@default 0
@desc
Specify the common event ID that will be triggered immediately after completing the quest report. If it is 0, it will not start.
@param QuestCancelCommonEventId
@text Common event ID that activates when the quest is canceled
@type common_event
@default 0
@desc
Specify the common event ID that will be triggered immediately after completing the quest report. If it is 0, it will not start.
@param Priority
@text Priority
@type number
@default 0
@desc
Specify the display priority of the quest. The higher the value, the higher the priority.
*/
/*~struct~Reward:
@param Type
@text Reward type
@type select
@option gold
@value gold
@option Experience points
@value exp
@option item
@value item
@option Weapon
@value weapon
@option armor
@value armor
@option optional
@value any
@desc
Specify the type of reward (gold, experience, item, weapon, armor, or whatever).
@param GoldValue
@text Reward Gold Number
@type number
@desc
Specifies the gold to get if the reward type is gold.
@param ExpValue
@text Reward experience points
@type number
@desc
Specifies the experience points to obtain if the reward type is experience points.
@param ItemId
@text Reward item ID
@type number
@desc
Specifies the item ID to get if the reward type is item.
@param ItemCount
@text Number of reward items
@type number
@desc
Specifies the number of items to obtain if the reward type is item.
@param Text
@text text
@type string
@desc
Specifies the text to display if the reward type is arbitrary.
@param IconIndex
@text icon
@type number
@desc
Specifies the icon to display when the reward type is arbitrary.
*/
/*~struct~QuestOrderSe:
@param FileName
@text Order SE
@type file
@dir audio / se
@default Skill1
@desc
Specify the file name of the SE to be played when the quest is ordered.
@param Volume
@text Order SE Volume
@type number
@default 90
@desc
Specify the volume of SE to be played when the quest is ordered.
@param Pitch
@text Order SE pitch
@type number
@default 100
@desc
Specify the pitch of the SE to play when the quest is ordered.
@param Pan
@text Order SE Phase
@type number
@default 0
@desc
Specify the pan of the SE to be played when the quest is ordered.
*/
/*~struct~QuestReportMe:
@param FileName
@text Report ME
@type file
@dir audio / me
@default Item
@desc
Specify the filename of the ME to play when reporting the quest.
@param Volume
@text Report ME Volume
@type number
@default 90
@desc
Specifies the volume of ME to play when reporting a quest.
@param Pitch
@text Report ME Pitch
@type number
@default 100
@desc
Specifies the pitch of the ME to play when reporting a quest.
@param Pan
@text Report ME Phase
@type number
@default 0
@desc
Specifies the ME pan to play when reporting a quest.
*/
/*~struct~BackgroundImage:
@param FileName1
@text filename 1
@type file
@dir img
@desc
Specify the file name of the background image.
@param FileName2
@text filename 2
@type file
@dir img
@desc
Specify the file name of the image to be added to the background image.
@param XOfs
@text X coordinate offset
@type number
@default 240
@desc
Specifies the X coordinate offset of the image to add to the background image.
@param YOfs
@text Y coordinate offset
@type number
@default 300
@desc
Specifies the Y coordinate offset of the image to add to the background image.
*/
/*~struct~WindowSize:
@param CommandWindowWidth
@text command window width
@type number
@default 300
@desc
Specifies the width of the command window.
@param CommandWindowHeight
@text command window height
@type number
@default 160
@desc
Specifies the vertical width of the command window.
@param DialogWindowWidth
@text dialog window width
@type number
@default 400
@desc
Specifies the width of the dialog window.
@param GetRewardWindowWidth
@text Reward acquisition window width
@type number
@default 540
@desc
Specifies the width of the reward acquisition window.
*/
/*~struct~Text:
@param MenuQuestSystemText
@text Menu display text
@type string
@default Quest confirmation
@desc
Specify the name of the quest management screen to be added to the menu.
@param QuestOrderText
@text Quest order text
@type string
@default Do you want to take this quest?
@desc
Specify the message to be displayed when ordering a quest.
@param QuestOrderYesText
@text Choice text to receive
@type string
@default Receive
@desc
Specify the message to be displayed when the quest order is Yes.
@param QuestOrderNoText
@text Choice text not received
@type string
@default not accepted
@desc
Specify the message to be displayed in the case of quest order No.
@param QuestCancelText
@text Cancellation confirmation message
@type string
@default Do you want to cancel this quest?
@desc
Specify the message to be displayed when canceling the quest.
@param QuestCancelYesText
@text Choice text to cancel
@type string
@default cancel
@desc
Quest order cancellation Specify the message to be displayed when Yes.
@param QuestCancelNoText
@text Choice text not to cancel
@type string
@default do not cancel
@desc
Specify the message to be displayed when the quest order cancellation No.
@param QuestReportText
@text Report confirmation message
@type string
@default Do you want to report this quest?
@desc
Specify the message to be displayed when reporting the quest.
@param QuestReportYesText
@text Choice text to report
@type string
@default Report
@desc
Quest Report Specify the message to be displayed when Yes.
@param QuestReportNoText
@text Choice text not to report
@type string
@default do not report
@desc
Specify the message to be displayed in the case of quest report No.
@param NothingQuestText
@text No quest message
@type string
@default There is no corresponding quest.
@desc
Specify the message to be displayed when there is no corresponding quest.
@param GetRewardText
@text Reward receipt message
@type string
@default Received the following items as a reward.
@desc
Specifies the message to display when receiving a reward.
@param ReachedLimitText
@text Limit reached message
@type string
@default The number of quests has reached the limit.
@desc
Specify the message to be displayed when the number of quests reaches the upper limit.
@param HiddenTitleText
@text Hidden quest title
@type string
@default ??????????
@desc
Specify the title of the hidden quest.
@param AllCommandText
@text All quest display command
@type string
@default All quests
@desc
Specify the command name to display all quests.
@param QuestOrderCommandText
@text Quest consignment command
@type string
@default Receive quest
@desc
Specify the command name for receiving the quest.
@param OrderingQuestCommandText
@text In-progress quest command
@type string
@default quest in progress
@desc
Specify the command name to check the quest in progress.
@param QuestCancelCommandText
@text quest cancel command
@type string
@default quest cancellation
@desc
Specify the command name to cancel the quest in progress.
@param QuestReportCommandText
@text quest report command
@type string
@default Report quest
@desc
Specify the command name when reporting a quest.
@param ReportedQuestCommandText
@text Reported quest confirmation command
@type string
@default Reported quest
@desc
Specify the command name to check the reported quest.
@param FailedQuestCommandText
@text Failure quest confirmation command
@type string
@default quest that failed
@desc
Specify the command name to check the failed quest.
@param ExpiredQuestCommandText
@text Expired quest confirmation command
@type string
@default Expired quest
@desc
Specify the command name to check the expired quest.
@param HiddenQuestCommandText
@text Hidden quest confirmation command
@type string
@default unknown quest
@desc
Specify the command name to check the hidden quest.
@param NotOrderedStateText
@text Unordered text
@type string
@default Unordered
@desc
Specifies the text in the unordered state.
@param OrderingStateText
@text Text in progress
@type string
@default Progress
@desc
Specifies the text in the in-progress state.
@param ReportableStateText
@text Reportable text
@type string
@default Reportable
@desc
Specifies the text in a reportable state.
@param ReportedStateText
@text Reported text
@type string
@default Reported
@desc
Specifies the text in the reported state.
@param FailedStateText
@text Failure text
@type string
@default Failure
@desc
Specifies the text of the failed state.
@param ExpiredStateText
@text Expired text
@type string
@default Expired
@desc
Specifies the expired text.
@param RequesterText
@text Requester text
@type string
@default [Requester]:
@desc
Specify the requester's text.
@param RewardText
@text reward text
@type string
@default [Reward]:
@desc
Specify the reward text.
@param DifficultyText
@text Difficulty text
@type string
@default [Difficulty]:
@desc
Specify the difficulty text.
@param PlaceText
@text location text
@type string
@default [Location]:
@desc
Specify the text of the location.
@param TimeLimitText
@text Deadline text
@type string
@default [Period]:
@desc
Specify the text of the period.
*/
/*~struct~TextColor:
@param NotOrderedStateColor
@text Unordered text color
@type string
@default #aaaaaa
@desc
Specifies the color of the unordered text.
@param OrderingStateColor
@text Text color in progress
@type string
@default #ffffff
@desc
Specifies the color of the text in progress.
@param ReportableStateColor
@text Reportable text color
@type string
@default #ffff00
@desc
Specifies the color of the reportable text.
@param ReportedStateColor
@text Reported text color
@type string
@default #60ff60
@desc
Specifies the color of the text in the reported state.
@param FailedStateColor
@text Failed text color
@type string
@default #0000ff
@desc
Specifies the color of the text in the failed state.
@param ExpiredStateColor
@text Expired text color
@type string
@default #ff0000
@desc
Specifies the color of the expired text.
*/
/*~struct~CommandIcon:
@param AllCommandIcon
@text All quest display command icon
@type number
@default 0
@desc
Specify the command icon for displaying all quests.
@param QuestOrderCommandIcon
@text Quest consignment command icon
@type number
@default 0
@desc
Specify the icon of the command for accepting the quest.
@param OrderingQuestCommandIcon
@text In-progress quest command icon
@type number
@default 0
@desc
Specifies the command icon for the quest in progress.
@param QuestCancelCommandIcon
@text quest cancel command icon
@type number
@default 0
@desc
Specify the icon for the quest cancel command.
@param QuestReportCommandIcon
@text quest report command icon
@type number
@default 0
@desc
Specifies the icon for the quest report command.
@param ReportedQuestCommandIcon
@text Reported quest confirmation command icon
@type number
@default 0
@desc
Specifies the command icon for the reported quest.
@param FailedQuestCommandIcon
@text Failure quest confirmation command icon
@type number
@default 0
@desc
Specify the command icon for the failed quest.
@param ExpiredQuestCommandIcon
@text Expired quest confirmation command icon
@type number
@default 0
@desc
Specifies the command icon for expired quests.
@param HiddenQuestCommandIcon
@text Hidden quest confirmation command icon
@type number
@default 0
@desc
Specifies the icon for the hidden quest command.
*/
/*:ja
@target MV MZ
@plugindesc クエストシステム v1.7.0
@author うなぎおおとろ
@url https://raw.githubusercontent.com/unagiootoro/RPGMZ/master/QuestSystem.js
@help
クエストシステムを導入するプラグインです。
【使用方法】
■クエストの作成
クエストはプラグインパラメータ「QuestDatas」を
編集することによって作成します。
このパラメータによってクエストに必要な「依頼者」「報酬」「クエストの内容」
などの項目を設定します。
■クエストの状態管理
各クエストは状態(未受注、進行中、報告済み など)を持ち、
その状態は変数によって管理します。
変数の値が持つ意味は以下の通りです。
0: クエスト未登録