AW AVATAR TYPE

From ActiveWiki
Jump to: navigation, search


Minimum requirements
Added in version 2.1
SDKbuild 13


AW_AVATAR_TYPE

Type

Integer

Description

Avatar selection employed by a user.

Notes

This is the value set for AW_MY_TYPE when the user called aw_state_change. It is a zero-based index into the avatars.dat file of an object path. Negative values will be reset to 0 (zero) in a browser.

For SDK build 27, world build 44, browser build 430; and later: It is also used by aw_avatar_set to force users into changing their avatar type.

Range

Version 3.6 and earlier:

Minimum:0
Maximum:255

Version 4.1 and later:

Minimum:0 (in theory: -2147483648)
Maximum:65535 (in theory: 2147483647)
0 and 1
Tourist avatars; tourists may only use these.
0 to 250
'Normal' avatars; available to all citizens.
251 to 255
'Special' avatars; available only to public speakers.
256 to 511 (1)
Extended avatars that may be 'special' or 'normal' avatars.
65533 (2)
Custom world avatar (AW_CUSTOM_WORLD_AVATAR in Aw.h).
65534 (2)
Custom universe avatar (AW_CUSTOM_AVATAR in Aw.h).
65535 (1)
Personal avatar (AW_PERSONAL_AVATAR in Aw.h).

(1) Added in version 4.1.

(2) Added in version 4.2.

Usage

void handle_avatar_add (void)
{
  printf ("%s is using avatar number %d\n",
          aw_string (AW_AVATAR_NAME),
          aw_int (AW_AVATAR_TYPE));
}

aw_event_set (AW_EVENT_AVATAR_ADD, handle_avatar_add);

Used by

See also