News:

Please request registration email again and then check your "Spam" folder

Former www.henthighschool.com

Stupid questions thread

Started by ElPresidenete, Sep 04, 2023, 07:42 AM

Previous topic - Next topic

TBBle

Yeah, sounds like you'll have to duplicate the relevant effect code and scale it in your event, like Indicators and Difficulty mods for Energy drinks, calling the item event directly won't be flexible enough for your use-case here unless the Item Event already has the relevant stat-changing code broken out somewhere else.

ElPresideneteTopic starter

ATM I'm skiping checking the drug level for simplicity.


I toyed with the idea of simply having different club upgrade levels, each with different stat changes and then switch between them depending on drug use. However, that would make corrupting work on full auto.

I'd rather have the player have to come several times to spike the machine and spend drugs and time.

ElPresideneteTopic starter

another question - as I'm working on the bully quest chain, one isse propper up.

ATM, I'm randomly fetshing 3 bullies and 1 victim, saving thier names in their global strings and using them like that. It works, tough it could be better (perhaps using UID?)

the things is, I'd like to make sure the bully has specific traits.. like being female, a sadist and having a matching personality, like Rebel. Problem is, what if due ot the random roll nature, no student matches those?

Altering the student might be obvious to the player if they swtich personality suddenly. Coul have a script that fires at game start that makes sure such a student would be there, but what if htepalyer adds a mod mid-playtrough?  Should I even be worried about that?
I have no idea how to make special Characters and there's plent of them already that aren't finished, don't want to add more.

Thoughts?

TBBle

This is what HasQuest and Special Characters are for. Special Characters don't really need to have extensive quest-lines or whatever, or even be involved in the mainline quests. Special Characters are just predefined characters that wander around the world. HasQuest will keep players from doing things like using FutaMaker to break your quest logic and images, and you can remove it once the chain is complete. The prostitutes are examples of this kind, although they do have custom paperdolls for their working outfits.

You could have an init even that picks a random character from the population, (creating one if necessary) and applies HasQuest to them, if you want variety in the bully character. Special Characters mean you don't need too many variations of quest-specific scenes for them though.

Other mods shouldn't be messing with Special Characters (another reason to use it) unless they also take on the work of keeping that character functional, c.f. all the hassle that Futa Overhaul suffers because it's in exactly that situation. Most "Pick a random character to get involved in this one-shot scene" logic avoids Special Characters by default too.

So I would lean towards have a quest-specific Special Character, HasQuest-protected, and go from there. Most aspects of Special Characters will default back to generic NPC handling if not actually specialised, so you don't have to do much to make them fit into the world.

ElPresideneteTopic starter

I need to figure out how ot make heads before I cna make characters.

But another question - how to change the size ofa character? There is a size value in debug but it only affects the y axis. It looks bad when you want to make a smaller/petite character,you get a squashed dwarf...or an elongated monster in case yo uwant a tall character.
So any way to actually adjust scaling equally?

ElPresideneteTopic starter

In what way can I check if an NPC had previous sex acts wiht the player? I know they are tracked, so probbly a SQL querry? But what table?

TBBle

See ExtensionLibrary\InfoPanel\GenSexTab\AddVanilla.ve.xml for the code and SQL queries that enumerate the sex acts from the relationship database.

Spoiler

Here, @Key is one of the GS_ tags in node 1203.

First two are the player themselves, calculating the count given and received. The second two are for Player/NPC specific relationship.

SELECT IFNULL(SUM(DataValue), 0) AS CountG
FROM relationships AS rel
LEFT OUTER JOIN relationshipdata as data
ON rel.id = data.relationshipId
WHERE rel.ownerID = 0 AND data.dataKey LIKE (@Key || '1_')


SELECT IFNULL(SUM(DataValue), 0) AS CountR
FROM relationships AS rel
LEFT OUTER JOIN relationshipdata as data
ON rel.id = data.relationshipId
WHERE rel.ownerID = 0 AND data.dataKey LIKE (@Key || '2_')

SELECT IFNULL(SUM(DataValue), 0) AS CountG
FROM relationships AS rel
LEFT OUTER JOIN relationshipdata as data
ON rel.id = data.relationshipId
WHERE rel.ownerID = 0 AND rel.targetID = @UID AND data.dataKey LIKE (@Key || '1_')

SELECT IFNULL(SUM(DataValue), 0) AS CountR
FROM relationships AS rel
LEFT OUTER JOIN relationshipdata as data
ON rel.id = data.relationshipId
WHERE rel.ownerID = 0 AND rel.targetID = @UID AND data.dataKey LIKE (@Key || '2_')

[close]

