Jump to content
  • 0

Check if the item with a card is also enchanted


nekojosh

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   2
  • Joined:  04/11/20
  • Last Seen:  

I'm trying to script this card: https://www.divine-pride.net/database/item/27131

In english is basically says:

Increase [Arrow Storm] damage by 5%.
Additional [Arrow Storm] damage by 1% per refine rate.
If refine rate is 10 or higher, additional [Arrow Storm] damage by 5%.
If enchanted with [Arcana], Dex + 3, ASPD + 1 and additional [Arrow Storm] damage by 50%

 

The last line is the one I'm having issues coding since this card can be compounded into any equip. How can I check if the same equip that has this card also has the enchantment Arcana?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   167
  • Joined:  04/05/13
  • Last Seen:  

\doc\script_commands.txt line 3011

getequipcardid (Loop every equipments)

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

if (isequipped(4001)) { ... }

as long as you equipped the item, it would work.

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
Answer this question...

×   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...