Jump to content
MakeWebGames

Recommended Posts

Posted

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.

Posted

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.

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...