[Release] Monster spawn void

02/20/2010 02:34 xScott#16
haha this is awesome, can make a legit version of demon boxes with this ;o
02/20/2010 03:20 hunterman01#17
Quote:
Originally Posted by xScott View Post
haha this is awesome, can make a legit version of demon boxes with this ;o
Thx for the idea
02/20/2010 03:47 xScott#18
Quote:
Originally Posted by hunterman01 View Post
Thx for the idea
LOL :] i got quite a few ideas with this, great release ;o
03/13/2010 06:54 lukejonesy#19
so its possible to make a code to spawn the mob when you right click on a demonbox? very nice!!

thanks
03/13/2010 22:12 pro4never#20
Quote:
Originally Posted by lukejonesy View Post
so its possible to make a code to spawn the mob when you right click on a demonbox? very nice!!

thanks
Yes, you can spawn any monster anywhere in the game whenever you would like from ANYTHING...

Items, conditions (such as player has x amount of ko's on a certain map so it spawns a boss or w/e), command, npcs, etc.

All you have to do is code the item or w/e you wanna have spawn a monster call the function with the desired input (mob/name/location/etc)
03/16/2010 18:41 Viscount S#21
What's a "void" from your perspective?
03/17/2010 03:16 pro4never#22
Quote:
Originally Posted by Viscount S View Post
What's a "void" from your perspective?
Ummmm not quite sure how this is in any way on topic... but w/e.


A void is simply a function that has no return value. A function is essentially a pre-determined set of instructions and operations to be run based on various inputs. When you describe it as a "void" (I'm aware that's not REALLY the correct terminology but w/e, it's what ppl on here tend to call them), it has no return value. You can also use all other normal return values such as ints, bools and strings.... in this case it doesn't return anything to where it was called from but instead just runs it's actions (in this case, spawning monsters into the game wherever you want them)

Hopefully my explanation isn't too far off. I never had any formal education with C# so I'm sure I got some terms wrong.
03/17/2010 03:33 Viscount S#23
Quote:
Originally Posted by pro4never View Post
Ummmm not quite sure how this is in any way on topic... but w/e.


A void is simply a function that has no return value. A function is essentially a pre-determined set of instructions and operations to be run based on various inputs. When you describe it as a "void" (I'm aware that's not REALLY the correct terminology but w/e, it's what ppl on here tend to call them), it has no return value. You can also use all other normal return values such as ints, bools and strings.... in this case it doesn't return anything to where it was called from but instead just runs it's actions (in this case, spawning monsters into the game wherever you want them)

Hopefully my explanation isn't too far off. I never had any formal education with C# so I'm sure I got some terms wrong.
Thanks for clearing that up for me. It's a method, and void is a return type. I've never heard of a method with a return type of void being called simply "a void." Based on your explanation, you clearly know what they are, this was just a case of my misunderstanding your terminology. Sorry for my misplaced post.