preliminary juice shoppe scripts

This commit is contained in:
darkfire006 2023-06-17 23:15:57 -05:00
parent 8de3030558
commit 83aa835341
5 changed files with 309 additions and 0 deletions

View File

@ -0,0 +1,44 @@
version=2
:if:<inventory.juicecolor(<storage.get(int,berry1)>)>=<inventory.juicecolor(<storage.get(int,berry2)>)>
@storage.set(string,drink,<inventory.juicecolor(<storage.get(int,berry1)>)>)
@storage.set(integer,value,(<inventory.juicegroup(<storage.get(int,berry1)>)>+<inventory.juicegroup(<storage.get(int,berry2)>)>)*4)
:if:<storage.get(int,berry1)>=<storage.get(int,berry2)>
@storage.set(integer,value,<inventory.juicegroup(<storage.get(int,berry1)>)>*4)
:endif
:else
@storage.set(string,drink,shake)
@storage.set(integer,value,(<inventory.juicegroup(<storage.get(int,berry1)>)>+<inventory.juicegroup(<storage.get(int,berry2)>)>)*6)
:select:<storage.get(int,berry1)>
:when:2057
:if:<storage.get(int,berry2)>=2058
@storage.set(string,drink,soda)
@storage.set(integer,value,<system.random(1,3)>)
:endif
:when:2058
:if:<storage.get(int,berry2)>=2057
@storage.set(string,drink,soda)
@storage.set(integer,value,<system.random(1,3)>)
:endif
:when:2059
:if:<storage.get(int,berry2)>=2064
@storage.set(string,drink,soda)
@storage.set(integer,value,<system.random(4,5)>)
:endif
:when:2064
:if:<storage.get(int,berry2)>=2059
@storage.set(string,drink,soda)
@storage.set(integer,value,<system.random(4,5)>)
:endif
:when:2065
:if:<storage.get(int,berry2)>=2066
@storage.set(string,drink,soup)
@storage.set(integer,value,0)
:endif
:when:2066
:if:<storage.get(int,berry2)>=2065
@storage.set(string,drink,soup)
@storage.set(integer,value,0)
:endif
:endwhen
:endif

View File

@ -0,0 +1,40 @@
version=2
@text.show(Welcome to the Juice Shoppe!*I can help you make your own custom drinks free of charge!*All you have to do is provide the berries!*Would you like to begin?)
@Options.show(Yes,No)
:when:No
@text.show(Come again soon!)
:end
:endwhen
@text.show(Please select your first berry.)
@item.select(plants,2000-2066)
:if:<item.selected>=-1
@text.show(Come again soon!)
:end
:endif
@storage.set(integer,berry1,<item.selected>)
@text.show(Please select your second berry.)
@item.select(plants,2000-2066)
:if:<item.selected>=-1
@text.show(Come again soon!)
:end
:endif
@storage.set(integer,berry2,<item.selected>)
@storage.set(string,drink,fail)
@storage.set(integer,value,-1)
@script.start(frontier\shops\juice\calc)
@text.show(Which Pokemon is this drink for?)
@pokemon.select
:if:<pokemon.selected>=-1
@text.show(Come again soon!)
:end
:endif
@script.start(frontier\shops\juice\give)
@text.show(Come again soon!)
:end

View File

