Page 4 of 7

Re: Possible game idea and question

Posted: March 27th, 2010, 4:51 pm
by arcones
...... :o :shock:

Re: Possible game idea and question

Posted: March 27th, 2010, 8:38 pm
by GR1M
Sick, it makes me think of a really hard script for him to make :)

Re: Possible game idea and question

Posted: March 27th, 2010, 8:53 pm
by Venima
go ahead. If it can be scripted, I can script it.

Re: Possible game idea and question

Posted: March 27th, 2010, 9:19 pm
by GR1M
Ok here we go, let's say I want a random monster respawn time and location, after you kill it.

Re: Possible game idea and question

Posted: March 27th, 2010, 9:25 pm
by Venima
I think I'd need to change some of the src files to do that, either way I don't know how to do respawns.

Re: Possible game idea and question

Posted: March 27th, 2010, 9:57 pm
by GR1M
OK, what about monster drops?

Re: Possible game idea and question

Posted: March 28th, 2010, 5:39 am
by Venima
Well I could come up with the code to randomize what they drop, but I couldn't get a monster to drop something (I'm not so good on rpg mode). Unless of course the code is as simple as adding spawn_item when killing the creature in the base script.

I'll cut you a deal, if you tell me a list of items the monster might drop (and how common they are to be dropped) I'll write you the code for that.

Re: Possible game idea and question

Posted: March 28th, 2010, 10:28 am
by GR1M
Ok, the Rock Golem. I want him to drop five gold coins, earth essence, Bronze ore, Iron ore and Adamantite ore. The gold and earth essence being normal drops and the ores maybe 1-10 kills.

Re: Possible game idea and question

Posted: March 28th, 2010, 10:53 am
by Leo_V117
Yeah, That. :lol:

Re: Possible game idea and question

Posted: March 28th, 2010, 12:09 pm
by Venima
I decided to set up the ore so that 1 in 50 spawns adamantite, if you don't get adamantite then 1 in 10 spawns iron, if you don't get iron then 1 in 4 spawns bronze.

Put this code in with when the monster dies. Beyond this all you need to do is write what the spawns are. But as I said, I'm not so good with RPG mode.

Code: Select all

spawn_goldsack_5
spawn_essence_earth
if (= (rnd 50) 0) [spawn_ore_adamantite] [
   if (= (rnd 10) 0) [spawn_ore_iron] [
      if (= (rnd 4) 0) [spawn_ore_bronze] []
   ]
]