Page 1 of 1
Killing a creature... [help]
Posted: Sat Mar 13, 2010 4:32 am
by NZAAN
Currently when I kill a creature, it gets deleted from the table.
I'd like to save the creatures base stats before a fight, and repopulate the table with this data when the fight is over...
Any ideas? I can't seem to figure it out for the life of me.
Re: Killing a creature... [help]
Posted: Sat Mar 13, 2010 4:39 am
by jpoisson
Please post your code so we may help you out.
post the combat code where you kill the monster. you are probably using a DELETE sql query.
If you are following the videos I believe either halls or some one has posted a fix for this. look into the discussion of video 14 i believe.
Re: Killing a creature... [help]
Posted: Sat Mar 13, 2010 5:26 am
by alexrules01
Yep there is a fix in the vids. Just watch them through

Re: Killing a creature... [help]
Posted: Sat Mar 13, 2010 7:04 am
by Jackolantern
As is usually suggested, if you are a new PHP coder, you should just watch the videos (without following along) up to at least video 14 before writing any code. You will get a good feel for how it works, and be less prone to make mistakes. You will also know that certain things get fixed later down the line in the videos that may seem annoying or distressing while you are still watching the earlier videos.