View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001672SphereServerexecutable - genericpublic14-11-09 19:2913-12-09 00:13
ReporterFire-Dragon-DoL 
Assigned ToMrSugarCube 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSMicrosoft Windows XPOS VersionSP 3
Product Version20-09-2009, 0.56b Prerelease 
Target VersionFixed in Version0.56c Nightly 
Summary0001672: <trigger @bla> function returning 2 if "return 0" is used inside @bla
DescriptionOk 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

TagsNo tags attached.
Nightly Version20-09-2009
Experimental FlagsNone
Option FlagsNone
Internal Build Number
Attached Files

- Relationships

-  Notes
(0000313)
Fire-Dragon-DoL (reporter)
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

- Issue History
Date Modified Username Field Change
14-11-09 19:29 Fire-Dragon-DoL New Issue
14-11-09 19:29 Fire-Dragon-DoL Nightly Version => 20-09-2009
14-11-09 19:29 Fire-Dragon-DoL Experimental Flags => None
14-11-09 19:29 Fire-Dragon-DoL Option Flags => None
16-11-09 21:37 Fire-Dragon-DoL Note Added: 0000313
13-12-09 00:13 MrSugarCube Status new => resolved
13-12-09 00:13 MrSugarCube Fixed in Version => 0.56c Nightly
13-12-09 00:13 MrSugarCube Resolution open => fixed
13-12-09 00:13 MrSugarCube Assigned To => MrSugarCube


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker