Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Question: Loading monster data

Author
Message
purge
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location:
Posted: 7th Jul 2006 03:40
I want to have a game with multiple dungeon levels. I also want to have it randomly select monsters the player has to fight, but i want different percent chances of having to fight easy, medium, or hard monsters based on character level. My code below is not an actual game but is made to demonstrate loading monster data
in a game. Is there a more efficient way to do this than my code below?

indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 7th Jul 2006 10:53
each monster should have a type dimmed array associated with it to manage its variables.
eg Monster.PowerLevel()

within the monsters typed array variables should be a monster level that will allow you to greatly manipulate your games choice of monster.

eg player on level 4, would allow you to choose monsters of level 4 but also factor in a powerful level 5 every now and then from popping up.


also


a case statement command will help in long winded if then else situations

Login to post a reply

Server time is: 2024-09-25 03:27:55
Your offset time is: 2024-09-25 03:27:55