For your use-case, you might be able to use Person Relationship Database node with the GS_ values from node 1203, although I noticed GS_StripShow% in that list, suggesting there's multiple things that start with "GS_StripShow", like "GS_StripShower". The full tag in the DB has a digit after the action tag, distinguishing giver and receiver, and then data for consent. So if you are interested in an event you can build a full tag for, you can use it. (It's also possible you can sneak SQL wildcards into that node's tag input...)

Looking at FunctionLibrary\GenSexHandling\GetAddSetDDTag.ve.xml, the full list of action tags are in a column down from node 14.

I'm not sure why there's a separate count for strip-shower but not the other sex you can have in a shower...

You also might find FunctionLibrary\GenSexHandling\TargetsFirstTime.ve.xml either directly, or taking advantage of the FunctionLibrary\GenSexHandling\GetAddSetDDTag.ve.xml with Mode 128 as seen there, which for a given action can tell you how many were to Person A and how many received. Mode 256 will do the same with Person B. These modes don't care about the Consent or partner when counting, they're simply reporting the person's experience in each action.

ElPresideneteTopic starter

I'm runnig into an issue of hte club president being un-assigned.

I activate a club, and add peple to it trough scrip, then pick one random club member nad set them as president. When I lookthe club under club managment all members and president are listed. But at some point hte president gets un-assigned.

Note that I have set LydiaSwan as preffered president, even tough she wasn't added to the club. Could that be  the cause?

ElPresideneteTopic starter

#38
Weird, weird, weird.

So not only does the club president keep getting un-assigned (I aded a debug button to pick a random person from club and make htem president, and itdoes add the president, but the next day the president is unassigned), but if I trigger the avent after hitting hte button (so it doesn't fail because there is a president temporarily)
the event stil lfails because AttachEvent apparently goes bonkers.

the reason I'm using the president is to have a consisten person to attach interaction events to. I could use a random I guess, but there's still an issue of AttachEvent giving me some key error.

Does an event you want to attach to a person have to sit in a specific folder? Is there anything that could cause it to fail?
EDIT: I think I got it. Will see if it works

TBBle

Quote from: ElPresidenete on Jan 10, 2024, 09:36 AMNote that I have set LydiaSwan as preffered president, even tough she wasn't added to the club. Could that be  the cause?

I'm suspicious about this... Does it happen if you have no preferred president? It might be that having a non-student as preferred president is confusing some engine logic causing it to try to make Lydia the president, but then fail to add her to the club (maybe because she's not on staff?) and hence leaving no president.

I note in passing that the file editor says that events can access the preferred president, but I actually don't see a VEE node for it. I didn't go looking through events, but it is listed in Get Property By Name at least. I assume the intent of that was for events to manage the preferred president taking over, but I guess that's handled in-engine for now.

ElPresideneteTopic starter

Quote from: TBBle on Jan 09, 2024, 03:31 PM*SNIP*

All I need is to see if a person had vagial sex with the Pc before.
But checking for virginity would be a nice bonus.


@TBBIe - I removed the prefred president from the club gameObject/file, and updated the files. For some reason the club president still keeps getting reset. Or it may be that I will need to start a new game (again) to test properly. We will see.

If I fail to fix this, I'll simply attach the event to a random person from the club, tough I feel it's less secure for the player to remember whom they have to talk to, without having anywhere to look it up.

ElPresideneteTopic starter

#41
ShowDEcisions - if multiple bool variables are linked to one option, then all mustthe true or are multi-links not supported?

EDIT: Another question - how to check for penis verginity?

ElPresideneteTopic starter

Hm..I want to make a check to see if Annette is present, but in a general sense (not at location).

Looking at the code, there is a variable ArrivalState, but it gets overwriten and the only possible values are
Pos 0 = Annette Chosen
Pos 1 = Andy Chosen
Pos 2 = Chosen sibling has arrived
Pos 3 = No one is coming

So I can chekc if a sibling has arrived, but now who.... Any ideas?


TBBle

Quote from: ElPresidenete on Jan 17, 2024, 10:48 AMHm..I want to make a check to see if Annette is present, but in a general sense (not at location).

Perhaps the Annette in town variable in ScheuldeHanders\Annette_SH is what you want. Although it's not marked reload-persistent, that's probably a bug, as reloading that event as it is now would cause Annette to stop hanging around the house in the mornings and evenings.

barteke22

Quote from: ElPresidenete on Jan 15, 2024, 11:08 AMShowDEcisions - if multiple bool variables are linked to one option, then all mustthe true or are multi-links not supported?

EDIT: Another question - how to check for penis verginity?

Bools: All must be True.
Virginity, either check how AskVirgin, or InfoPanel (ExtensionLibrary\InfoPanel\Main) does it (info panel at least checks that).

Quote from: ElPresidenete on Jan 17, 2024, 10:48 AMSo I can chekc if a sibling has arrived, but now who.... Any ideas?

TBBle's answer is probably what you want, but Bit Pos 0-3 are binary positions (checkmarks in a BitField variable), any combination can be true.