Dooge Posted August 17, 2016 Posted August 17, 2016 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
Dooge Posted August 17, 2016 Author Posted August 17, 2016 OK this compiles ; Possibly wear item on last index if (WearLatestAddition == true) ToWearIndex = GarderobeAll ToWearIndex -= 1 endif
Recommended Posts
Archived
This topic is now archived and is closed to further replies.