Forgot? Join

Scripting

LSL Guide

Every script function this grid actually runs, read straight from the region software rather than copied from a wiki — including the wolf* functions that exist only here.

Functions · Constants

wolfGetLastError

Wolf Territories
string wolfGetLastError()

The last error from a wolf* call on this script, or an empty string.

Why the last wolf* call returned 0: the region refused it (the owner does not hold the region or the parcel, a bad key or value, the weather service could not be reached, or the functions are not enabled on this region). Empty after a call that succeeded.

Takes no parameters.

Example

default
{
    touch_start(integer n)
    {
        // A deliberate mistake: 5 is out of range (1 - 4), so this is refused.
        if (!wolfSetRegionWeather([ "kind", "rain", "level", 5 ]))
        {
            llSay(0, "Refused: " + wolfGetLastError());   // "level must be 1..4"
        }
    }
}
Energy 10

Ours alone. Grid features you will not find on any other OpenSimulator grid.

More in Wolf Territories