![]() |
![]() ![]() ![]() ![]() ![]()
|
Author | Topic: arena monsters |
Xlithan |
![]() 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 |
![]() 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 |
![]() 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 |
![]() ok cool. EXP = experience btw. |
Computer Whizz |
![]() Right, Experience points could be a random number generate by adding together properties held by the monsters- 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 |
![]() EXCELENT! Thanks. |