@ -0,0 +1,118 @@
version=2
:if:<register.registered(dailyjuicecalc)>=false
@register.registertime(dailyjuicecalc,1,day)
@storage.set(integer,juicecount,0)
:while:6><storage.get(integer,juicecount)>
@register.unregister(juicetype<storage.get(integer,juicecount)>,str)
@register.unregister(juiceval<storage.get(integer,juicecount)>,int)
@register.unregister(juicedesc<storage.get(integer,juicecount)>,int)
@register.unregister(solddailyjuice<storage.get(integer,juicecount)>)
@storage.set(integer,berry1,<system.random(2000,2066)>)
@storage.set(integer,berry2,<system.random(2000,2066)>)
@storage.set(string,drink,fail)
@storage.set(integer,value,-1)
@script.start(frontier\shops\juice\calc)
@register.register(juicetype<storage.get(integer,juicecount)>,str,<storage.get(string,drink)>)
@register.register(juiceval<storage.get(integer,juicecount)>,int,<storage.get(integer,value)>)
:select:<storage.get(string,drink)>
:when:fail
@text.show(something went wrong please try again later)
:endscript
:when:purple
@register.register(juicedesc<storage.get(integer,juicecount)>,str,Purple Juice <storage.get(integer,value)>/4 BP)
@register.register(juicecost<storage.get(integer,juicecount)>,int,<storage.get(integer,value)>/4)
:when:red
@register.register(juicedesc<storage.get(integer,juicecount)>,str,Red Juice <storage.get(integer,value)>/4 BP)
@register.register(juicecost<storage.get(integer,juicecount)>,int,<storage.get(integer,value)>/4)
:when:yellow
@register.register(juicedesc<storage.get(integer,juicecount)>,str,Yellow Juice <storage.get(integer,value)>/4 BP)
@register.register(juicecost<storage.get(integer,juicecount)>,int,<storage.get(integer,value)>/4)
:when:blue
@register.register(juicedesc<storage.get(integer,juicecount)>,str,Blue Juice <storage.get(integer,value)>/4 BP)
@register.register(juicecost<storage.get(integer,juicecount)>,int,<storage.get(integer,value)>/4)
:when:green
@register.register(juicedesc<storage.get(integer,juicecount)>,str,Green Juice <storage.get(integer,value)>/4 BP)
@register.register(juicecost<storage.get(integer,juicecount)>,int,<storage.get(integer,value)>/4)
:when:pink
@register.register(juicedesc<storage.get(integer,juicecount)>,str,Pink Juice <storage.get(integer,value)>/4 BP)
@register.register(juicecost<storage.get(integer,juicecount)>,int,<storage.get(integer,value)>/4)
:when:shake
@register.register(juicedesc<storage.get(integer,juicecount)>,str,Colorful Shake <storage.get(integer,value)>/6 BP)
@register.register(juicecost<storage.get(integer,juicecount)>,int,<storage.get(integer,value)>/6)
:when:soda
:select:<storage.get(integer,value)>
:when:1;2;3
@register.register(juicedesc<storage.get(integer,juicecount)>,str,Rare Soda 10*<storage.get(integer,value)> BP)
@register.register(juicecost<storage.get(integer,juicecount)>,int,(1+<storage.get(integer,value)>)*10)
:when:4;5
@register.register(juicedesc<storage.get(integer,juicecount)>,str,Ultra Rare Soda 10*<storage.get(integer,value)> BP)
@register.register(juicecost<storage.get(integer,juicecount)>,int,(1+<storage.get(integer,value)>)*10)
:endwhen
:when:soup
@register.register(juicedesc<storage.get(integer,juicecount)>,str,Perilous Soup 20 BP)
@register.register(juicecost<storage.get(integer,juicecount)>,int,20)
:endwhen
@storage.set(integer,juicecount,<storage.get(integer,juicecount)>+1)
:endwhile
:endif
@storage.set(string,drink,fail)
@storage.set(integer,value,-1)
@storage.set(integer,juicecount,0)
@storage.set(string,juiceselect,)
:while:6><storage.get(integer,juicecount)>
:if:<register.registered(solddailyjuice<storage.get(integer,juicecount)>)>=false
@storage.set(string,juiceselect,<storage.get(string,juiceselect)><register.value(juicedesc<storage.get(integer,juicecount)>)>,)
:endif
@storage.set(integer,juicecount,<storage.get(integer,juicecount)>+1)
:endwhile
@storage.set(string,juiceselect,<storage.get(string,juiceselect)>Exit)
@text.show(Welcome to the Juice Shoppe!*Please take a look at our daily specials!)
@options.show(<storage.get(string,juiceselect)>)
:when:Exit
@text.show(Come again soon!)
:endscript
:when:<register.value(juicedesc0)>
@storage.set(string,drink,<register.value(juicetype0)>)
@storage.set(integer,value,<register.value(juiceval0)>)
@storage.set(integer,select,0)
:when:<register.value(juicedesc1)>
@storage.set(string,drink,<register.value(juicetype1)>)
@storage.set(integer,value,<register.value(juiceval1)>)
@storage.set(integer,select,1)
:when:<register.value(juicedesc2)>
@storage.set(string,drink,<register.value(juicetype2)>)
@storage.set(integer,value,<register.value(juiceval2)>)
@storage.set(integer,select,2)
:when:<register.value(juicedesc3)>
@storage.set(string,drink,<register.value(juicetype3)>)
@storage.set(integer,value,<register.value(juiceval3)>)
@storage.set(integer,select,3)
:when:<register.value(juicedesc4)>
@storage.set(string,drink,<register.value(juicetype4)>)
@storage.set(integer,value,<register.value(juiceval4)>)
@storage.set(integer,select,4)
:when:<register.value(juicedesc5)>
@storage.set(string,drink,<register.value(juicetype5)>)
@storage.set(integer,value,<register.value(juiceval5)>)
@storage.set(integer,select,5)
:endwhen
@text.show(Which Pokemon is this drink for?)
@pokemon.select
:if:<pokemon.selected>=-1
@text.show(Come again soon!)
:end
:endif
@script.start(frontier\shops\juice\give)
@player.addbp(-<storage.get(integer,cost)>)
@register.register(solddailyjuice<storage.get(integer,select)>)
:end

View File

@ -0,0 +1,95 @@
version=2
:select:<storage.get(string,drink)>
:when:fail
@text.show(something went wrong please try again later)
:endscript
:when:purple
@text.show(Give this Purple Juice to your <pokemon.displayname(<pokemon.selected>)>?)
@Options.show(Yes,No)
:when:No
@text.show(Come again soon!)
:endscript
:endwhen
@pokemon.addfriendship(<pokemon.selected>,4)
@pokemon.addev(<pokemon.selected>,hp,<storage.get(integer,value)>)
@pokemon.calcstats(<pokemon.selected>)
:when:red
@text.show(Give this Red Juice to your <pokemon.displayname(<pokemon.selected>)>?)
@Options.show(Yes,No)
:when:No
@text.show(Come again soon!)
:endscript
:endwhen
@pokemon.addfriendship(<pokemon.selected>,4)
@pokemon.addev(<pokemon.selected>,atk,<storage.get(integer,value)>)
@pokemon.calcstats(<pokemon.selected>)
:when:yellow
@text.show(Give this Yellow Juice to your <pokemon.displayname(<pokemon.selected>)>?)
@Options.show(Yes,No)
:when:No
@text.show(Come again soon!)
:endscript
:endwhen
@pokemon.addfriendship(<pokemon.selected>,4)
@pokemon.addev(<pokemon.selected>,def,<storage.get(integer,value)>)
@pokemon.calcstats(<pokemon.selected>)
:when:blue
@text.show(Give this Blue Juice to your <pokemon.displayname(<pokemon.selected>)>?)
@Options.show(Yes,No)
:when:No
@text.show(Come again soon!)
:endscript
:endwhen
@pokemon.addfriendship(<pokemon.selected>,4)
@pokemon.addev(<pokemon.selected>,spatk,<storage.get(integer,value)>)
@pokemon.calcstats(<pokemon.selected>)
:when:green
@text.show(Give this Green Juice to your <pokemon.displayname(<pokemon.selected>)>?)
@Options.show(Yes,No)
:when:No
@text.show(Come again soon!)
:endscript
:endwhen
@pokemon.addfriendship(<pokemon.selected>,4)
@pokemon.addev(<pokemon.selected>,spdef,<storage.get(integer,value)>)
@pokemon.calcstats(<pokemon.selected>)
:when:pink
@text.show(Give this Pink Juice to your <pokemon.displayname(<pokemon.selected>)>?)
@Options.show(Yes,No)
:when:No
@text.show(Come again soon!)
:endscript
:endwhen
@pokemon.addfriendship(<pokemon.selected>,4)
@pokemon.addev(<pokemon.selected>,speed,<storage.get(integer,value)>)
@pokemon.calcstats(<pokemon.selected>)
:when:shake
@text.show(Give this Colorful Shake to your <pokemon.displayname(<pokemon.selected>)>?)
@Options.show(Yes,No)
:when:No
@text.show(Come again soon!)
:endscript
:endwhen
@pokemon.addfriendship(<pokemon.selected>,<storage.get(integer,value)>)
:when:soda
:select:<storage.get(integer,value)>
:when:1;2;3
@text.show(Give this Rare Soda <storage.get(integer,value)> to your <pokemon.displayname(<pokemon.selected>)>?)
:when:4;5
@text.show(Give this Ultra Rare Soda <storage.get(integer,value)> to your <pokemon.displayname(<pokemon.selected>)>?)
:endwhen
@Options.show(Yes,No)
:when:No
@text.show(Come again soon!)
:endscript
:endwhen
@pokemon.addlevel(<pokemon.selected>,<storage.get(integer,value)>)
:when:soup
@text.show(Give this Perilous Soup to your <pokemon.displayname(<pokemon.selected>)>?)
@Options.show(Yes,No)
:when:No
@text.show(Come again soon!)
:endscript
:endwhen
@pokemon.setallevs(<pokemon.selected>,0,0,0,0,0,0)
:endwhen

View File

@ -29309,6 +29309,18 @@
<Content Include="Content\Data\Scripts\frontier\battlefactory\endless\start break.dat">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Content\Data\Scripts\frontier\shops\juice\calc.dat">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Content\Data\Scripts\frontier\shops\juice\custom.dat">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Content\Data\Scripts\frontier\shops\juice\daily.dat">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Content\Data\Scripts\frontier\shops\juice\give.dat">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="Content\Data\Scripts\kin\berryforestitems\2051.dat">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>