SphereServer BugTracker - SphereServer
View Issue Details
0001758SphereServerexecutable - genericpublic26-05-10 17:2829-05-10 20:08
alfa2k10 
 
normalminoralways
closedno change required 
0.56c Nightly 
 
Not Available
None
None
0001758: SkillCheck
SkillCheck is not cheking, returns 0 if the character has the specified amount of skill.
No tags attached.
Issue History
26-05-10 17:28alfa2k10New Issue
26-05-10 17:28alfa2k10Nightly Version => Not Available
26-05-10 17:28alfa2k10Experimental Flags => None
26-05-10 17:28alfa2k10Option Flags => None
27-05-10 20:18IncanusNote Added: 0000478
29-05-10 20:08MrSugarCubeStatusnew => closed
29-05-10 20:08MrSugarCubeNote Added: 0000480
29-05-10 20:08MrSugarCubeResolutionopen => no change required

Notes
(0000478)
Incanus   
27-05-10 20:18   
Skillcheck works for me. Be aware that the skill_amount value has to be a whole number (1 to 100).

For example a check for 90.0 Blacksmithing:

IF <SKILLCHECK Blacksmithing 90>
  SAY Success
ELSE
  SAY Fail
ENDIF
(0000480)
MrSugarCube   
29-05-10 20:08   
The function appears to be working fine, but it was the description in the wiki that was incorrect.

The SKILLCHECK function does not check if a character has X amount of skill (this is what SKILLTEST does), but actually performs a check for skill success (similar to SKILLUSEQUICK, but without performing any actions).

Incanus' example above is correct, but even with 90.0% blacksmithing the function can still return 0.