Jump to content
  • 0

Elemental Weakness


AriWerd

Question

Is there a way to have certain attacks deal less/more damage to certain characters? For example, I'd love to have Sub-Zero take more damage from fire attacks and half damage from ice attacks. 

 

Thanks, 

 

-AW

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

I hope it's not inappropriate to bump a thread. If anyone's got any ideas on how to make characters take more (or less) damage from specific attacks, I'd really appreciate it. 

 

Thanks again, 

 

-AW

Link to comment
Share on other sites

  • 0

it is impossible to do this outside of a FULL GAME.

 

the reasoning behind this is because all characters would need to specify what kind of attack they are doing, and there are no standards for such a thing so no one does it.

so you would personally have to edit all of your characters if you choose to add this feature.

 

for it to be done, you need to have a variable set to a value to tell it what it is for instance.

 

Var(10) = 5

 

; 1 = normal

; 2 = electric

; 3 = grass

; 4 = water

; 5 = poison

 

im setting var 10 to 5, meaning he would be poison.

 

then i would have to code all of the hitdef's damage values to be like this

 

damage = ifelse(var(10)=5,20,10)

 

this way i do 20 damage if the opponent is poison type, or 10 if not poison type.

Link to comment
Share on other sites

  • 0

Awesome. I've got a few questions. 

 

1) The variable assigning the character's elemental type: This goes in each character's Statedef -3, correct?

 

2) The damage line: Using the number after the comma for the regular damage, does that mean I cannot assign damage dealt while blocking? 

     a) Can I have more than one damage line per Hitdef?

 

Thanks for the help, 

 

-AW

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
×
×
  • Create New...