Jump to content
MakeWebGames

attacking


Recommended Posts

how would i make it to where if i added another userstat i could have one to where the more of this stat you have the longer you are stronger durring the fight say i attack you and yours is higher becides that all our other stats where identical then toward the end of the fight you win because all your stats get lowered by say 25 or 50% because your pretty much tired

Link to comment
Share on other sites

Well if you want it to be simple, use and if statement to check who has the higher endurance, then use it to apply a multiplier to the damage dealt. So find the variable which stores the damage value and multiply it by 0.25 or 0.5 depending on what you prefer

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...