Jump to content

[Ayuda]item Bonus script


jmaki92

Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/20/14
  • Last Seen:  

Hola, estoy tratando de hacer una custom armor pero creo que lo que busco es mas complejo y no lo he encontrado por ninguna parte. 

Me gustaria que la custom armor que quiero hacer de unas bonificaciones dependiendo de tus stats en un mismo objeto. 

Por ejemplo que si tu Str es mayor que la Int la bonificacion sea por ejemplo Atk +10%, + Hit 30

Si tu Int es mayor que la Str la bonificacion sea entonces 

Matk +10% reducion de la delay -3

si tu str e int son iguales entonces daria

Atk + 5%, matk + 5% reducion de delay -5%

Se que los stats estan algo desproporcionados porque es solo un ejemplo, 

Llevo parte de ayer, hoy toda la tarde y por la mañana intentando encontrar algo y al final he decidido preguntar para poder avanzar. 

Edited by jmaki92
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   3
  • Joined:  01/22/12
  • Last Seen:  

Acho que isso vai funcionar

{if (readparam(bStr) > (readparam(bInt))){bonus bAtkRate,10; bonus bHit,30;} if (readparam(bStr) < (readparam(bInt))){bonus bMatkRate,10; bonus bDelayrate,-3;} if (readparam(bStr) == (readparam(bInt))){bonus bAtkRate,5;bonus bMatkRate,5; bonus bDelayrate,-5;}},{},{}

 

Edited by Mael
Use codebox
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/20/14
  • Last Seen:  

Muchas gracias, parece funcionar perfectamente

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/20/14
  • Last Seen:  

Solucionado

Edited by jmaki92
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...