XaiJu
journeyofwrestling
journeyofwrestling

patreon


How playing matches works

I recently finished porting the 'play match' functionality to the offline version. This gave me an opportunity to go over it as a whole, and I thought you might like to take a look at how this part of the game works under the hood.

Note: You can view the code snippets attached in a gist here.

Let's walk through what happens when you play a match:

Most actions, like injuries, have associated checks: goals, talent requests, messages, company alerts, news etc that they trigger.

Finally, there are some others parts to the code which I've omitted, like handling tournaments and cashins.

I hope you enjoyed this little look at the game's code. If you liked it, let me know and I'll do another one for the 'play segment' function.

Thanks for reading!

Comments

how much does popularity affect the outcome of who wins and who loses?

Pantscada

Yeah, this neat. I didn't analyze all of it, but it seems pretty cool. What are kayfabe points? I know what kayfabe is, but what are "kayfabe points" in the game?


More Creators