REZ01 Posted January 11, 2012 Share Posted January 11, 2012 I'm trying to make my already working .. and working well, NPC Script..Generic.. small piece below to show kinda what it does.. NPC .. takes shower in morning .. bathroom random.. goes to work.. goes to 3 diff resturants for break, Lunch and Dinner.. Changes clothes in the morning and at night.. Goes out to a random picked club or bar at night.. I have about 30 of these in one of my cities running.. But my question is to make this completely generic, I need to make the packages Generic.. So is there a way to set a generic packages setting (like radius) (can sleep), sandbox at (current location) or more what i need MostSandbox at Reference (Can i do this in code "Outside" the package)? I know you can set the "Begin OnPackageDone" and so on in code.. are there calls i can make to the packages settings? or Properties? ~ REZ Set FloatCurrentTime to GetCurrentTime :------------Wake UpTake Shower------------- if inparty == 0 && GetIsCurrentPackage refShowerPack == 0 && FloatCurrentTime >= 5 && FloatCurrentTime <= 6 AddScriptPackage refShowerPack endif :-----------Eat Breakfast or Eat Out---------- if inparty == 0 && DoOnceBreakfast == 0 && FloatCurrentTime >= 6 && FloatCurrentTime <= 8 Set DieRollBreakfast to GetRandomPercent if DieRollBreakfast >= 0 && DieRollBreakfast <= 25 AddScriptPackage refRestrantPak1 elseif DieRollBreakfast >= 26 && DieRollBreakfast <= 50 AddScriptPackage refRestrantPak2 elseif DieRollBreakfast >= 51 && DieRollBreakfast <= 75 AddScriptPackage refRestrantPak3 elseif DieRollBreakfast >= 76 && DieRollBreakfast <= 100 AddScriptPackage refStayHome endif Set DoOnceBreakfast to 1 endif :------------Go to Work----------------------------- if inparty == 0 && GetIsCurrentPackage refWorkPack == 0 && FloatCurrentTime >= 8 && FloatCurrentTime <= 12 AddScriptPackage refWorkPack endif :------------Go to Lunch----------------------------- if inparty == 0 && DoOnceLunch == 0 && FloatCurrentTime >= 12 && FloatCurrentTime <= 13 Set DieRollLunch to GetRandomPercent Link to comment Share on other sites More sharing options...
Recommended Posts