Forums: » Register « |  Free Tools |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |

New Free Tools on Dev Shed!

#1
July 15th, 2013, 11:00 PM
 woj56k
Registered User

Join Date: Jan 2013
Posts: 5
Time spent in forums: 1 h 35 m 19 sec
Reputation Power: 0
Simulation Engine Algorithm Tips

Hey everyone, I'm hard at work developing the core of my game and being someone that has never messed with in depth algorithms for game development I was wonder if I could get some help/tips/pointers on how to approach this aspect in my game. First off let me explain by saying my game is a wrestling simulation similar to THEWRESTLINGGAME. A user will create a wrestler, wrestle matches, train, and equip more advanced moves. Now the meat and potatoes will be the simulation engine which I was to construct to be as fun as possible to read match results.

Now there will be a ton of variables for each character. My first question is should I use all of these variables combined to come up with an overall number to determine skill then calculate it with the strength of the characters moveset (which will also be averaged out?)? Is there a different approach you would take?

Second is providing the text for the match results. I am completely clueless as to how to do this. Should I created a table with a bunch of action texts along with reaction texts and then just randomize them in certain situations or just pull the moves from the table and just within the results page itself create a buttload of if/else with a randomizer? Or if I'm completely off base feel free again to share any ideas.

Lastly, I included an example of a simulation engine that are currently working in a few games just for reference on how I should approach the engine itself.

