Without looking at the code itself... that
looks like it should be okay... but I can't tell you for certain. I'd have to see it in SimPE myself and I'm certainly not an expert compared to other peeps, obviously.
But... if that is the line that seems to check if a sim is of a certain
type and then the rest of it (Line C and forward) proceeds to allow the sim to skill on the comm lot, then yes, changing this so that they both continue should allow all sims, regardless of whether they are that
type or not should be allowed to skill.
As for dizzy's suggestion to add a check for Knowledge/Wealth, that should be easy to do too.
Just add a line that checks for those aspirations:
1) my person data 0x002E Flag Set? Constant Value 0x013E:0x03
checks for Fortune (Wealth)
2) my person data 0x002E Flag Set? Constant Value 0x013E:0x06
checks for Knowledge
You can add this check after the above line you mentioned, and then True would go to C, False would return False.
The instruction settings to check for fortune/wealth aspiration should look like this:
OpCode: 0x0002 Reserved: 0x00
True Target: 0x000C False Target: Return False
Operands:
2E 00 03 5F 00 08 12 1A
00 00 00 00 00 00 00 00
To check for knowledge, change the 03 to 06.
If you want to include BOTH checks, you should have the False Target of the first check go to the line of the 2nd check, so the logic of the pseudocode flows like this:
Assuming that the first line in the hack is the one you (Motoki) posted:
0: Check Sim Type (Is it valid to skill on a comm lot?)
If True: Go to Line 1
Else if False: Go to Line 1
1: Check if Sim's Aspiration is Fortune/Wealth
If True: Return False (Exit the code)
Else if False: Go to Line 2
2: Check if Sim's Aspiration is Knowledge
If True: Return False (Exit the code)
Else if False: Go to Line C (the rest of the code)
After running disaSims2, it should look like this:
0: my person data Person Type == Const 0x0104:0x01 [=[No BCON file]]
true: 1 false: 1
1: my person data Aspiration (0x2E) Flag Set? Const 0x13E:0x3(3)
true: false false: 2
2: my person data Aspiration (0x2E) Flag Set? Const 0x13E:0x6(6)
true: false false: C
In fact... you could probably just get rid of the 1st line altogether... at least logically that makes sense. *shrugs*
I don't know if this like a total faux pas in "revealing" info about modding or whatever, but I submit my lips as a sacrifice.
And any
real modders, please do correct any glaring mistakes as I don't want to be responsible for diseminating false information, which I am quite prone to doing.
Maybe if I get time this week, I'll make this tweak for myself. Lately, I've been doing these sort of mini-customizing tweaks myself to some of my fave mods. Hehe. I've even managed to get a working version of almecho's abduction pregnancy hack compatible with NL (MINUS the InTeen bits... for now, until I can figure out how to add those back in) with my own tweaks to disallow YA pregnancy (which I've heard can still occur in Uni supposably *shrugs*) as well as a 25% chance of getting pregnant now. I love twojeffs' increased abduction odds because I loved having my knowledge sims actually getting their meet alien wants filled, but I
hated that they would
always come back preggers.
At least now, they will only get preggers
some of the time, and my neighborhood won't be flooded with aliens due to excess overpollination.
Anyhew, hope this helps and what not. And incidentally, when I was in elementary school, I used to take a short bus.
Probably explains a lot...
(Actually... our bus wasn't
that kind of short bus... HONEST! It was mostly for peeps whose kids lived too close to the school to "qualify" for a
long bus, but still Too far to just walk... or in my case, kids whose parents were far too overprotective and wouldn't let them walk 5 blocks to school.
)
Ste
Disclaimer: I only recommend futzing around with SimPE if you have a basic clue of what you are doing, with the caveat that any changes you make could potentially turn your game and/or computer into a bfbvfs.
So... always back yo' shit up, foo!
I
highly recommend reading up on stuff at the SimPE site (Carrigon's tuts) as well as Dizzy's tuts/how-tos on VS. I've learned a great deal from there, and I still have a looooooooooong way to go before I can even understand simple things, but those tuts are totally helpful.
PS. I took a look at the set of globals for group 0x7F01EC29 and here is a list of the different aspirations:
Const 0x13E:0x1(1) Romance
Const 0x13E:0x2(2) Family
Const 0x13E:0x3(3) Fortune
Const 0x13E:0x4(4) Power
Const 0x13E:0x5(5) Popularity
Const 0x13E:0x6(6) Knowledge
Const 0x13E:0x7(7) Grow Up
Const 0x13E:0x8(
Pleasure Seeker
Const 0x13E:0x9(9) Grilled Cheese
I'm not sure what 4 would be... I just only looked for those. 4
might be Power... whatever the hell that is. I've seen it show up when playing around with the Sims Modder baby object that's now available with the testing cheats. Perhaps it is an unfinished Aspiration? I set a sim to it, and there is now Aspiration icon for it (like how Knowledge has a stick figure man holding a book, Popularity has a stick figure holding two other stick figures, Romance has a stick figure with a heart or something, etc.) Ok... I took a quick peek again at those globals and 4 does in fact represent Power. When I set a sim to that aspiration, they rolled up wants to get jobs in the miltary and politics. I suspect that it is indeed an aspiration that is unfinished. Can't say for sure, but I have never seen it mentioned in any other threads/posts before in any of the forums I've visited. It would be neat if they did add it back and fleshed it out, but perhaps it was just too similar to other Aspirations or they couldn't decide how to differentiate it? Your guess is as good as mine.