Jump to content

Question

Posted

Hello, Guys i would like to have a script

If the players is equiped with all +20 equipes the cards effect which ever he uses doubled(ex :turtle general is 20% it becomes 40%)

 

thank you..

5 answers to this question

Recommended Posts

  • 0
Posted
.......,{ bonus bStr, ((getrefine() >= 20) ? 40 : 20 ); }, { }, { }

change all ur your effect into something like this...

((getrefine() >= 20) ? 40 : 20 )

 

  • Upvote 1
  • 0
Posted

Just wondering, you want "when EVERY equipment are +20 => card doubled" or, for each equipment wore, if the equipment is +20, the card effect is doubled ?
In case of each equipment individually, you can use the Emistry solution.
In each card, you change the script (=> you change in item_db the script), if the script is, for example the Hydra card :

bonus2 bAddRace,RC_DemiHuman,20; bonus2 bAddRace,RC_Player,20;

You change it to :
 

bonus2 bAddRace,RC_DemiHuman,((getrefine() >= 20) ? 40 :20 ); bonus2 bAddRace,RC_Player,((getrefine() >= 20) ? 40 : 20 );

And, voila, when the equipment is +20, the hdyra card will do +40 instead of +20.

  • 0
Posted

thank you

but i only want it to double when all the equipe is + 20 ,not just when the weapon is + 20

the above script which you gave doubles it when my weapon is +20:

bonus2 bAddRace,RC_DemiHuman,((getrefine() >= 20) ? 40 :20 ); bonus2 bAddRace,RC_Player,((getrefine() >= 20) ? 40 : 20 );

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...