|
1
|
function scr_spellinfoscr_spellinfo
function scr_spellinfo(arg0)
{
cost = -1;
spelltarget = 1;
spellname = stringsetloc( " ", "scr_spellinfo_slash_scr_spellinfo_gml_3_0"
);
spellnameb = " ";
spelldescb = stringsetloc( " ", "scr_spellinfo_slash_scr_spellinfo_gml_5_0"
);
spelldesc = stringsetloc( " ", "scr_spellinfo_slash_scr_spellinfo_gml_6_0"
);
spellanim = 0;
spellusable = 0;
spelltext = " ";
switch (arg0)
{
case 0:
spellname = stringsetloc( " ", "scr_spellinfo_slash_scr_spellinfo_gml_14_0"
);
spellnameb = " ";
spelltarget = 0;
cost = -1;
spelldescb = stringsetloc(None"None", "scr_spellinfo_slash_scr_spellinfo_gml_18_0"
);
break;
case 1:
spellname = stringsetloc(Rude Sword"Rude Sword", "scr_spellinfo_slash_scr_spellinfo_gml_21_0"
);
spellnameb = stringsetloc(RudeSword"RudeSword", "scr_spellinfo_slash_scr_spellinfo_gml_22_0"
);
spelldescb = stringsetloc(Rude#damage"Rude#damage", "scr_spellinfo_slash_scr_spellinfo_gml_24_0_b"
);
spelldesc = stringsetloc(Deals moderate Rude-elemental damage to#one foe. Depends on Attack Magic."Deals moderate Rude-elemental damage to#one foe. Depends on Attack & Magic.", "scr_spellinfo_slash_scr_spellinfo_gml_24_0"
);
spelltarget = 2;
cost = 125;
spellusable = 0;
break;
case 2:
spellname = stringsetloc(Heal Prayer"Heal Prayer", "scr_spellinfo_slash_scr_spellinfo_gml_31_0"
);
spellnameb = stringsetloc(Heal Prayer"Heal Prayer", "scr_spellinfo_slash_scr_spellinfo_gml_32_0"
);
spelldescb = stringsetloc(Heal#ally"Heal#ally", "scr_spellinfo_slash_scr_spellinfo_gml_34_0_b"
);
spelldesc = stringsetloc(Heavenly light restores a little HP to#one party member. Depends on Magic."Heavenly light restores a little HP to#one party member. Depends on Magic.", "scr_spellinfo_slash_scr_spellinfo_gml_34_0"
);
spelltarget = 1;
cost = 80;
usable = 0;
spellusable = 0;
break;
case 3:
spellname = stringsetloc(Pacify"Pacify", "scr_spellinfo_slash_scr_spellinfo_gml_42_0"
);
spellnameb = stringsetloc(Pacify"Pacify", "scr_spellinfo_slash_scr_spellinfo_gml_43_0"
);
spelldescb = stringsetloc(Spare#TIRED foe"Spare#TIRED foe", "scr_spellinfo_slash_scr_spellinfo_gml_45_0_b"
);
spelldesc = stringsetloc(SPARE a tired enemy by putting them to sleep."SPARE a tired enemy by putting them to sleep.", "scr_spellinfo_slash_scr_spellinfo_gml_45_0"
);
spelltarget = 2;
cost = 40;
usable = 0;
spellusable = 0;
break;
case 4:
spellname = stringsetloc(Rude Buster"Rude Buster", "scr_spellinfo_slash_scr_spellinfo_gml_52_0"
);
spellnameb = stringsetloc(Rude Buster"Rude Buster", "scr_spellinfo_slash_scr_spellinfo_gml_53_0"
);
spelldescb = stringsetloc(Rude#damage"Rude#damage", "scr_spellinfo_slash_scr_spellinfo_gml_55_0_b"
);
spelldesc = stringsetloc(Deals moderate Rude-elemental damage to#one foe. Depends on Attack Magic."Deals moderate Rude-elemental damage to#one foe. Depends on Attack & Magic.", "scr_spellinfo_slash_scr_spellinfo_gml_55_0"
);
spelltarget = 2;
cost = 125;
if (global.charweapon[2] == 7)
cost = 100;
spellusable = 0;
break;
case 5:
spellname = stringsetloc(Red Buster"Red Buster", "scr_spellinfo_slash_scr_spellinfo_gml_64_0"
);
spellnameb = stringsetloc(Red Buster"Red Buster", "scr_spellinfo_slash_scr_spellinfo_gml_65_0"
);
spelldescb = stringsetloc(Red#damage"Red#damage", "scr_spellinfo_slash_scr_spellinfo_gml_67_0_b"
);
spelldesc = stringsetloc( " ", "scr_spellinfo_slash_scr_spellinfo_gml_67_0"
);
spelltarget = 2;
cost = 0;
spellusable = 0;
break;
case 6:
spellname = stringsetloc(Dual Heal"Dual Heal", "scr_spellinfo_slash_scr_spellinfo_gml_75_0"
);
spellnameb = stringsetloc(Dual Heal"Dual Heal", "scr_spellinfo_slash_scr_spellinfo_gml_76_0"
);
spelldescb = stringsetloc(Heal All#30 HP"Heal All#30 HP", "scr_spellinfo_slash_scr_spellinfo_gml_77_0"
);
spelldesc = stringsetloc( " ", "scr_spellinfo_slash_scr_spellinfo_gml_78_0"
);
spelltarget = 0;
cost = 0;
spellusable = 0;
break;
case 7:
spellname = stringsetloc(ACT"ACT", "scr_spellinfo_slash_scr_spellinfo_gml_86_0"
);
spellnameb = stringsetloc(ACT"ACT", "scr_spellinfo_slash_scr_spellinfo_gml_87_0"
);
spelldescb = stringsetloc(Use#action"Use#action", "scr_spellinfo_slash_scr_spellinfo_gml_88_0"
);
spelldesc = stringsetloc(Do all sorts of things.#It isn't magic."Do all sorts of things.#It isn't magic.", "scr_spellinfo_slash_scr_spellinfo_gml_89_0"
);
if (global.chapter == 4)
spelldesc = stringsetloc(Execute various behaviors.#It can't be considered magic."Execute various behaviors.#It can't be considered magic.", "scr_spellinfo_slash_scr_spellinfo_gml_93_0"
);
spelltarget = 0;
cost = 0;
spellusable = 0;
break;
case 8:
spellname = stringsetloc(SleepMist"SleepMist", "scr_spellinfo_slash_scr_spellinfo_gml_96_0"
);
spellnameb = stringsetloc(Sleep Mist"Sleep Mist", "scr_spellinfo_slash_scr_spellinfo_gml_97_0"
);
spelldescb = stringsetloc(Spare#TIRED foes"Spare#TIRED foes", "scr_spellinfo_slash_scr_spellinfo_gml_98_0"
);
spelldesc = stringsetloc(A cold mist sweeps through,#sparing all TIRED enemies."A cold mist sweeps through,#sparing all TIRED enemies.", "scr_spellinfo_slash_scr_spellinfo_gml_99_0"
);
spelltarget = 0;
cost = 80;
spellusable = 0;
break;
case 9:
spellname = stringsetloc(IceShock"IceShock", "scr_spellinfo_slash_scr_spellinfo_gml_107_0"
);
spellnameb = stringsetloc(IceShock"IceShock", "scr_spellinfo_slash_scr_spellinfo_gml_108_0"
);
...
(arg0)
|
|
2
|
{
|
|
3
|
cost = -1;
|
|
4
|
spelltarget = 1;
|
|
5
|
spellname = stringsetloc( " ", "scr_spellinfo_slash_scr_spellinfo_gml_3_0"
);
|
|
6
|
spellnameb = " ";
|
|
7
|
spelldescb = stringsetloc( " ", "scr_spellinfo_slash_scr_spellinfo_gml_5_0"
);
|
|
8
|
spelldesc = stringsetloc( " ", "scr_spellinfo_slash_scr_spellinfo_gml_6_0"
);
|
|
9
|
spellanim = 0;
|
|
10
|
spellusable = 0;
|
|
11
|
spelltext = " ";
|
|
12
|
switch (arg0)
|
|
13
|
{
|
|
14
|
case 0:
|
|
15
|
spellname = stringsetloc( " ", "scr_spellinfo_slash_scr_spellinfo_gml_14_0"
);
|
|
16
|
spellnameb = " ";
|
|
17
|
spelltarget = 0;
|
|
18
|
cost = -1;
|
|
19
|
spelldescb = stringsetloc(None"None", "scr_spellinfo_slash_scr_spellinfo_gml_18_0"
);
|
|
20
|
break;
|
|
21
|
case 1:
|
|
22
|
spellname = stringsetloc(Rude Sword"Rude Sword", "scr_spellinfo_slash_scr_spellinfo_gml_21_0"
);
|
|
23
|
spellnameb = stringsetloc(RudeSword"RudeSword", "scr_spellinfo_slash_scr_spellinfo_gml_22_0"
);
|
|
24
|
spelldescb = stringsetloc(Rude#damage"Rude#damage", "scr_spellinfo_slash_scr_spellinfo_gml_24_0_b"
);
|
|
25
|
spelldesc = stringsetloc(Deals moderate Rude-elemental damage to#one foe. Depends on Attack Magic."Deals moderate Rude-elemental damage to#one foe. Depends on Attack & Magic.", "scr_spellinfo_slash_scr_spellinfo_gml_24_0"
);
|
|
26
|
spelltarget = 2;
|
|
27
|
cost = 125;
|
|
28
|
spellusable = 0;
|
|
29
|
break;
|
|
30
|
case 2:
|
|
31
|
spellname = stringsetloc(Heal Prayer"Heal Prayer", "scr_spellinfo_slash_scr_spellinfo_gml_31_0"
);
|
|
32
|
spellnameb = stringsetloc(Heal Prayer"Heal Prayer", "scr_spellinfo_slash_scr_spellinfo_gml_32_0"
);
|
|
33
|
spelldescb = stringsetloc(Heal#ally"Heal#ally", "scr_spellinfo_slash_scr_spellinfo_gml_34_0_b"
);
|
|
34
|
spelldesc = stringsetloc(Heavenly light restores a little HP to#one party member. Depends on Magic."Heavenly light restores a little HP to#one party member. Depends on Magic.", "scr_spellinfo_slash_scr_spellinfo_gml_34_0"
);
|
|
35
|
spelltarget = 1;
|
|
36
|
cost = 80;
|
|
37
|
usable = 0;
|
|
38
|
spellusable = 0;
|
|
39
|
break;
|
|
40
|
case 3:
|
|
41
|
spellname = stringsetloc(Pacify"Pacify", "scr_spellinfo_slash_scr_spellinfo_gml_42_0"
);
|
|
42
|
spellnameb = stringsetloc(Pacify"Pacify", "scr_spellinfo_slash_scr_spellinfo_gml_43_0"
);
|
|
43
|
spelldescb = stringsetloc(Spare#TIRED foe"Spare#TIRED foe", "scr_spellinfo_slash_scr_spellinfo_gml_45_0_b"
);
|
|
44
|
spelldesc = stringsetloc(SPARE a tired enemy by putting them to sleep."SPARE a tired enemy by putting them to sleep.", "scr_spellinfo_slash_scr_spellinfo_gml_45_0"
);
|
|
45
|
spelltarget = 2;
|
|
46
|
cost = 40;
|
|
47
|
usable = 0;
|
|
48
|
spellusable = 0;
|
|
49
|
break;
|
|
50
|
case 4:
|
|
51
|
spellname = stringsetloc(Rude Buster"Rude Buster", "scr_spellinfo_slash_scr_spellinfo_gml_52_0"
);
|
|
52
|
spellnameb = stringsetloc(Rude Buster"Rude Buster", "scr_spellinfo_slash_scr_spellinfo_gml_53_0"
);
|
|
53
|
spelldescb = stringsetloc(Rude#damage"Rude#damage", "scr_spellinfo_slash_scr_spellinfo_gml_55_0_b"
);
|
|
54
|
spelldesc = stringsetloc(Deals moderate Rude-elemental damage to#one foe. Depends on Attack Magic."Deals moderate Rude-elemental damage to#one foe. Depends on Attack & Magic.", "scr_spellinfo_slash_scr_spellinfo_gml_55_0"
);
|
|
55
|
spelltarget = 2;
|
|
56
|
cost = 125;
|
|
57
|
if (global.charweapon[2] == 7)
|
|
58
|
cost = 100;
|
|
59
|
spellusable = 0;
|
|
60
|
break;
|
|
61
|
case 5:
|
|
62
|
spellname = stringsetloc(Red Buster"Red Buster", "scr_spellinfo_slash_scr_spellinfo_gml_64_0"
);
|
|
63
|
spellnameb = stringsetloc(Red Buster"Red Buster", "scr_spellinfo_slash_scr_spellinfo_gml_65_0"
);
|
|
64
|
spelldescb = stringsetloc(Red#damage"Red#damage", "scr_spellinfo_slash_scr_spellinfo_gml_67_0_b"
);
|
|
65
|
spelldesc = stringsetloc( " ", "scr_spellinfo_slash_scr_spellinfo_gml_67_0"
);
|
|
66
|
spelltarget = 2;
|
|
67
|
cost = 0;
|
|
68
|
spellusable = 0;
|
|
69
|
break;
|
|
70
|
case 6:
|
|
71
|
spellname = stringsetloc(Dual Heal"Dual Heal", "scr_spellinfo_slash_scr_spellinfo_gml_75_0"
);
|
|
72
|
spellnameb = stringsetloc(Dual Heal"Dual Heal", "scr_spellinfo_slash_scr_spellinfo_gml_76_0"
);
|
|
73
|
spelldescb = stringsetloc(Heal All#30 HP"Heal All#30 HP", "scr_spellinfo_slash_scr_spellinfo_gml_77_0"
);
|
|
74
|
spelldesc = stringsetloc( " ", "scr_spellinfo_slash_scr_spellinfo_gml_78_0"
);
|
|
75
|
spelltarget = 0;
|
|
76
|
cost = 0;
|
|
77
|
spellusable = 0;
|
|
78
|
break;
|
|
79
|
case 7:
|
|
80
|
spellname = stringsetloc(ACT"ACT", "scr_spellinfo_slash_scr_spellinfo_gml_86_0"
);
|
|
81
|
spellnameb = stringsetloc(ACT"ACT", "scr_spellinfo_slash_scr_spellinfo_gml_87_0"
);
|
|
82
|
spelldescb = stringsetloc(Use#action"Use#action", "scr_spellinfo_slash_scr_spellinfo_gml_88_0"
);
|
|
83
|
spelldesc = stringsetloc(Do all sorts of things.#It isn't magic."Do all sorts of things.#It isn't magic.", "scr_spellinfo_slash_scr_spellinfo_gml_89_0"
);
|
|
84
|
if (global.chapter == 4)
|
|
85
|
spelldesc = stringsetloc(Execute various behaviors.#It can't be considered magic."Execute various behaviors.#It can't be considered magic.", "scr_spellinfo_slash_scr_spellinfo_gml_93_0"
);
|
|
86
|
spelltarget = 0;
|
|
87
|
cost = 0;
|
|
88
|
spellusable = 0;
|
|
89
|
break;
|
|
90
|
case 8:
|
|
91
|
spellname = stringsetloc(SleepMist"SleepMist", "scr_spellinfo_slash_scr_spellinfo_gml_96_0"
);
|
|
92
|
spellnameb = stringsetloc(Sleep Mist"Sleep Mist", "scr_spellinfo_slash_scr_spellinfo_gml_97_0"
);
|
|
93
|
spelldescb = stringsetloc(Spare#TIRED foes"Spare#TIRED foes", "scr_spellinfo_slash_scr_spellinfo_gml_98_0"
);
|
|
94
|
spelldesc = stringsetloc(A cold mist sweeps through,#sparing all TIRED enemies."A cold mist sweeps through,#sparing all TIRED enemies.", "scr_spellinfo_slash_scr_spellinfo_gml_99_0"
);
|
|
95
|
spelltarget = 0;
|
|
96
|
cost = 80;
|
|
97
|
spellusable = 0;
|
|
98
|
break;
|
|
99
|
case 9:
|
|
100
|
spellname = stringsetloc(IceShock"IceShock", "scr_spellinfo_slash_scr_spellinfo_gml_107_0"
);
|
|
101
|
spellnameb = stringsetloc(IceShock"IceShock", "scr_spellinfo_slash_scr_spellinfo_gml_108_0"
);
|
|
102
|
spelldescb = stringsetloc(Damage#wWait for input ICE"Damage#w/ ICE", "scr_spellinfo_slash_scr_spellinfo_gml_109_0"
);
|
|
103
|
spelldesc = stringsetloc(Deals magical ICE damage to#one enemy."Deals magical ICE damage to#one enemy.", "scr_spellinfo_slash_scr_spellinfo_gml_110_0"
);
|
|
104
|
spelltarget = 2;
|
|
105
|
cost = 40;
|
|
106
|
if (global.charweapon[4] == 13)
|
|
107
|
cost *= 0.5;
|
|
108
|
spellusable = 0;
|
|
109
|
break;
|
|
110
|
case 10:
|
|
111
|
spellname = stringsetloc(SnowGrave"SnowGrave", "scr_spellinfo_slash_scr_spellinfo_gml_121_0"
);
|
|
112
|
spellnameb = stringsetloc(SnowGrave"SnowGrave", "scr_spellinfo_slash_scr_spellinfo_gml_122_0"
);
|
|
113
|
spelldescb = stringsetloc(Fatal"Fatal", "scr_spellinfo_slash_scr_spellinfo_gml_123_0"
);
|
|
114
|
spelldesc = stringsetloc(Deals the fatal damage to#all of the enemies."Deals the fatal damage to#all of the enemies.", "scr_spellinfo_slash_scr_spellinfo_gml_124_0"
);
|
|
115
|
spelltarget = 0;
|
|
116
|
cost = global.maxtension * 2;
|
|
117
|
if (global.charweapon[4] == 13)
|
|
118
|
cost *= 0.5;
|
|
119
|
spellusable = 0;
|
|
120
|
break;
|
|
121
|
case 11:
|
|
122
|
spellname = stringsetloc(OKHeal"OKHeal", "scr_spellinfo_slash_scr_spellinfo_gml_152_0_b"
);
|
|
123
|
spellnameb = stringsetloc(OKHeal"OKHeal", "scr_spellinfo_slash_scr_spellinfo_gml_153_0_b"
);
|
|
124
|
spelldescb = stringsetloc(OK#healing"OK#healing", "scr_spellinfo_slash_scr_spellinfo_gml_154_0"
);
|
|
125
|
spelldesc = stringsetloc(It's not the best healing spell, but#it may have its uses."It's not the best healing spell, but#it may have its uses.", "scr_spellinfo_slash_scr_spellinfo_gml_155_0_b"
);
|
|
126
|
spelltarget = 1;
|
|
127
|
spellusable = 0;
|
|
128
|
if (global.flag[1045 susie_heal_practice] == 0)
|
|
129
|
cost = 212.5;
|
|
130
|
if (global.flag[1045 susie_heal_practice] == 1)
|
|
131
|
cost = 210;
|
|
132
|
if (global.flag[1045 susie_heal_practice] == 2)
|
|
133
|
cost = 210;
|
|
134
|
if (global.flag[1045 susie_heal_practice] == 3)
|
|
135
|
cost = 210;
|
|
136
|
if (global.flag[1045 susie_heal_practice] == 4)
|
|
137
|
cost = 207.5;
|
|
138
|
if (global.flag[1045 susie_heal_practice] == 5)
|
|
139
|
cost = 207.5;
|
|
140
|
if (global.flag[1045 susie_heal_practice] == 6)
|
|
141
|
cost = 207.5;
|
|
142
|
if (global.flag[1045 susie_heal_practice] == 7)
|
|
143
|
cost = 205;
|
|
144
|
if (global.flag[1045 susie_heal_practice] == 8)
|
|
145
|
cost = 205;
|
|
146
|
if (global.flag[1045 susie_heal_practice] == 9)
|
|
147
|
cost = 205;
|
|
148
|
if (global.flag[1045 susie_heal_practice] == 10)
|
|
149
|
cost = 202.5;
|
|
150
|
if (global.flag[1045 susie_heal_practice] == 11)
|
|
151
|
cost = 202.5;
|
|
152
|
if (global.flag[1045 susie_heal_practice] == 12)
|
|
153
|
cost = 202.5;
|
|
154
|
if (global.flag[1045 susie_heal_practice] == 13)
|
|
155
|
cost = 200;
|
|
156
|
if (global.flag[1045 susie_heal_practice] == 14)
|
|
157
|
cost = 200;
|
|
158
|
if (global.flag[1045 susie_heal_practice] >= 15)
|
|
159
|
cost = 200;
|
|
160
|
if (global.plot >= 110 && global.flag[850] < 6)
|
|
161
|
{
|
|
162
|
spellname = stringsetloc(Heal"Heal", "scr_spellinfo_slash_scr_spellinfo_gml_161_0"
);
|
|
163
|
spellnameb = stringsetloc(Heal"Heal", "scr_spellinfo_slash_scr_spellinfo_gml_162_0"
);
|
|
164
|
spelldescb = stringsetloc(Can't#use"Can't#use", "scr_spellinfo_slash_scr_spellinfo_gml_163_0"
);
|
|
165
|
spelldesc = stringsetloc(It seems the user doesn't#want to use this spell."It seems the user doesn't#want to use this spell.", "scr_spellinfo_slash_scr_spellinfo_gml_164_0"
);
|
|
166
|
cost = 255;
|
|
167
|
}
|
|
168
|
if (global.flag[1569] == 1 || global.flag[852] == 1)
|
|
169
|
{
|
|
170
|
if (global.flag[1045 susie_heal_practice] == 0)
|
|
171
|
cost = 200;
|
|
172
|
if (global.flag[1045 susie_heal_practice] == 1)
|
|
173
|
cost = 197.5;
|
|
174
|
if (global.flag[1045 susie_heal_practice] == 2)
|
|
175
|
cost = 197.5;
|
|
176
|
if (global.flag[1045 susie_heal_practice] == 3)
|
|
177
|
cost = 197.5;
|
|
178
|
if (global.flag[1045 susie_heal_practice] == 4)
|
|
179
|
cost = 195;
|
|
180
|
if (global.flag[1045 susie_heal_practice] == 5)
|
|
181
|
cost = 195;
|
|
182
|
if (global.flag[1045 susie_heal_practice] == 6)
|
|
183
|
cost = 195;
|
|
184
|
if (global.flag[1045 susie_heal_practice] == 7)
|
|
185
|
cost = 192.5;
|
|
186
|
if (global.flag[1045 susie_heal_practice] == 8)
|
|
187
|
cost = 192.5;
|
|
188
|
if (global.flag[1045 susie_heal_practice] == 9)
|
|
189
|
cost = 192.5;
|
|
190
|
if (global.flag[1045 susie_heal_practice] == 10)
|
|
191
|
cost = 190;
|
|
192
|
if (global.flag[1045 susie_heal_practice] == 11)
|
|
193
|
cost = 190;
|
|
194
|
if (global.flag[1045 susie_heal_practice] == 12)
|
|
195
|
cost = 190;
|
|
196
|
if (global.flag[1045 susie_heal_practice] == 13)
|
|
197
|
cost = 187.5;
|
|
198
|
if (global.flag[1045 susie_heal_practice] == 14)
|
|
199
|
cost = 187.5;
|
|
200
|
if (global.flag[1045 susie_heal_practice] >= 15)
|
|
201
|
cost = 187.5;
|
|
202
|
spellname = stringsetloc(BetterHeal"BetterHeal", "scr_spellinfo_slash_scr_spellinfo_gml_169_0"
);
|
|
203
|
spellnameb = stringsetloc(BetterHeal"BetterHeal", "scr_spellinfo_slash_scr_spellinfo_gml_170_0"
);
|
|
204
|
spelldescb = stringsetloc(Heal#ally"Heal#ally", "scr_spellinfo_slash_scr_spellinfo_gml_171_0"
);
|
|
205
|
spelldesc = stringsetloc(A healing spell that has grown#with practice and confidence."A healing spell that has grown#with practice and confidence.", "scr_spellinfo_slash_scr_spellinfo_gml_172_0"
);
|
|
206
|
}
|
|
207
|
break;
|
|
208
|
}
|
|
209
|
}
|