Jump to content

Respawning


alscarface

Recommended Posts

Sorry to bother you guys but i am a newbie.

I have made a location with a prison in it.

My idea is to put various monsters in the prison cells , kill them and then when i leave the dungeon they respawn , say after 24 hours. I want them to match my current level each time. Anyone got an idea for a script?

Any help is much appreciated.

Link to comment
Share on other sites

By using the onload, you could do it.

You need to know the OnLoad block, and how the gametime (and days) work.

 

Then put in a leveled list of creatures. I think it's possible, but I'm not quite sure. Otherwise, you would have to put in a bunch of IFs. :)

Link to comment
Share on other sites

Prolly 72 hours. (In-game hours :))

 

Here's an example-script

short respawn

OnLoad
if (GetGameDay >= respawn)
"bob1".dosomething
"bob2".dosomething
"bob3".dosomething
"bob4".dosomething
"bob5".dosomething
set respawn to GetGameDay +1
endif
end

Put it on the door :)

 

Oh, replace the dosomething with the healing effect you wanted.

You might want to heal and disable the monsters when they die.

And replace the GetGameDay to the right function :)

God, this was a lazy script -- sorry.

Link to comment
Share on other sites

Prolly 72 hours. (In-game hours :))

 

Here's an example-script

short respawn

OnLoad
if (GetGameDay >= respawn)
"bob1".dosomething
"bob2".dosomething
"bob3".dosomething
"bob4".dosomething
"bob5".dosomething
set respawn to GetGameDay +1
endif
end

Put it on the door :)

 

Oh, replace the dosomething with the healing effect you wanted.

You might want to heal and disable the monsters when they die.

And replace the GetGameDay to the right function :)

God, this was a lazy script -- sorry.

 

If you don't mind having to wait 72 hours, you can leave all the scripting behind and tick the respawn box for every creature, like agent0002 said. Much easier ;) But if you really want 24 hours you could use GBHis his (GBHis his his?) script.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...