Is it possible for float getrandompercent to return 0?

Post » Sun Mar 10, 2013 9:56 pm

Is it possible for float getrandompercent to return 0? I suspect it that the reason a group of 4 wolves aren't doing their script stuff often is because they're not getting the token often enough.

	If ( GetIsID CreatureWolf == 1 ) || ( GetIsID MS47Wolf == 1 ) || ( GetIsID CreatureWolfTimber == 1 ) || ( GetIsID ICArenaWolfTimber == 1 ) || ( GetIsID MS47WolfTimber == 1 ) || ( GetIsID TestCreaturesWolfTImber == 1 )		If ( GetDisabled == 0  ) && ( GetDead == 0 )			Set IPWolfTokenChanceVarA to 0.12 * GetRandomPercent			If ( IPWolfTokenChanceVarA > 0 ) && ( IPWolfTokenChanceVarA <= 10.8 ) && ( GetItemCount IPWolfTokenA < 1 )				AddItem IPWolfTokenA 1			Else				;Do Nothing			EndIf		EndIf	EndIf
User avatar
Suzie Dalziel
 
Posts: 3443
Joined: Thu Jun 15, 2006 8:19 pm

Return to IV - Oblivion