furn355 Posted December 10, 2008 Posted December 10, 2008 My question is, would it be possible to recode the MCcodes V2 attacks phps so it did it automatically, (each attack round) ANd still show it, to save the user clicking, If so what sort off thing am i looking to do. THanks for any helpful replies. P.s i have looked in the forums for something similar and found nothing. Quote
Savager Posted December 10, 2008 Posted December 10, 2008 Re: Would it be possible at the end if neither of them has less than 0 health include "attackscript.php"; or whatever name you wanna call it to run the script again and again till one of them have less than 0 health yes it is possible would look kinda like this ATTACK SEQUENCE HERE if($odata['hp']<0 OR $ir['hp']<0) { SET HOSPITAL SET ATTACKWON ETC.... } else { include "thisfile.php"; } my battlearena mod that i created in the paid mod section. loops till everyone but 1 person dies. Quote
Zero-Affect Posted December 10, 2008 Posted December 10, 2008 Re: Would it be possible including a mod would be a bugger though, would it not. since what if they are entirely equal in stats and weapons just keep running and running and running and running lol add a fail safe where like after 50 goes rather the less in hp or if they are equal it randomly chooses a winner. would be more fun i guess Quote
furn355 Posted December 10, 2008 Author Posted December 10, 2008 Re: Would it be possible Hmm can anyone show me some more code, i havent seen enough off it to be able to work it out, any helps is much appreciated Quote
Savager Posted December 10, 2008 Posted December 10, 2008 Re: Would it be possible well actually i would add if($_session['ns']==100) {$attacktie=1;} $_session['ns'] being next step. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.