Jump to content
Sign in to follow this  
JadeKrieger

Skill damage depending on the weapon currently equipped

Recommended Posts

Hello guys,

im totally new just signed up today :cheers:  and i have a little problem and it will surly be not my lost one :(  <_< .

I tried the search function but since my english is not that good im not sure if i missed a topic already discussing it so please bear with me and sorry for any inconviniences. :unsure:

 

Here the scenario ingame.

The actor picks up a book from which he learns a skill called doublestrike. In battle he can switch his weapons. this is working fine so far.

However if the actor is in battle and has a flashlight and uses the skill he does twice the dmg since they are based on the same skill. (still working fine ^^) When he now switches to the katana he still does only twice the dmg of the flashlight. Here is the troublesome problem :angry: 

 

What i wanted to know is if there is a way (preferably without scripts) where my actor can learn a skill through a book which damage depends on the weapon the actor is currently carrying.

 

Example (the actor has already learned the skill):

when he has the flashlight equipped (base damage 10) and uses the skill he does 20 damage

when he has the katana equipped (base damage 30) he does 60 damage with the same skill

 

thank you everyone for sharing your interest and helping me :thumbup3:

Share this post


Link to post
Share on other sites

My go-to for this sort of thing is usually to create an element rate and to use that in the damage formula.

 

a.element_rate(10) * (a.atk * 4 - b.def * 2)

 

Then set it up so that the flashlight multiplies that element rate by 200%.

  • Like 1

Share this post


Link to post
Share on other sites

Hooray! Closing a solved topic :)

  • Like 1

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted