pleins de trucs
This commit is contained in:
24
scripts/battle/cutscenes/dummy.lua
Normal file
24
scripts/battle/cutscenes/dummy.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
return {
|
||||
-- The inclusion of the below line tells the language server that the first parameter of the cutscene is `BattleCutscene`.
|
||||
-- This allows it to fetch us useful documentation that shows all of the available cutscene functions while writing our cutscenes!
|
||||
|
||||
---@param cutscene BattleCutscene
|
||||
susie_punch = function(cutscene, battler, enemy)
|
||||
-- Open textbox and wait for completion
|
||||
cutscene:text("* Susie threw a punch at\nthe dummy.")
|
||||
|
||||
-- Hurt the target enemy for 1 damage
|
||||
Assets.playSound("damage")
|
||||
enemy:hurt(1, battler)
|
||||
-- Wait 1 second
|
||||
cutscene:wait(1)
|
||||
|
||||
-- Susie text
|
||||
cutscene:text("* You,[wait:5] uh,[wait:5] look like a weenie.[wait:5]\n* I don't like beating up\npeople like that.", "nervous_side", "susie")
|
||||
|
||||
if cutscene:getCharacter("ralsei") then
|
||||
-- Ralsei text, if he's in the party
|
||||
cutscene:text("* Aww,[wait:5] Susie!", "blush_pleased", "ralsei")
|
||||
end
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user