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.
Killing a creature... [help]
Re: Killing a creature... [help]
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.
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.
-
- Posts: 175
- Joined: Sun Oct 11, 2009 9:33 am
Re: Killing a creature... [help]
Yep there is a fix in the vids. Just watch them through 

- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Killing a creature... [help]
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.
The indelible lord of tl;dr