alscarface Posted August 10, 2006 Share Posted August 10, 2006 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 More sharing options...
GBHis Posted August 10, 2006 Share Posted August 10, 2006 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 More sharing options...
agent0002 Posted August 16, 2006 Share Posted August 16, 2006 i can't help you with your problem, but i was just curious. do you know how long it takes for a creature to respawn normally, like when you just tick the respawn option in the construction set when editing the creature? Link to comment Share on other sites More sharing options...
GBHis Posted August 16, 2006 Share Posted August 16, 2006 Prolly 72 hours. (In-game hours :)) Here's an example-scriptshort respawn OnLoad if (GetGameDay >= respawn) "bob1".dosomething "bob2".dosomething "bob3".dosomething "bob4".dosomething "bob5".dosomething set respawn to GetGameDay +1 endif endPut 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 More sharing options...
Povuholo Posted August 16, 2006 Share Posted August 16, 2006 Prolly 72 hours. (In-game hours :)) Here's an example-scriptshort respawn OnLoad if (GetGameDay >= respawn) "bob1".dosomething "bob2".dosomething "bob3".dosomething "bob4".dosomething "bob5".dosomething set respawn to GetGameDay +1 endif endPut 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 More sharing options...
GBHis Posted August 17, 2006 Share Posted August 17, 2006 As I said before, this is really lazy and probably won't work in-game without a little modification. It displays the logic, though. Gee-biz (like in showbiz) Link to comment Share on other sites More sharing options...
SerpentofShadow Posted August 17, 2006 Share Posted August 17, 2006 Gee-biz (like in showbiz) Here I think of you as G. B. His. :P Oh and yes, the respawn is 3 ingame days. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.