SphereServer BugTracker - SphereServer
View Issue Details
0001672SphereServerexecutable - genericpublic14-11-09 19:2913-12-09 00:13
Fire-Dragon-DoL 
MrSugarCube 
normalmajoralways
resolvedfixed 
Microsoft Windows XPSP 3
20-09-2009, 0.56b Prerelease 
0.56c Nightly 
20-09-2009
None
None
0001672: <trigger @bla> function returning 2 if "return 0" is used inside @bla
Ok if I build a custom trigger like

[EVENTS e_dunno]
ON=@Bla
return 0

then somewhere

[FUNCTION ftest]
say <eval <trigger @bla>>

it returns 2 (always), don't ask me why...
Other values (less then 0 or greater then 0) are correct

I can't return string, but I don't know if this thing probably is wanted (could be correct because all triggers can't return strings); so this is not a big problem

No tags attached.
Issue History
14-11-09 19:29Fire-Dragon-DoLNew Issue
14-11-09 19:29Fire-Dragon-DoLNightly Version => 20-09-2009
14-11-09 19:29Fire-Dragon-DoLExperimental Flags => None
14-11-09 19:29Fire-Dragon-DoLOption Flags => None
16-11-09 21:37Fire-Dragon-DoLNote Added: 0000313
13-12-09 00:13MrSugarCubeStatusnew => resolved
13-12-09 00:13MrSugarCubeFixed in Version => 0.56c Nightly
13-12-09 00:13MrSugarCubeResolutionopen => fixed
13-12-09 00:13MrSugarCubeAssigned To => MrSugarCube

Notes
(0000313)
Fire-Dragon-DoL   
16-11-09 21:37   
A true example where this become a problem:

I have weapons which deal critical hits with particular effects different for each weapon... the most obvius thing is to script the critical effect under the weapon

However Should be a good idea to return from the trigger (under weapon) @CriticalHit the damage changed (if is changed) to the @Hit trigger, giving new damage

if the damage becomes 0 obviusly it will return 2, which is a problem because is not 0 :P