More Awesome Than You!
Welcome, Guest. Please login or register.
2024 November 21, 12:39:57

Login with username, password and session length
Search:     Advanced search
540287 Posts in 18067 Topics by 6545 Members
Latest Member: cincinancy
* Home Help Search Login Register
+  More Awesome Than You!
|-+  The Bowels of Trogdor
| |-+  The Small Intestines of Trogdor
| | |-+  Stupid $$Cash:x:y
0 Members and 1 Chinese Bot are viewing this topic. « previous next »
Pages: [1] THANKS THIS IS GREAT Print
Author Topic: Stupid $$Cash:x:y  (Read 15398 times)
Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Stupid $$Cash:x:y
« on: 2008 October 08, 14:28:12 »
THANKS THIS IS GREAT

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
Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
Fat D
Horrible Halfwit
**
Posts: 395



View Profile
Re: Stupid $$Cash:x:y
« Reply #1 on: 2008 October 08, 20:33:11 »
THANKS THIS IS GREAT

maybe it wants what it says - amount and multiplier.
Logged

Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Re: Stupid $$Cash:x:y
« Reply #2 on: 2008 October 08, 20:50:14 »
THANKS THIS IS GREAT

$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.
Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
tunaisafish
Axe Murderer
Exasperating Eyesore
*
Posts: 245



View Profile
Re: Stupid $$Cash:x:y
« Reply #3 on: 2008 October 09, 16:31:25 »
THANKS THIS IS GREAT

$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.  Smiley
Logged

Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Re: Stupid $$Cash:x:y
« Reply #4 on: 2008 October 09, 16:40:13 »
THANKS THIS IS GREAT

Nice to see you back in business Jason Smiley

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

Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
J. M. Pescado
Fat Obstreperous Jerk
El Presidente
*****
Posts: 26288



View Profile
Re: Stupid $$Cash:x:y
« Reply #5 on: 2008 October 09, 16:47:35 »
THANKS THIS IS GREAT

$Lastname is stack object's Lastname, IIRC.
Logged

Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Re: Stupid $$Cash:x:y
« Reply #6 on: 2008 October 09, 16:50:24 »
THANKS THIS IS GREAT

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.
Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
tunaisafish
Axe Murderer
Exasperating Eyesore
*
Posts: 245



View Profile
Re: Stupid $$Cash:x:y
« Reply #7 on: 2008 October 09, 17:59:42 »
THANKS THIS IS GREAT

Thanks for the welcome back, and for the info Inge Smiley
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.
Logged

Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Re: Stupid $$Cash:x:y
« Reply #8 on: 2008 October 09, 18:03:57 »
THANKS THIS IS GREAT

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.
Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
Fat D
Horrible Halfwit
**
Posts: 395



View Profile
Re: Stupid $$Cash:x:y
« Reply #9 on: 2008 October 09, 22:42:59 »
THANKS THIS IS GREAT

Tunaisafish is back? I missed you, glad to see you are with us again.
Logged

Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.083 seconds with 19 queries.