Jump to content

Multiple speech file and No Health Penalty


Recommended Posts

Hello i'm creating a character and he has two transformation.

So i want to have a different speech file for each transformation.

Mr first question is should i just change the value of STRINGS.CHARACTERS.ESCANOR in my prefabs script like this ?

STRINGS.CHARACTERS.ESCANOR = require "speech_escanor1"

My second question is i wanted to not have health penalty so i did this :

local Health = require "components/health"


function Health:DeltaPenalty(delta)
    inst.components.talker:Say("no health penalty change !")
end

It seems to work but I don't know if it's clean to rewrite a function like this so i'm waiting for your comment.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...