Kleines Nahkampf-Simulatorscript

  • Doofes Forum, hat meinen Text geschluckt, also nochmal.


    Ich hab ein kleines Script geschrieben, dass vereinfachte Nahkämpfe 1vs1 simuliert. Vereinfacht deshalb (und daher auch nur vage aussagekräftig), weil es zB keinen geistigen Schaden gibt.


    Der Grund für den Bau von dem Script war relativ simpel. Ich will mir nen Adept-Gestaltwandler bauen und wollte wissen, wie "ach so imba" der mit 400 BP als Neu-char ist. Fazit: Geht so *g* Wobei sie auch nicht NK-gemaxt ist, sondern nur fluffig drauf ausgelegt (edit: hier, allerdings ohne Counterstrike)
    Randinfo: Verwendet wurden als Gegner die GRW-Charaktere.


    Da das Script in PHP geschrieben ist, benötigt es einen lokalen Apache (zB XAMPP) oder Webserver um zu funktionieren.
    Die Ausgabe sieht zB so aus:


    Mehre Kämpfe:

    Code
    1. 1000 fights lilly (792 wins, 79%, 3.4 rounds) bounty (208 wins, 21%, 4.8 rounds)1000 fights lilly (855 wins, 86%, 2.1 rounds) ganger (145 wins, 15%, 2.7 rounds)1000 fights lilly (225 wins, 23%, 1.7 rounds) sammy (775 wins, 78%, 1.3 rounds)


    Ein detaillierter Kampf:

    Code
    1. - round 1 - pass 1 - bounty (12) attacks (3), lilly defends (3) - lilly (12) attacks (3), bounty defends (3) health: bounty (0/12), lilly (0/11) - pass 2 - lilly (12) attacks (3), bounty defends (6) health: bounty (0/12), lilly (0/11)- round 2 - pass 1 - bounty (12) attacks (3), lilly defends (1) and gets hit (2), modified damage is 8 (6+2), modified armor is 3 (3-0), damage after resisting (6) is 2 - lilly (12) attacks (3), bounty defends (2) and gets hit (1), modified damage is 8 (7+1), modified armor is 3 (6-3), damage after resisting (6) is 2 health: bounty (2/12), lilly (2/11) - pass 2 - lilly (12) attacks (2), bounty defends (3) health: bounty (2/12), lilly (2/11) lilly regenerates (3, 0/11)- round 3 - pass 1 - bounty (12) attacks (1), lilly defends (2) - lilly (12) attacks (1), bounty defends (2) health: bounty (2/12), lilly (2/11) - pass 2 - lilly (12) attacks (3), bounty defends (5) health: bounty (2/12), lilly (2/11) lilly regenerates (2, 0/11)- round 4 - pass 1 - bounty (12) attacks (3), lilly defends (6) - lilly (12) attacks (1), bounty defends (1) health: bounty (2/12), lilly (2/11) - pass 2 - lilly (12) attacks (2), bounty defends (6) health: bounty (2/12), lilly (2/11) lilly regenerates (1, 1/11)- round 5 - pass 1 - bounty (12) attacks (1), lilly defends (3) - lilly (12) attacks (2), bounty defends (1) and gets hit (1), modified damage is 8 (7+1), modified armor is 3 (6-3), damage after resisting (2) is 6 health: bounty (8/12), lilly (1/11) - pass 2 - lilly (12) attacks (1), bounty defends (1) health: bounty (8/12), lilly (1/11) lilly regenerates (0, 1/11)- round 6 - pass 1 - lilly (12) attacks (4), bounty defends (0) and gets hit (4), modified damage is 11 (7+4), modified armor is 3 (6-3), damage after resisting (5) is 6 bounty goes down, lilly (1/11) wins lilly regenerates (1, 0/11)


    Die "Eingabe" sieht dann z.B. so aus (und wenn/falls man das Tool benutzen will, muss man mit sowas klarkommen):



    Wer das Script haben möchte, soll sich einfach melden. Ich freu mich natürlich über jeden, der's gerne verbessern, entbuggen oder sonstwie weiterentwickeln will :D (sollte aber masochistisch veranlagt sein).


    PS: Wer gucken will, was passiert, wenn man nen paar Werte ändert, kann mal hier klicken: http://pastebin.com/raw.php?i=hzNpbnyQ

    :arrow: Derzeit auf Suche nach Mitspielern im Raum Essen/Gelsenkirchen, NRW

  • Wenn du fit genug bist das auszubaldovern, darfst du das gerne tun :)
    Ich bins nicht und bin froh, dass das Script so halbwegs tut, wie es soll.

    :arrow: Derzeit auf Suche nach Mitspielern im Raum Essen/Gelsenkirchen, NRW


  • lillys Gesundheitszustand wird nicht korrekt übergeben, solange die Regeneration den Schaden auf null oder darunter heilt. Lilly ist viel stärker als das Script behauptet...

    925a679e051782d023ff4bfd72741ff5bc97058f2f5590cc34a9dbba40f3322520ba81b8fe3c7adc336774704614039b6e096a4bdbaffa504b202d5135a5eb08

  • gnurbel gnurbel :D
    schau ich mir morgen an, genug vom script für heute.


    dennoch: danke, ist mir nicht aufgefallen.

    :arrow: Derzeit auf Suche nach Mitspielern im Raum Essen/Gelsenkirchen, NRW