def createBall(idxBall,delay,dir)
# Choose ball's graphic
idxParty = getPartyIndexFromBallIndex(idxBall)
graphicFilename = "Graphics/Pictures/Battle/icon_ball_empty"
if idxParty>=0 && idxParty<@party.length && @party[idxParty]
if !@party[idxParty].able?
graphicFilename = "Graphics/Pictures/Battle/icon_ball_faint"
elsif @party[idxParty].status!=PBStatuses::NONE
graphicFilename = "Graphics/Pictures/Battle/icon_ball_status"
else
graphicFilename = "Graphics/Pictures/Battle/icon_ball"
end
end
# Set up ball sprite
ball = addSprite(@sprites["partyBall_#{@side}_#{idxBall}"])
ball.setVisible(delay,true)
ball.setName(delay,graphicFilename)
ball.setDelta(delay,dir*Graphics.width/2,0)
ball.moveDelta(delay,8,-dir*Graphics.width/2,0)
def pbSEPlay(Mining reveal.ogg,volume=100,pitch=100) <------------------------------ Here is the sound effect
end
end
Sorry for super lateness, I kinda gave up for a bit since no one responded lol. It says syntax error when I boot up the game, why? I'll experiment, may end up solving it on my own. I'm using a mining sound effect for the dings btw
Also, do you know where the line code is? I'd like to put a sound for that too