Axe Software Forums
  Quest Developer Forum
  arena monsters


Author Topic:   arena monsters
Xlithan posted 19-06-2002 19:32 BST     
how do i make it so that random monsters are summoned in the arena, and how do i make it so that only 5 monsters can be summoned. also i dont know how to make it so you gain EXP when u kill monsters and how to make it so you can level or get gold. lol im REALLY stuck and dont know how to program in 'QDK' language.
Xlithan posted 19-06-2002 19:36 BST          
also if i summon 2 goblins and attack 1 it says...'Which one would you like to attack?'. plus, how do i make the monsters attack me every 5 seconds and take a random amount of health away?
Alex posted 19-06-2002 20:23 BST          
It depends what you mean by "random monsters" - are these all essentially similar, but with slightly different attributes? You might try modifying their properties in that case, making some use of the $rand(...)$ function.

And again it depends what you mean by "summoned" - you might have one monster object, and then use the "clone" command (in Quest 3.1 only) to make several copies of it.

As for gaining EXP (I don't know what that is), level, gold etc. - use numeric variables. Status variables might be a good idea for this sort of thing.

As for asking which goblin to attack, try a menu - look at Selection Blocks in the Quest Help.

And for making a monster attack you every five seconds, use a timer.

Xlithan posted 19-06-2002 22:11 BST          
ok cool. EXP = experience btw.
Computer Whizz posted 19-06-2002 23:18 BST          
Right,

Experience points could be a random number generate by adding together properties held by the monsters-
ie:
One monster has the property "xp=300"
another would be "xp=200"
By adding these together (getting 500) and having a 10% (50) range for the xp gained - meaning you have a random number picked from "500-25 to 500+25" (5% below 500, 5% above 500 giving 10% range....ok?).
Now this is personally how I will deal with it, having a display/numeric variable.

For random no. of monsters use a random number generated from 1 to 5. For a random "type" of monsters do the same but have one number related to a type of monster, move/clone a "monster" object into the "arena" and give it that type (that's quite nifty - just thought of that!).

For gold do that same as EXP (xp in my game).

I won't go any further since I'm giving away core material to all those battle system developers out there : )

Computer Whizz

Xlithan posted 20-06-2002 23:27 BST          
EXCELENT! Thanks.