[Game] Think like a programmer!

smileyhead

I like cute stuff.
OP
Member
Joined
Aug 31, 2015
Messages
4,803
Trophies
3
Age
23
Location
Budakeszi, Hungary
Website
sites.google.com
XP
10,583
Country
Hungary
The point of this game is to think of different existing game mechanics and try to solve them by thinking like a programmer. You don't need to be a programmer to participate (I'm not), but some basic knowledge is probably needed to understand the game.
Before you post a solution to the problem, please provide us with a short explanation as to how it works in-game. Please put your solution in SPOILER tags if it's long.
I'll start.



In Tomodachi Life, when you don't visit or interact with a Mii for a long amount of time, the next time you do they will call you out on it or barely remember your name.

My solution:
  • Create variable “lastvisit” that's unique to every Mii and counts up by one every day the game runs and the Mii is not visited.
  • When a Mii is visited, check “lastvisit” and if it's more than 30, they will not remember you. After checking, whatever the number is, it will get reset to 0.
  • When the game is saved, the time and date it was saved will also get written to the save file.
  • When the game is loaded, check the save time. If there are days when the game hasn't been open, add every day between the save time and current time to every Mii's “lastvisit” variable.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: 10 tabs open on chrome and no slow downs suck it low ram plebs lol