- Joined
- May 10, 2019
- Messages
- 18
Hi everyone,
I'm returning to the World Editor after a long leave of absence, and I'm having some difficulty orienting to all of the changes/updates. I'm attempting to import this spell into a different map: Organic Bomb v1.0.3 [vJASS][UPDATE]
When I open the original map with the spell and run "Validate test triggers" I receive an error: "Cannot convert returned value from integer to real."
The error is thrown on this function:
However, the original spell map allows me to test and use the spell without any issues.
By contrast, when I then try to import the spell into a different map, I receive the same error message but am unable to even test the map.
Any ideas why?
I'm returning to the World Editor after a long leave of absence, and I'm having some difficulty orienting to all of the changes/updates. I'm attempting to import this spell into a different map: Organic Bomb v1.0.3 [vJASS][UPDATE]
When I open the original map with the spell and run "Validate test triggers" I receive an error: "Cannot convert returned value from integer to real."
The error is thrown on this function:
Code:
function CrazyIvan__Shift takes real r returns real
if ( r < 120 ) then
return 1.25
elseif ( r < 300 ) and ( r > 119 ) then
return 1.5
elseif ( r < 450 ) and ( r > 299 ) then
return 1.75
elseif r > 449 then
return 2
endif
return 1.4
endfunction
However, the original spell map allows me to test and use the spell without any issues.
By contrast, when I then try to import the spell into a different map, I receive the same error message but am unable to even test the map.
Any ideas why?