blitz4 Posted February 16, 2013 Share Posted February 16, 2013 (edited) It seems so simple to always wake the monsters at day 1 and keep them awake, but nomatter what I change in the scripts, nothing seems to take effect. What would I do to spider.lua to make this happen? Edited March 20, 2013 by WrathOf Link to comment Share on other sites More sharing options...
JoeW Posted February 16, 2013 Share Posted February 16, 2013 Please remember that all mods are to be used at your own risk. Klei will not be able to help you with any issues you may have with your game as a result of using a mod. Please remember that player made mods in Don't Starve are new and could cause issues with your current saved games. It is advised that you do not install game mods unless you are completely comfortable doing so. Link to comment Share on other sites More sharing options...
blitz4 Posted February 16, 2013 Author Share Posted February 16, 2013 thanks some guy, but i just want spiders to roam the day as they do the night. any hup would be mucho appreciated Link to comment Share on other sites More sharing options...
Toaster Fu Posted February 16, 2013 Share Posted February 16, 2013 thanks some guy, but i just want spiders to roam the day as they do the night. any hup would be mucho appreciatedThat's just an automated message. Link to comment Share on other sites More sharing options...
clockwork Posted February 16, 2013 Share Posted February 16, 2013 thanks some guy, but i just want spiders to roam the day as they do the night. any hup would be mucho appreciatedA really quick and dirty way to do this is to comment out the GoHomeAction in spiderbrain.lua, like so: spiderbrain.luafunction SpiderBrain:OnStart() local clock = TheGlobalInstance.components.clock local daynode = WhileNode(function() return clock and clock:IsDay() end, "IsDay", PriorityNode { --DoAction(self.inst, function() return GoHomeAction(self.inst) end ), } )This will make any spiders that come out of their nest stay active during daytime. Link to comment Share on other sites More sharing options...
blitz4 Posted February 16, 2013 Author Share Posted February 16, 2013 A really quick and dirty way to do this is to comment out the GoHomeAction in spiderbrain.lua, like so: spiderbrain.luafunction SpiderBrain:OnStart() local clock = TheGlobalInstance.components.clock local daynode = WhileNode(function() return clock and clock:IsDay() end, "IsDay", PriorityNode { --DoAction(self.inst, function() return GoHomeAction(self.inst) end ), } )This will make any spiders that come out of their nest stay active during daytime.Awesome thanks! So you get 1 day to prep, then even a strawroll won't save you. Now just need Sliver's mod to add 4x the amount of spider dens to the world, not to lag anymore then I'll be so so so happy. Link to comment Share on other sites More sharing options...
clockwork Posted February 17, 2013 Share Posted February 17, 2013 (edited) Well, just a quick correction. It would actually be better to comment out the call to daynode. local root = PriorityNode( { WhileNode( function() return self.inst.components.health.takingfiredamage end, "OnFire", Panic(self.inst)), AttackWall(self.inst), ChaseAndAttack(self.inst, MAX_CHASE_TIME), DoAction(self.inst, function() return EatFoodAction(self.inst) end ), Follow(self.inst, function() return self.inst.components.follower.leader end, MIN_FOLLOW_DIST, TARGET_FOLLOW_DIST, MAX_FOLLOW_DIST), [B] --daynode,[/B] Wander(self.inst, function() return self.inst.components.knownlocations:GetLocation("home") end, MAX_WANDER_DIST) },1) I don't think it will really matter either way, but since it sounds like you're planning to have a lot of spiders I would do it this way. Edited February 17, 2013 by clockwork Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now