• Welcome to SC4 Devotion Forum Archives.
 

News:

The SC4 Devotion Forums are no longer active, but remain online in an archived, read-only "museum" state.  It is not possible for regular members to post or use the private messaging system, and no technical support will be provided for any issues pertaining to the forums in their current state.  Attachments (those that still work) are accessible without login.

The LEX has been replaced with SC4Evermore (SC4E), and SC4E maintains an active Discord server.  For traditional forums, we recommend Simtropolis.

Main Menu

Applying random chance to props

Started by thingfishs, February 19, 2010, 12:46:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

thingfishs

As my last post wasn't moved I'll try a similar query here. I've made evergreen versions of the seasonal trees, now what I am trying to do is apply random chance to my old dog, Elle. I have set her to appear between 9 and 5 (work hours) and applied a random integer of 50 (which on looking back at the file seems to be set at 32). When I load my city she appears permanently. What am I doing wrong?

thanks



<edit> just as I pressed post my eyes focussed on resource key type 1, is that my mistake... needing to convert it to RKT4?

Andreas

I haven't used random chance properties so far, but yes, for timed props, RKT4 is necessary as well.
Andreas

RippleJet

The property Prop Random Chance only works with timed props, and thus the Resource Key Type has to be RKT4. ;)

thingfishs

Thanks andreas & ripplejet :thumbsup:

At least I was on the right track. So now when I place the prop it's a green diamond instead of the prop, like effects are. The hard thing with this is determining the correct rotation of the prop, is there ways around this? Secondly the prop isn't showing up in game at all. I've waited 8 or 10 years in cheetah mode but no sign of it. The only thing I've changed from the above is converting it to RKT4. Any ideas?

RippleJet

How did you set the states in the RKT4?
For "Prop Time of Day", state 0 is the one that appears between those hours set.

thingfishs

I don't understand what you're saying there. All I did within reader was open the resource key bit and changed it to type 4 from the drop down.

Quote from: RippleJet on February 19, 2010, 05:54:07 AM
For "Prop Time of Day", state 0 is the one that appears between those hours set.

What I am after is having her randomly appear during work hours 9-17. So don't I want state 0 between those hours? ()what() (0 means visible right?)

While I'm here Hooha made me a version of a SG SUV to appear during work hours representing the cellar staff's car. However it comes and goes with the same randomness as the maxis car props representing customers. What controls the coming and going of vehicles like this? For the customer cars it's great but for the worker's car I want it to always be there during business hours.

FWIW this is the SUV setup:


RippleJet

Quote from: thingfishs on February 19, 2010, 07:22:39 AM
I don't understand what you're saying there. All I did within reader was open the resource key bit and changed it to type 4 from the drop down.

Can you post an image of your prop in Reader here, so that the whole content of its Resource Key Type 4 is visible?


Quote from: thingfishs on February 19, 2010, 07:22:39 AM
However it comes and goes with the same randomness as the maxis car props representing customers. What controls the coming and going of vehicles like this?

The reason those seem to appear randomly is that the ingame car clusters are in families (0xA000003D for the commercial car cluster).
Each single cluster prop included in that family (there are 75 of them, 25 for each wealth) has between 1 and 5 visible cars.

Each single cluster prop in that family also has slightly different hours of appearing,
from 6/7/8/9/10 in the morning till 13/14/15/16/17/18/19/20 in the evening.

Any of those clusters can appear (and always does appear) at business hours.

The SUV Hooha made belongs to family 0xA0000967. Not sure what or whose prop family that is, and what else it might contain...
That shouldn't affect its appearance if you only choose that single prop on your lot though.

thingfishs

thanks ripplejet :thumbsup:

do you mean this?



The SUV is from SG mega pack 01 and is part of the farm prop collection. How can I make it permenantly visible from 9 -5?

(FWIW I've sent my winery LOT & model off to Barby and so it may be too late to make changes, but I still really want to know how this stuff works for future projects.)

cheers

RippleJet

Quote from: thingfishs on February 22, 2010, 05:18:15 PM
do you mean this?

Yes!
And as you can see, the Resource Key Type 4 has only 3 values (reps). Its specification requires n×8 reps.
May I suggest that you read and understand this thread first: Making Seasonal/Timed Props ? :)