#Map and Checks question?

8 messages · Page 1 of 1 (latest)

cursive perch
#

This is essentially what i have

This person has requested something from another person at this time.
Map<person, timestamp>

But I also want to know who the other person is? Would I have to create another map or is their a different way?
Map<person, otherPerson>

ex.

if (!Map.checkTimestamp(person)) {
"youve already interacted, please wait 5 seconds"
} else if (!Map.checkPeople(person) {
"this otherPerson already has an interaction with someone else"
}

hopefully this makes sense because im having trouble figuring it out myself.

zenith saddleBOT
#

This post has been reserved for your question.

Hey @cursive perch! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

halcyon mural
#

You'd probably need A Map indexed by Person, with as value everything to know about this person, such as a Map indexed by other Person to point to all requests made to that other person

cursive perch
#

So I would need two maps?

halcyon mural
#

More like a Map of Maps

cursive perch
#

Ohhh, I didnt know I could do that, alright thank you!

zenith saddleBOT