Example:
Code:
```Ring Announcer: "The following contest is scheduled for One Fall!"

Ring Announcer: "Introducing first, Mark Devereaux"!
Mark Devereaux makes his way to the ring

Ring Announcer: "and his opponent, Thantanos"!
Thantanos makes his way to the ring

The two wrestlers stare proudly at each other
and then engage in a exciting test of strength, trying to overcome their opponent
after a few, seemingly endless, seconds and an enormous effort Thantanos prevails
Thantanos points to Mark Devereaux with decision
and hits his face with an light Ear Slap showing no respect
Thantanos prepares to hit the rival
Mark Devereaux moves and dodges a Forearm Smash, taking the initiative back
Mark Devereaux grasps Thantanos
and lifts him up, slamming him down to the mat performing a light Body Slam
Mark Devereaux gets besides the laying opponent
Thantanos blocks the Knee Stomp easely
Thantanos gets close to his grounded opponent
and hits him executing a light Knee Stomp
Thantanos grabs Mark Devereaux's hair
Thantanos grabs one of his opponent's arms and swings him into the ropes
Thantanos takes a run-up on the ropes, runs towards his opponent
stretching his arm hitting his back with a light Clothesline to Back
Thantanos pulls Mark Devereaux still groggy, by his hair
Thantanos puts his opponent on his shoulders
Mark Devereaux climbs down his rival's shoulders dodging the Samoan Drop regaining the initiative
Mark Devereaux grabs Thantanos's hair
lunges himself on the ropes
Mark Devereaux runs toward Thantanos and jumps
Thantanos prevents from being thrown with a Running Arm Drag
Thantanos puts his opponent on his shoulders
and throws himself backward, trampling him with light Samoan Drop
Thantanos grabs Mark Devereaux's hair
Thantanos grabs one Mark Devereaux's arms and spins, swinging him into the ropes, then lunges himself as well
Thantanos hooks Mark Devereaux from behind
Mark Devereaux suddenly dodges the Backslide Pin, and starts to counterattack
Mark Devereaux grabs Thantanos's hair
Mark Devereaux grabs one Thantanos's arms and spins, swinging him into the ropes, then lunges himself as well
Mark Devereaux grabs Thantanos from behind
and attempts a pinfall with a light Backslide Pin
Referee starts counting...
Referee: ....Oneeeeeeeeeeeeeeeee....
Referee: ....Twooooooooooooooooo....
Thantanos gets up and resolutely fights back
Thantanos stares at Mark Devereaux in front of him
and hits his face with an light Ear Slap showing no respect
Thantanos loads his arm chop style and
Mark Devereaux moves and dodges a Forearm Smash, taking the initiative back
Mark Devereaux grasps Thantanos
and slams him down to the mat performing a light Body Slam
Mark Devereaux grabs Thantanos's hair
Mark Devereaux grabs one Thantanos's arms and spins, swinging him into the ropes, then lunges himself as well
Mark Devereaux hooks Thantanos from behind
hooking him by the arms sliding him across his back while falling performing a light Backslide Pin
Referee starts counting...
Referee: ....Oneeeeeeeeeeeeeeeee....
Referee: ....Twooooooooooooooooo....
Thantanos gets up and resolutely fights back
Thantanos stares at Mark Devereaux
Mark Devereaux avoids an Ear Slap and takes the initiative
Mark Devereaux loads an arm towards himself
Thantanos blocks the rival's arm preventing the execution of a Forearm Smash
Thantanos loads his opponent on his shoulders
and throws himself backward, trampling him with violent Samoan Drop
Thantanos gets close to his grounded opponent
and strikes his forehead with a light Knee Stomp
Thantanos approaches his laying opponent
Mark Devereaux avoids the Knee Stomp and counterattacks
Mark Devereaux approaches his laying opponent
Thantanos blocks the Knee Stomp easely
Thantanos gets besides the laying opponent
and strikes his forehead with a strong Knee Stomp
Thantanos grabs Mark Devereaux's hair
Thantanos grabs one Mark Devereaux's arms and spins, swinging him into the ropes, then lunges himself as well
Thantanos runs toward Mark Devereaux
and spins hitting him with a light Rolling Elbow Smash
Thantanos pulls Mark Devereaux still groggy, by his hair
Thantanos lifts his opponent on his shoulders
and throws himself backward, trampling him with violent Samoan Drop
Thantanos grabs Mark Devereaux's hair
Thantanos grabs one of his opponent's arms and swings him into the ropes
Thantanos takes a run-up on the ropes, runs towards his opponent
and he hits his back with his arm taut performing a strong Clothesline to Back
Thantanos grabs Mark Devereaux's hair
Thantanos grabs one of his opponent's arms and swings him into the ropes
Thantanos bounces on the ropes running towards his opponent
Mark Devereaux gets down and avoids the Clothesline to Back. gaining the initiative
Mark Devereaux gets close to his grounded opponent
to hit him with a light Knee Stomp
Mark Devereaux pulls Thantanos still groggy, by his hair
Mark Devereaux loads his opponent on his shoulders
Thantanos firmly blocks the execution of the Samoan Drop
Thantanos grabs his opponent's nape from behind with his right hand
and kneels down, flipping him over his shoulder down to the mat, back first connecting with a light Snapmare
Thantanos grabs Mark Devereaux's hair
Thantanos grabs one Mark Devereaux's arms and spins, swinging him into the ropes, then lunges himself as well
Thantanos grabs Mark Devereaux from behind
hooking him by the arms sliding him across his back while falling performing a light Backslide Pin
Referee starts counting...
Referee: ....Oneeeeeeeeeeeeeeeee....
Referee: ....Twooooooooooooooooo....
Referee: ....Threeeeeeeeeeeeeeee....
THANTANOS WINS THE MATCH AND DEFEATS MARK DEVEREAUX!!!```

Any guidance is well appreciated. Thanks guys!

#2
July 16th, 2013, 02:47 AM
 jack13580
Contributing User

Join Date: Aug 2012
Posts: 185
Time spent in forums: 1 Week 16 h 29 m 14 sec
Reputation Power: 76
I'm guessing that the answers to your question weren't good anough at bbgamezone.net?

#3
July 16th, 2013, 02:50 AM
 woj56k
Registered User

Join Date: Jan 2013
Posts: 5
Time spent in forums: 1 h 35 m 19 sec
Reputation Power: 0
They were good of course but I like multiple opinions. Nothing wrong with that right?

 Viewing: Dev Shed Forums > Programming Languages > PHP Development > Simulation Engine Algorithm Tips

