Title: Stupid $$Cash:x:y Post by: Inge on 2008 October 08, 14:28:12 What's up with it? Trying to turn 10ks and remainders into a normal numeric value, sometimes it turns 12,292 into several hundreds of million pounds and sometimes it drops the leading 1 and lets them off a whole 10K
What is the x, y expecting? It is Local var numbers isn't it? Or is it hoping for temps? And what is it talking about "amount, multiplier"? Surely it just wants mod 10k and div 10k Title: Re: Stupid $$Cash:x:y Post by: Fat D on 2008 October 08, 20:33:11 maybe it wants what it says - amount and multiplier.
Title: Re: Stupid $$Cash:x:y Post by: Inge on 2008 October 08, 20:50:14 $Money does that, but the guidelines are wrong for $Cash.
I worked out what it is just now. It needs the lower number variable before the higher numbered variable so eg the 10ks need to be in Local 1 and the mod 10k in Local 0. Must be passed to the string parser in an array and it pops everything off till it gets to the first one, then can't find the second one. Title: Re: Stupid $$Cash:x:y Post by: tunaisafish on 2008 October 09, 16:31:25 $Money does that, but the guidelines are wrong for $Cash. 'the guidelines'? That sounds authoritive. The Prima Guide for Modders finally out? I've had to restart my notes from scratch, so any pointers to simantics workings would be very useful. :) Title: Re: Stupid $$Cash:x:y Post by: Inge on 2008 October 09, 16:40:13 Nice to see you back in business Jason :)
STR# Variables: Note: a,b,c, etc. are local variable references $Object (stack object = objectId, supplies name) $Local:a (a = value, supplies value) $Neighbor (stack object = neighorId, supplies name) $NeighborLocal:a (a = neighborId, supplies name) $Family (stack object = familyId, supplies family name) $NameLocal:a (a = objectId, supplies name) $LastName (stack object = neighborId, supplies last name) $FullName (stack object = neighborId, supplies full name) $FullNameLocal:a (a = neighborId, supplies full name) $CatalogLocal:a (a = objectId, supplies catalog name) $GUIDCatalogNameLocal:a:b (a = guidLo, b = guidHi, supplies catalog name) $TimeLocal:a (a = hour, supplies time) $DayLocal:a (a = 0 to 6: 0 = Sunday, supplies name - STR# 0x99) $DayFlags:a (a = day flags, supplies name of days) $JobTitle:a[:b] (a = job title index, b = objectId, supplies job title) $FamilyAssets:a (a = familyId, supplies value) $Money[:a]:b (a = multiplier, b = value, supplies value) $Cash:a:b (a = multiplier, b = value, supplies value) $NeighborhoodLocal:a (a = neighborhoodId, supplies neighborhood name) $PrimaryNeighborhood (supplies name of primary neighborhood) $LotNameLocalByLotId:a (a = lotId, supplies lot name) $Attrib:a (a = index, supplies value of attribute) $SkillName:a (a = skill, supplies name of skill) $WordPoints (supplies the word "points") (?) $AspirationString:a:b (a = 0x9A to 0x9E, b = index, supplies name - see Live.package) $BehaviorString:a (a = instance, supplies ?) $PrivateString:a:b (a = instance, b = index, supplies STR#) $SemiGlobalString (a = instance, b = index, supplies STR#) $GlobalString:a:b (a = instance, b = index, supplies STR#) $PropertyPrivateString (a = instance, b = index, supplies value of property) $PropertySemiGlobalString (a = instance, b = index, supplies value of property) $PropertyGlobalString (a = instance, b = index, supplies value of property) $WantDescriptionLocal:a:b (a = personId, b = slotNum, supplies description) $WantHelpTextLocal:a:b (a = personId, b = slotNum, supplies help text) $FearDescriptionLocal:a:b (a = personId, b = slotNum, supplies description) $FearHelpTextLocal:a:b (a = personId, b = slotNum, supplies help text) $Neighbor - Insert name of neighbor pointed at by neighbor ID in stackObject ID $FamilyAssets - Insert family monetary Net worth into string from family index in local var $Family - Insert house-hold name of person in stack object into string $Me - Insert catalog name of current person into string $Object - Insert catalog name of current stack object into string $Local:X - Insert value of local var X $TimeLocal - Insert hour of day in text using in index of local var to point at var with hour value in it new ones $NameLocal:X - Insert catalog name of object with ID pointed at inside of local var X $NameAttrib:X - Insert catalog name of object with ID pointed at index X of stack objects attribute (?) $NeighborLocal:X - Insert name of neighbor pointed at by neighbor ID with ID pointed at inside of local var X (?) $Attrib:X - Insert attribute value X of stack objects attribute (?) $CatalogLocal:X - Insert catalog description of object with ID of local var X (?) $TokenNameLocal:X - Insert catalog name of object type pointed at by token type, which is indexed by local var X $DayLocal:X - Insert text name of day given in local var X. Day values are 0-6, 0 being Sunday (?) $JobTitle:X - Insert text name of a job title of given object. Using index passed in via local var X, this indexes into string table 800 (?) $PrivateString:X:Y - Gets the Private string from table X, string Y !WARNING! Guessed, yell at me if wrong $LastName - Gets the current family's last name !WARNING! Guessed, yell at me if wrong * static const string sNeighborSub("$Neighbor"); o Insert name of neighbor pointed at by neighbor ID in stackObject ID * static const string sFamilyAssetsSub("$FamilyAssets"); o Insert family monetary Net worth into string from family index in local var * static const string sFamilySub("$Family"); o Insert family name of person in stack object into string * static const string sMeSub("$Me"); o Insert catalog name of current person into string * static const string sObjectSub("$Object"); o Insert catalog name of current stack object into string * static const string sLocalSub("$Local"); o Insert value of local var using passed index of local var to get value from * static const string sTimeSub("$TimeLocal"); o Insert hour of day in text using in index of local var to point at var with hour value in it new ones * static const string sNameLocalSub("$NameLocal"); o Insert catalog name of object with ID pointed at inside of passed in index of local var * static const string sNameAttribSub("$NameAttrib"); o Insert catalog name of object with ID pointed at by passed in index of stack objects attribute * static const string sNeighborLocalSub("$NeighborLocal"); o Insert name of neighbor pointed at by neighbor ID with ID pointed at inside of passed in index of local var * static const string sAttribSub("$Attrib"); o Insert attribute value pointed at by passed in index of stack objects attribute * static const string sCatalogDescriptionLocalSub("$CatalogLocal"); o Insert catalog description of object with ID pointed at inside of passed in index of local var * static const string sTokenNameLocalSub("$TokenNameLocal"); o Insert catalog name of object type pointed at by token type, which is indexed by local var * static const string sDayLocalSub("$DayLocal"); o Insert text name of day given an index to a local var with day value in it. Day values are 0-6, 0 being Sunday * static const string sJobTitleSub("$JobTitle"); o insert text name of a job title of given object. Using index passed in via local var, this indexes into string table 800 Title: Re: Stupid $$Cash:x:y Post by: J. M. Pescado on 2008 October 09, 16:47:35 $Lastname is stack object's Lastname, IIRC.
Title: Re: Stupid $$Cash:x:y Post by: Inge on 2008 October 09, 16:50:24 Yes, I copied what I had without editing. It's a list I have built up over time by pasting odds and ends that other people have posted, as well as the original list we got from that funny Uni site where they were learning Edith.
Title: Re: Stupid $$Cash:x:y Post by: tunaisafish on 2008 October 09, 17:59:42 Thanks for the welcome back, and for the info Inge :)
Glad that there's a lot of familiar names still modding. Did the includes data that used to be at simlogical get bundled into PJSE? Reading the BHAV's now is *much* easier than I remember it being. Title: Re: Stupid $$Cash:x:y Post by: Inge on 2008 October 09, 18:03:57 Yup, includes are now distributed with SimPE. If you use the installer version, you get to tick them if you want them, otherwise in the manual download they are just there after you unpack it.
Title: Re: Stupid $$Cash:x:y Post by: Fat D on 2008 October 09, 22:42:59 Tunaisafish is back? I missed you, glad to see you are with us again.
|