Jump to content
  • 0

+20 boost


NakedWolf

Question


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   2
  • Joined:  03/21/17
  • Last Seen:  

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

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  862
  • Reputation:   115
  • Joined:  05/23/12
  • Last Seen:  

Wrong section: Its need to be added source side or database side on each item.

Rynbef~

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:  

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

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

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

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   2
  • Joined:  03/21/17
  • Last Seen:  

@Emistry can you please tell me where exactly should i add this script ? Am kinda still learning...

Thank you

Edited by NakedWolf
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  215
  • Reputation:   45
  • Joined:  05/03/13
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   2
  • Joined:  03/21/17
  • Last Seen:  

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 );
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...