if( checkArgInt( 1 ) ) speed = getArgInt( 1 );  if( checkArgInt( 2 ) ) duration = getArgInt( 2 );  if( checkArgInt( 3 ) ) hue = getArgInt( 3 );  if( checkArgInt( 4 ) ) renderMode = getArgInt( 4 );
static PyObject* wpChar_effect( wpChar* self, PyObject* args ){	if( !self->pChar || self->pChar->free )		return PyFalse;	if( !checkArgInt( 0 ) )	{		PyErr_BadArgument();		return NULL;	}		UINT16 id = getArgInt( 0 );	// Optional Arguments	UINT8 speed = 5;	UINT8 duration = 10;	UINT16 hue = 0;	UINT16 renderMode = 0;		if( checkArgInt( 1 ) )		speed = getArgInt( 1 );	if( checkArgInt( 2 ) )		duration = getArgInt( 2 );	if( checkArgInt( 3 ) )		hue = getArgInt( 3 );	if( checkArgInt( 4 ) )		renderMode = getArgInt( 4 );	self->pChar->effect( id, speed, duration, hue, renderMode );	return PyTrue;}