SphereCommunity
help me to remember - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: help me to remember (/Thread-help-me-to-remember)

Pages: 1 2 3


RE: help me to remember - mrkarlo - 07-16-2014 07:31 PM

thanks! I dont want to bother you anymore, but:
Code:
IF (<LOCAL.SKILL> > 750)                                                     
    LOCAL.RAND = <EVAL Rand(<EVAL Rand(100, 150)>, 400)>
    IF (<EVAL <EVAL <LOCAL.SKILL> / 10> + 50> > <EVAL <LOCAL.RAND>>)

then, boys will chop wit 75 lumber ye?


RE: help me to remember - mrkarlo - 07-20-2014 09:24 PM

I dont understand, why we need in these code
Code:
IF (<EVAL <EVAL <LOCAL.SKILL> / 10> + 50> > <EVAL <LOCAL.RAND>>)
if we have
Code:
IF (<LOCAL.SKILL> > 750)



RE: help me to remember - XuN - 07-21-2014 03:52 AM

Because the first line makes sure only people with more than 75.0 skill can do it, the second one is a chance check, if skill/10 +50 is greater than the local.rand value ... then there's a success in the check.


RE: help me to remember - mrkarlo - 07-21-2014 04:59 AM

oouh yee, thanks overlord! thats what I need to know!