Would this Point Buy house rule for Maid character creation work at all?

Recently we’ve started a maid game here on the stack and we have a huge disparity of stats between the players, one of them has barely average stats, while some of the other players are pushing fours and sixes in abilities because of great rolls during generation. We have found that the standard rule that characters with good stats get fewer maid powers is insufficient.

Would a point buy system work in Maid RPG while still being able to attain the same level of play in Maid games? Using the favor base presented in the handbook I’ve come up with the following figures for point buy statistics. The standard array in Maid would be 1,1,2,2,3,3 or you could buy points at the following costs, with 200 starting favor:

0: 0 points
1: 10 points
2: 30 points
3: 60 points
4: 100 points

With the stipulation that any favor points not used during point buy are lost. Does a system like this function properly in the Maid system provided the Maid characteristics (Boyish, Sexy, Lolita, Pure, etc.) were rolled after (and only after) a character has distributed their points as they wish?

C++ STL: How does the distance() method work for a set/ multiset (stored internally as a self balancing tree)?

I’m working on the problem: Count smaller elements on right side using Set in C++ STL

The solution is to add each element to the set and then to count the elements on the left, the distance function is called.

This is the algo:

1. Traverse the array element from i=len-1 to 0 and insert every element in a set. 2. Find the first element that is lower than A[i] using lower_bound function. 3. Find the distance between above found element and the beginning of the set using distance function. 4. Store the distance in another array Lets say CountSmaller. 4. Print that array 

I’m having a hard time to visualize or understand how can distance function be used with a set like structure since internally, the set data is stored as a self balanced tree (Red Black Tree). Whats the concept of distance for a self balancing tree and how does calling distance() give us the count of smaller elements on the right side?

Does Locate Object work on polymorphed equipment?

The spell Locate Object says:

You sense the direction to the object’s location, as long as that object is within 1,000 feet of you.

The spell Polymorph says:

The target’s gear melds into the new form. The creature can’t activate, use, wield, or otherwise benefit from any of its equipment.

If the object targeted by Locate Object has been "melded into the new form" of a polymorphed person will Locate Object succeed?

On one hand you could say the item, eg a spear, temporarily doesn’t exist and so cannot be located.

On the other hand spells only do what they say they do and Polymorph does not say is hides items from being detected.

How does Warrens Abstract Machine work?

I’ve recently learned about prolog and Logic programming which I find pretty cool, but the compiler is currently like magic to me and I want to know how they work.

After a little bit of research I discovered that logical compilers are based on Warrens Abstract Machine (WAM). I’ve tried to find some information on WAM, but the Wikipedia page only describes what it is and not how it works and the book Warrens Abstract Machine: A Tutorial Reconstruction doesn’t read very well for me.

Could I please have basic explanation of how WAM works?

Thank you.

Does contingency work if you are polymorphed and so the statuette merged with your body?

The spell Contingency has a material component of:

a statuette of yourself carved from ivory and decorated with gems worth at least 1,500 gp

The spell also ends if this statue isn’t on your person.

Also, contingency ends on you if its material component is ever not on your person.

If you are polymorphed into another form, the spell Polymorph states:

The target’s gear melds into the new form. The creature can’t activate, use, wield, or otherwise benefit from any of its equipment.

Is having the contingency spell not end a "benefit" of your equipment? Or, since it’s melded into your form, is it still on your person? Would the contingency still trigger after reverting to your humanoid form?

How does Invisibility work if you cast it while observed?

In PF2, undetected and hidden are distinct conditions. A literal reading of the invisibility spell suggests that, upon casting the spell, the caster automatically becomes undetected.

Cloaked in illusion, the target becomes invisible. This makes it undetected to all creatures, though the creatures can attempt to find the target, making it hidden to them instead.

If the caster is undetected, then other creatures can attempt to find them by taking the seek action on their turns.

However, the rules for being invisible seem to contradict this:

If you become invisible while someone can already see you, you start out hidden to the observer (instead of undetected) until you successfully Sneak.

Suppose a spellcaster is being observed, and they cast invisibility. Do they become undetected, or do they become hidden?

If they want to become undetected, would they need to use an action to Sneak after turning invisible?

Getting strange output on commands that used to work

I have used the following code before and it worked then but now it seems to default to the word Function, and some of the other commands are giving results like All when they used to work.

Would you help clarify what’s going on?

 usaStateCases[s_] :=       Select[data, MatchQ[Interpreter["USState"][s], First[#]] &][         All, #ConfirmedCases["LastValue"] &] // Normal // First          usaStateDeaths[s_] :=       Select[data, MatchQ[Interpreter["USState"][s], First[#]] &][         All, #Deaths["LastValue"] &] // Normal // First          usaStateCases["California"]  

This used to work but now, the output of the last line is Function

TIA

How do Warlock pacts on Theros work?

The Mythic Odysseys of Theros lists, for each of the gods, the domains most associated to them. As well as this is listed the suggested classes. Here is an example:

Athreos’s Champions

Alignment: Usually lawful, often evil
Suggested Classes: Cleric, monk, rogue, wizard
Suggested Cleric Domains: Death, Grave (described in Xanathar’s Guide to Everything)
Suggested Backgrounds: Hermit, sage, sailor, urchin

Obviously this isn’t an exhaustive list.

However, I haven’t found a similar mapping for the Warlock Pacts or Patrons.

Does any information on this exist in the book (that I’ve missed) or is it available elsewhere?

If not, which gods/monsters/entities make sense for each pact and patron?

arpspoofing doesn’t work for some reason?

I’m new to hacking so please don’t bash me on the replies. :'(

Trying to arpspoof my own windows machine (not vm), the guide I’ve watched tells me to check the arp -a on windows cmd before and after arp spoofing and that if the MAC adress on the gateway ip has changed it means it worked, nothing changes though? also tried urlsnarfing and nothing popped up? I’m so confused on why it’s not working.

echo 1 > /proc/sys/net/ipv4/ip_forward  arpspoof -i wlan0 -t [Victim IP] [Gateway IP] (Terminal 1) arpspoof -i wlan0 -t [Gateway IP] [Victim IP] (Terminal 2)