Let's get to the point. I wanna make a clans/allies feature to my browsergame (not made from your tutorials), but i have no clue how. Could you try to explain to me, how i should do this?
Thanks!
Ask me anything about SEO & Marketing.
Skype: rasmus_355
Its not that hard. You have a table called: Clan or whatever, you add an ID, a name field ( clans have names right? ) and some other specific fields needed for your clan system. You should create a new field in your player table and add a field called clan_id, which is in fact a reference to the ID from the clan table.
Now, the default value should be something like 0, this means this player is not member of a clan. If he did choose to join one, you can add the clan_id in the players table.
If you want specific stuff for your clan, like grouping, titles et cetera ( housing, bonusses etc ) you add this as well to your clan table.
Now, if your database is done, you can implement right? PHP isn`t that hard.