## Developer Shed Advertisers and Affiliates

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts vB code is On Smilies are On [IMG] code is On HTML code is Off
 View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox Forum Jump Please select one User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home -------------------- Programming Languages    PHP Development        PHP FAQs and Stickies    Perl Programming        Perl FAQs and Stickies    C Programming        C Programming FAQs and Stickies    Java Help        Java FAQs    Python Programming        Python Programming FAQs    Ruby Programming        Ruby Programming FAQs    Game Development        Game Development FAQs Programming Languages - More    ASP Programming        ASP Programming FAQs    .Net Development        .Net Development FAQs    Visual Basic Programming        Visual Basic Programming FAQs    Software Design        Software Design FAQs    ColdFusion Development        ColdFusion Development FAQs    Delphi Programming        Delphi Programming FAQs    Regex Programming        Regex Programming FAQs    XML Programming        XML Programming FAQs    Other Programming Languages        Other Programming Languages FAQs Web Design    HTML Programming        HTML Programming FAQs    JavaScript Development        JavaScript Development FAQs    CSS Help        CSS Help FAQs    Flash Help        Flash Help FAQs    Photoshop Help        Photoshop Help FAQs    Web Design Help        Web Design Help FAQs    Website Critiques        Website Critiques FAQs    Search Engine Optimization        Search Engine Optimization FAQs Mobile Programming    Mobile Programming        Mobile Programming FAQs    iPhone SDK Development        iPhone SDK Development FAQs    Android Development        Android Development FAQs    BlackBerry Development        BlackBerry Development FAQs Web Site Management    Business Help        Business Help FAQs    Development Software        Development Software FAQs    Scripts        Scripts FAQs Databases    Database Management        Database Management FAQs    DB2 Development        DB2 Development FAQs    MySQL Help        MySQL Help FAQs    PostgreSQL Help        PostgreSQL Help FAQs    Firebird SQL Development        Firebird SQL Development FAQs    MS SQL Development        MS SQL Development FAQs    Oracle Development        Oracle Development FAQs    LDAP Programming        LDAP Programming FAQs System Administration    Mail Server Help        Mail Server Help FAQs    Apache Development        Apache Development FAQs    Security and Cryptography        Security and Cryptography FAQs    Antivirus Protection        Antivirus Protection FAQs    DNS        DNS FAQs    IIS        IIS FAQs    Networking Help        Networking Help FAQs    FTP Help        FTP Help FAQs Operating Systems    BSD Help        BSD Help FAQs    Linux Help        Linux Help FAQs    UNIX Help        UNIX Help FAQs    Windows Help        Windows Help FAQs    Mac Help        Mac Help FAQs Web Hosting    Web Hosting        Web Hosting FAQs    Free Web Hosting        Free Web Hosting FAQs    Web Hosting Requests        Web Hosting Requests FAQs    Web Hosting Offers        Web Hosting Offers FAQs Computer Hardware    Computer Hardware    CPUs        CPUs FAQs    Cooling        Cooling FAQs    Embedded Programming        Embedded Programming FAQs    Motherboards        Motherboards FAQs    Multimedia Hardware        Multimedia Hardware FAQs Other    Dev Shed Lounge        Dev Shed Lounge FAQs    Development Articles        Development Articles FAQs    Beginner Programming        Beginner Programming FAQs    Hire A Programmer        Hire A Programmer FAQs    Project Help Wanted        Project Help Wanted FAQs Latest News Updated Hourly    Technology News    Business News    Science News Forum Information    Forum Rules/Guidelines        Forum Rules/Guidelines FAQs    Forum Announcements        Forum Announcements FAQs    Dev Shed Gaming Center        Go to the Dev Shed Battle Arena        Go to the Dev Shed Arcade Games        Go to the Legend of the Green Dragon    Suggestions & Feedback        Suggestions & Feedback FAQs

 Forums: » Register « |  Free Tools |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |