Skip to content

Commit

Permalink
One step before release. (v0399)
Browse files Browse the repository at this point in the history
+ Added more log messages which depend on bonuses.
+ Log messages will now show the enemy's letter name.
+ Lowered some crafting requirements
  • Loading branch information
136MasterNR committed Aug 20, 2023
1 parent bbc418d commit 16dd5d8
Showing 12 changed files with 66 additions and 21 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion BattlesOfBatch.bat
Original file line number Diff line number Diff line change
@@ -1966,7 +1966,7 @@ IF %PLAYER.HP.NOW% LEQ 0 (
:TURN
CALL "%SCRIPTS_GAME%\turn.cmd" ACT

IF %AV.PLAYER%==0 (ECHO.[46;3HYour AV: %AV.PLAYER% ^(Your Turn^) ) ELSE ECHO.[46;3HYour AV: %AV.PLAYER%
IF %AV.PLAYER%==0 (ECHO.[46;3H[1mYour AV: %RGB.PURPLE%%AV.PLAYER%[0m ^(Your Turn^) ) ELSE ECHO.[46;3H[1mYour AV: %RGB.PURPLE%%AV.PLAYER%[0m

IF NOT %CURR_TURN%==AV.PLAYER (
CALL "%ACT.ENEMY%" %CURR_TURN%
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -124,7 +124,7 @@ Weapon Items [Released]
Comrade Hammer (Kusarigama) {Base Damage: 45} [Bonus Effects: 50% Chance to deal a total amount of 350% damage)
Stylefi (Long Bow) {Base Damage: 60} [Bonus Effects: Extra 10% Crit Rate]
Flora Thrower (Magic Wand) {Base Damage: 75} [Bonus Effects: 10% Chance to Poison a single enemy, lasts for a total of 2 rounds]
Trident of Gawra (Trident) {Base Damage: 80} [Bonus Effects: 30% Chance to stun the targeted enemy, skipping their next round]
Trident of Gawra (Trident) {Base Damage: 80} [Bonus Effects: 40% Chance to stun the targeted enemy, skipping their next round]
Infernal Blade (Greatsword) (Base Damage: 85) [Bonus Effects: 80% Chance to set on fire the targeted enemy, dealing 20% of your base damage on every round]
Ornate Cobalt (Shield) {Main Damage: 200} [Bonus Effects: Shares an extra amount of 20% of your base damage to all enemies]
Brainleader (Magic Ball) {Base Damage: 250} [Bonus Effects: An extra amount of 9750 damage is dealt to ALL enemies on every single round. Debuff: Loe -99% HP every time you make an action.]
6 changes: 3 additions & 3 deletions data/scripts/game/acts/act.cmd
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ IF "%AUDIO.VALUE%"=="TRUE" IF NOT %SFX.VOLUME% EQU 0 (
SET /A SFX.RANDOM.ATK=%random% %% 5+1
SET "TARGETAEXT=.sfx"
FOR /F "DELIMS=:" %%A IN ('TASKLIST /FI "WINDOWTITLE eq wscript.exe!TARGETAEXT!"') DO IF NOT %%A==INFO TASKKILL /F /FI "WINDOWTITLE eq wscript.exe!TARGETAEXT!" /T>NUL
IF %CRIT.CHANCE% GEQ %CRIT.RATE% (
IF %CRIT.CHANCE% LEQ %CRIT.RATE% (
SET "TARGETAUDIO=%SFX.ATK.CRIT%!SFX.RANDOM.CRIT!.mp3"
(
ECHO Set Sound = CreateObject^("WMPlayer.OCX.7"^)
@@ -62,7 +62,7 @@ IF "%AUDIO.VALUE%"=="TRUE" IF NOT %SFX.VOLUME% EQU 0 (
ENDLOCAL
)

IF %CRIT.CHANCE% GEQ %CRIT.RATE% (
IF %CRIT.CHANCE% LEQ %CRIT.RATE% (
SET /A ATK.CRIT=PLAYER.ATTACK.AMOUNT*3
SET /A ATK.CRIT=ATK.CRIT/4
SET /A PLAYER.ATTACK.AMOUNT+=ATK.CRIT
@@ -82,7 +82,7 @@ SETLOCAL ENABLEDELAYEDEXPANSION
SET TMP.ENEMY=!ENEMY.TYPE.%INPUTATK%!
SET TMP.WEAPON=!WEAPONS.REG_NAME.%WIELDING.WEAPON%!
IF NOT DEFINED TMP.WEAPON SET TMP.WEAPON=Fists
IF %CRIT.CHANCE% GEQ %CRIT.RATE% SET TMP.CRIT_MSG=^(+CRIT!^)
IF %CRIT.CHANCE% LEQ %CRIT.RATE% SET TMP.CRIT_MSG=^(+CRIT!^)
ENDLOCAL&CALL "%SCRIPTS_GAME%\logger.cmd" ADD You striked %TMP.ENEMY% ^(#%INPUTATK%^) using %RGB.YELLOW%%TMP.WEAPON:_= %! %RGB.ORANGE%%TMP.CRIT_MSG%
EXIT /B 0

6 changes: 5 additions & 1 deletion data/scripts/game/acts/bonus.cmd
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@ EXIT /B 0
SET /A "TMP.CHANCE=%random% %% 100"
IF %TMP.CHANCE% LEQ 50 (
SET /A "EFFECT.BONUS_ATK=(EQUIP.BONUS_ATK *350)/100"
CALL "%SCRIPTS_GAME%\logger.cmd" ADD The comrades salute, blessing you with %RGB.ORANGE%%%EFFECT.BONUS_ATK%% extra damage!%RGB.YELLOW%
)
EXIT /B 0
:Stylefi
@@ -36,7 +37,10 @@ CALL "%SCRIPTS_GAME%\acts\effect.cmd" POISON-CREATE %INPUTATK% 4 26
EXIT /B 0

:Trident_of_Gawra
CALL "%SCRIPTS_GAME%\acts\effect.cmd" SLOWDOWN %INPUTATK% 100
SET /A "TMP.CHANCE=%random% %% 100"
IF %TMP.CHANCE% LEQ 40 (
CALL "%SCRIPTS_GAME%\acts\effect.cmd" SLOWDOWN %INPUTATK% 100
)
EXIT /B 0

:Infernal_Blade
35 changes: 29 additions & 6 deletions data/scripts/game/acts/effect.cmd
Original file line number Diff line number Diff line change
@@ -5,17 +5,25 @@ EXIT /B 0
:SLOWDOWN <"Enemy": Integer> <"Amount": Integer>
SET /A AV.%1+=%2
:: Log the action
CALL "%SCRIPTS_GAME%\logger.cmd" ADD Enemy #%INPUTATK% has been %RGB.PURPLE%slowed down by %RGB.RED%%2 points!
SETLOCAL ENABLEDELAYEDEXPANSION
SET TMP.ENEMY=!ENEMY.TYPE.%INPUTATK%!
ENDLOCAL&SET TMP.ENEMY=%TMP.ENEMY%
IF %2 LSS 100 (
CALL "%SCRIPTS_GAME%\logger.cmd" ADD Enemy #%TMP.ENEMY% ^(#%INPUTATK%^) has been %RGB.PURPLE%slowed down by %RGB.RED%%2 points!
) ELSE CALL "%SCRIPTS_GAME%\logger.cmd" ADD Enemy %TMP.ENEMY% ^(#%INPUTATK%^) has been %RGB.PURPLE%stunned!%RGB.YELLOW%
EXIT /B 0

:POISON-CREATE <"Enemy/Player": Integer/String> <"Turns": Integer> <"Power": Integer>
SET EFF.POISON.%1=%2
SET EFF.POISON.%1.POWER=%3
:: Log the action
SETLOCAL ENABLEDELAYEDEXPANSION
SET TMP.ENEMY=!ENEMY.TYPE.%INPUTATK%!
ENDLOCAL&SET TMP.ENEMY=%TMP.ENEMY%
IF NOT %1==PLAYER (
CALL "%SCRIPTS_GAME%\logger.cmd" ADD You applied %RGB.LIME%poison[0m[1m to [4m#%1[24m!%RGB.YELLOW%[0m
CALL "%SCRIPTS_GAME%\logger.cmd" ADD You applied %RGB.LIME%poison[0m[1m to [4m%TMP.ENEMY%[24m ^(#%1^)!%RGB.YELLOW%[0m
) ELSE (
CALL "%SCRIPTS_GAME%\logger.cmd" ADD You have been %RGB.LIME%poisoned[0m[1m![24m[0m%RGB.YELLOW%[0m
CALL "%SCRIPTS_GAME%\logger.cmd" ADD You have been %RGB.LIME%poisoned[0m[1m for %2 rounds![24m[0m%RGB.YELLOW%[0m
)
EXIT /B 0
:POISON-EFFECT
@@ -61,7 +69,10 @@ FOR /F "TOKENS=3,4DELIMS=.=" %%1 IN ('SET EFF.POISON.') DO (
) ELSE ENDLOCAL

:: Log the action
CALL "%SCRIPTS_GAME%\logger.cmd" ADD Enemy #%%1 took %RGB.LIME%%%TMP.DMG%% poison damage!
SETLOCAL ENABLEDELAYEDEXPANSION
SET TMP.ENEMY=!ENEMY.TYPE.%%1!
ENDLOCAL&CALL SET TMP.ENEMY=%%TMP.ENEMY%%
CALL "%SCRIPTS_GAME%\logger.cmd" ADD Enemy %%TMP.ENEMY%% ^(#%%1^) took %RGB.LIME%%%TMP.DMG%% poison damage!
) ELSE ENDLOCAL
)
)
@@ -70,6 +81,15 @@ EXIT /B 0
:FIRE-CREATE <"Enemy/Player": Integer/String> <"Turns": Integer> <"Power": Integer>
SET EFF.FIRE.%1=%2
SET EFF.FIRE.%1.POWER=%3
:: Log the action
SETLOCAL ENABLEDELAYEDEXPANSION
SET TMP.ENEMY=!ENEMY.TYPE.%INPUTATK%!
ENDLOCAL&SET TMP.ENEMY=%TMP.ENEMY%
IF NOT %1==PLAYER (
CALL "%SCRIPTS_GAME%\logger.cmd" ADD You applied %RGB.ORANGE%fire to %TMP.ENEMY% ^(#%1^)!%RGB.YELLOW%
) ELSE (
CALL "%SCRIPTS_GAME%\logger.cmd" ADD You are %RGB.ORANGE%on fire for %2 turns!%RGB.YELLOW%
)
EXIT /B 0
:FIRE-EFFECT
FOR /F "TOKENS=3,4DELIMS=.=" %%1 IN ('SET EFF.FIRE.') DO (
@@ -96,7 +116,7 @@ FOR /F "TOKENS=3,4DELIMS=.=" %%1 IN ('SET EFF.FIRE.') DO (
SET /A "TMP.DMG=(((50 * SKILL.ATK) + EQUIP.BONUS_ATK + EFFECT.BONUS_ATK) *EFF.FIRE.%%1.POWER) / 100"
SET /A EFF.FIRE.%%1-=1
SET /A ENEMY.HP.NOW.%%1-=%TMP.DMG%

:: Make sure that the enemy doesn't have less than 0 HP.
SETLOCAL ENABLEDELAYEDEXPANSION
TITLE !EFF.FIRE.%%1!
@@ -113,7 +133,10 @@ FOR /F "TOKENS=3,4DELIMS=.=" %%1 IN ('SET EFF.FIRE.') DO (
) ELSE ENDLOCAL

:: Log the action
CALL "%SCRIPTS_GAME%\logger.cmd" ADD Enemy #%%1 took %RGB.ORANGE%%%TMP.DMG%% fire damage!%RGB.YELLOW%
SETLOCAL ENABLEDELAYEDEXPANSION
SET TMP.ENEMY=!ENEMY.TYPE.%%1!
ENDLOCAL&CALL SET TMP.ENEMY=%%TMP.ENEMY%%
CALL "%SCRIPTS_GAME%\logger.cmd" ADD Enemy %%TMP.ENEMY%% ^(#%%1^) took %RGB.ORANGE%%%TMP.DMG%% fire damage!%RGB.YELLOW%
) ELSE ENDLOCAL
)
)
4 changes: 3 additions & 1 deletion data/scripts/game/acts/enemy_act.cmd
Original file line number Diff line number Diff line change
@@ -44,7 +44,9 @@ FOR /F "TOKENS=2DELIMS==" %%A IN ('SET ENEMY.ATTACK.AMOUNT.') DO (
SET /A "PLAYER.HP.NOW=PLAYER.HP.NOW -ENEMY.ATTACK.AMOUNT"
IF %PLAYER.HP.NOW% LSS 0 (SET "PLAYER.HP.NOW=0")

CALL "%SCRIPTS_GAME%\logger.cmd" ADD Enemy #%TMP.EN% dealt %RGB.RED%%ENEMY.ATTACK.AMOUNT% damage to you!%RGB.YELLOW%
SETLOCAL ENABLEDELAYEDEXPANSION
SET TMP.ENEMY=!ENEMY.TYPE.%TMP.EN%!
ENDLOCAL&CALL "%SCRIPTS_GAME%\logger.cmd" ADD Enemy %TMP.ENEMY% ^(#%TMP.EN%^) dealt %RGB.RED%%ENEMY.ATTACK.AMOUNT% damage to you!%RGB.YELLOW%
EXIT /B 0


10 changes: 10 additions & 0 deletions data/scripts/game/acts/enemy_bonus.cmd
Original file line number Diff line number Diff line change
@@ -13,4 +13,14 @@ FOR /F "TOKENS=1,2DELIMS=," %%A IN ("!ENEMY.ATK.AMOUNT.%1!") DO (
SET /A "TMP.DMG=%random% %% %%A %%B"
)
CALL "%SCRIPTS_GAME%\acts\effect.cmd" POISON-CREATE PLAYER 4 %TMP.DMG%
EXIT /B 0

:Goblin
:: Extract the ATK values from the enemy
SETLOCAL ENABLEDELAYEDEXPANSION
FOR /F "TOKENS=1,2DELIMS=," %%A IN ("!ENEMY.ATK.AMOUNT.%1!") DO (
ENDLOCAL
SET /A "TMP.DMG=%random% %% %%A %%B"
)
CALL "%SCRIPTS_GAME%\acts\effect.cmd" FIRE-CREATE PLAYER 6 %TMP.DMG%
EXIT /B 0
8 changes: 7 additions & 1 deletion data/scripts/game/fade.cmd
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ FOR /L %%I IN (1,1,!EN.MAX!) DO (
:: Log the death of the enemy
IF NOT "!FRAME.FADE.%%I!."=="==========." (
ENDLOCAL
CALL "%SCRIPTS_GAME%\logger.cmd" ADD Enemy [4m#%%I[24m has %RGB.RED%died[0m[1m!%RGB.YELLOW%[0m
CALL :LOGIT %%I
) ELSE ENDLOCAL
CALL :CREATE_FRAMES %%I
SETLOCAL ENABLEDELAYEDEXPANSION
@@ -32,4 +32,10 @@ EXIT /B 0
SET ARG=%2
SET FRAME.FADE.%1=%ARG:-==%
SET FADE=%2
EXIT /B 0

:LOGIT
SETLOCAL ENABLEDELAYEDEXPANSION
SET TMP.ENEMY=!ENEMY.TYPE.%1!
ENDLOCAL&CALL "%SCRIPTS_GAME%\logger.cmd" ADD Enemy %TMP.ENEMY% ^(#%1^) has %RGB.RED%died!%RGB.YELLOW%
EXIT /B 0
2 changes: 1 addition & 1 deletion data/scripts/game/logger.cmd
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ FOR /L %%I IN (1,1,%CHARCNT%) DO (
ECHO..
FOR /F "TOKENS=2DELIMS==" %%1 IN ('SET LOG.') DO (
:: Clear the old text
ECHO.[3C [1A
ECHO.[3C [1A
:: Print the new text
ECHO.%%1
)
8 changes: 4 additions & 4 deletions data/scripts/list/items.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Branch$Stick$1
Dustblade$Short_Blade$7$No_bonus_effects$_$_$Unknown$_$_$_$Stained_Dust?8?none?0?none?0
Cold_Twill$Short_Bow$20$Slows_down_the_enemy_by_25_action_points$_$_$Unknown$_$_$_$Black_Wood?14?Stained_Dust?10?none?0
Comrade_Hammer$Large_Hammer$45$50%%%%_Chance_to_deal_a_total_amount_of$350%%%%_damage_of_its_own_base_damage$_$Unknown$_$_$_$Black_Wood?30?Francium?6?none?0
Dustblade$Short_Blade$7$No_bonus_effects$_$_$Unknown$_$_$_$Stained_Dust?7?none?0?none?0
Cold_Twill$Short_Bow$20$Slows_down_the_enemy_by_25_action_points$_$_$Unknown$_$_$_$Black_Wood?12?Stained_Dust?10?none?0
Comrade_Hammer$Large_Hammer$45$50%%%%_Chance_to_deal_a_total_amount_of$350%%%%_damage_of_its_own_base_damage$_$Unknown$_$_$_$Black_Wood?28?Francium?6?none?0
Stylefi$Long_Bow$60$Extra_10%%%%_Crit_Rate$_$_$Unknown$_$_$_$Black_Wood?45?Light_Resin?5?none?0
Flora_Thrower$Magic_Wand$75$60%%%%_Chance_to_Poison_a_single_enemy$dealing_26%%%%_of_your_base_damage_on$for_4_rounds$Unknown$_$_$_$Exalted_Nickel?30?Prism_Dust?20?Stained_Dust?60
Trident_of_Gawra$Trident$80$25%%%%_Chance_to_stun_a_single_enemy$skipping_their_next_round$_$Unknown$_$_$_$Stained_Dust?86?Prism_Dust?45?Double_Marble?30
Trident_of_Gawra$Trident$80$40%%%%_Chance_to_stun_a_single_enemy$skipping_their_next_round$_$Unknown$_$_$_$Stained_Dust?86?Prism_Dust?45?Double_Marble?30
Infernal_Blade$Greatsword$85$80%%%%_Chance_to_set_on_fire_an_enemy$dealing_20%%%%_of_your_base_damage_on$for_7_turns$Unknown$_$_$_$Reactive_Powder?100?Double_Marble?50?Exalted_Nickel?45
Ornate_Cobalt$Shield$200$Shares_an_extra_amount_of_20%%%%_of_your$dealt_damage_to_all_enemies$_$Unknown$_$_$_$Double_Marble?90?Francium?60?Palladium?20
Brainleader$Magic_Ball$250$An_extra_amount_of_9750_damage_is_dealt$to_ALL_enemies_on_every_player_turn$Debuff:_Lose_99%%%%_HP_every_time_you_act$Unknown$_$_$_$Prism_Dust?1250?Palladium?650?Eternal_Ethereal?4
4 changes: 2 additions & 2 deletions data/scripts/versions.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SET VERCODE=0393
SET VERS=v0.3.93
SET VERCODE=0399
SET VERS=v0.3.99
SET VERTYPE=INDEV
SET VERCODE.AUDIO_MANAGER=0960
EXIT /B 0

0 comments on commit 16dd5d8

Please sign in to comment.