Jump to content

'no viable alternative'


Dooge

Recommended Posts

Posted

Error: Skyrim modding\Tools\ModOrganizer\mods\Slut\Scripts\Source\MasterScript.psc(208,17): no viable alternative at input 'GarderobeAll'

function ChangeClothes(bool WearLatestAddition = false)
	int code = SexLab.ValidateActor(MasterRef.GetActorReference())
	if code != 1
		MainScript.D("Not a good time for changing clothes: " +code)
		return
	endif

	; Pick one random item to wear
	int GarderobeAll = StorageUtil.IntListCount(none, "adcGarmentListAllowed")		; Count all garments 
	int GarderobeCount = StorageUtil.IntListCountValue(none, "adcGarmentListAllowed", 1)	; Count allowed garments 
	int ToWearIndex = -1

...

and

		if (WearLatestAddition == true)
			ToWearIndex = GarderobeAll-1
		endif

What am I missing? Why the error? It is just int var = another int var minus 1

Posted

OK this compiles

		; Possibly wear item on last index
		if (WearLatestAddition == true)
			ToWearIndex = GarderobeAll
			ToWearIndex -= 1
		endif

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...