The script won't compile. It says that powerwish might have an extra begin or (.
Now, brace yourself. Here is the entire script. I shall break it up into two parts: The wish selection, and the wish granting script.
Code: Select all
plotscript, wishing well wealth, begin
variable(wish)
set variable(wish,random,1,50)
if (wish == 50) then wealth wish
else
show text box(37)
wait for text box
end
plotscript, wishing well item, begin
variable(wish)
set variable(wish,random,1,50)
if (wish == 50) then item wish
else
show text box(37)
wait for text box
end
plotscript, wishing well power, begin
variable(wish)
set variable(wish,random,1,50)
if (wish == 50) then power wish
else
show text box(37)
wait for text box
end
plotscript, wishing well health, begin
variable(wish)
set variable(wish,random,1,50)
if (wish == 50) then health wish
else
show text box(37)
wait for text box
end
plotscript, wishing well skill, begin
variable(wish)
set variable(wish,random,1,50)
if (wish == 50) then skill wish
else
show text box(37)
wait for text box
end
Code: Select all
plotscript, wealth wish, begin
variable(wealth)
set variable(wealth,random,1,15)
if(wealth == 1) then get money(5)
if(wealth == 2) then get money(15)
if(wealth == 3) then get money(25)
if(wealth == 4) then get money(50)
if(wealth == 5) then get money(100)
if(wealth == 6) then get money(150)
if(wealth == 7) then get money(250)
if(wealth == 8) then get money(500)
if(wealth == 9) then get money(750)
if(wealth == 10) then get money(1000)
if(wealth == 11) then get money(1200)
if(wealth == 12) then get money(1400)
if(wealth == 13) then get money(1600)
if(wealth == 14) then get money(1800)
if(wealth == 15) then get money(2000)
play sound(6,false)
wait(25)
show text box(42)
wait for text box
end
plotscript, skill wish, begin
variable(skill)
variable(hero)
set variable(skill,random,1,10)
hero:= hero by slot(0)
if(skill == 1) then teach spell(hero,atk:Falling)
if(skill == 2) then teach spell(hero,atk:Shooting)
if(skill == 3) then teach spell(hero,atk:Luck Shot)
if(skill == 4) then teach spell(hero,atk:Wish)
if(skill == 5) then teach spell(hero,atk:Luck Heal)
play sound(6,false)
wait(25)
if(skill == 1) then show text box(46)
if(skill == 2) then show text box(47)
if(skill == 3) then show text box(48)
if(skill == 4) then show text box(49)
if(skill == 5) then show text box(50)
wait for text box
end
plotscript, power wish, begin
variable(stat)
set variable(stat(random,1,9)
if(stat == 1) then increase HP
if(stat == 2) then increase MP
if(stat == 3) then increase attack
if(stat == 4) then increase defense
if(stat == 5) then increase aim
if(stat == 6) then increase dodge
if(stat == 7) then increase magic
if(stat == 8) then increase will power
if(stat == 9) then increase luck
play sound(6)
wait(25)
show text box(42)
wait for text box
end
plotscript, health wish, begin
set hero stat(1,stat:hp, get hero stat(1,stat:Health,maximum stat), current stat)
set hero stat(2,stat:hp, get hero stat(2,stat:Health,maximum stat), current stat)
set hero stat(3,stat:hp, get hero stat(3,stat:Health,maximum stat), current stat)
set hero stat(4,stat:hp, get hero stat(4,stat:Health,maximum stat), current stat)
set hero stat(1,stat:Mana, get hero stat(1,stat:Health,maximum stat), current stat)
set hero stat(2,stat:Mana, get hero stat(2,stat:Health,maximum stat), current stat)
set hero stat(3,stat:Mana, get hero stat(3,stat:Health,maximum stat), current stat)
set hero stat(4,stat:Mana, get hero stat(4,stat:Health,maximum stat), current stat)
play sound(6,false)
wait(25)
show text box(44)
wait for text box
end