[ASSETS] LOG 1 MONSTERS - Enhanced Edition

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
Prozail
Posts: 158
Joined: Mon Oct 27, 2014 3:36 pm

Re: [ASSETS] LOG 1 MONSTERS - Enhanced Edition

Post by Prozail »

hmm. i actually get that error in the editor aswell if the tentacle is on a different level. no solve yet though.

Seems to be that the TentacleBrain component is borked somehow, the TentacleHide component seems to be working, so we prob. just need to reinvent the brain-part from a normal BrainComponent.

Edit:
I've created a quick new brain for him. It needs an additional turnAttack. Just replace the TentacleBrain with theese two components, keep the rest.

Code: Select all

   {
      class = "Brain",
      name = "brain",
      sight = 2.5,
      allAroundSight = true,
	  onInit = function(self)
		self.go.brain:performAction("hide")
	  end,
	  onThink=function(self)
		if (Time:currentTime()-self.go.brain.partyLastSeen)>3.0 then
			self.go.brain:performAction("hide")
		else
			if self.go.brain.partyDiagonal then self.go.brain:wait(); return; end
			if self.go.brain.partyAhead then self.go.brain:meleeAttack(); return; end
			if self.go.brain.partyRight then self.go.brain:turnAttackRight(); return; end
			if self.go.brain.partyLeft then self.go.brain:turnAttackLeft(); return; end
			self.go.brain:turnAroundAttack()
			return
		end
	  end
   },
{
      class = "MonsterAttack",
      name = "turnAttack",
      sound = "tentacles_attack",
      impactSound = "tentacles_hit",
      accuracy = 15,
      cooldown = 2,
      attackPower = 20,
      animationSpeed = 1.1, 
      animations = { "attack", "attackBack", "attackLeft", "attackRight" },
      onDealDamage = function(self, champion, damage)
         if math.random() <= 0.2 then
            champion:setConditionValue("paralyzed", 10)
         end
      end,
   },
OGDA
Posts: 115
Joined: Tue Oct 28, 2014 5:07 pm

Re: [ASSETS] LOG 1 MONSTERS - Enhanced Edition

Post by OGDA »

Works perfect!
Thank you very much! :)
Grimfan
Posts: 369
Joined: Wed Jan 02, 2013 7:48 am

Re: [ASSETS] LOG 1 MONSTERS - Enhanced Edition

Post by Grimfan »

Question that should be easily answered here:

Is there a specific underwater component for monsters or is it listed as an immunity, trait or something similar?
User avatar
THOM
Posts: 1267
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

Re: [ASSETS] LOG 1 MONSTERS - Enhanced Edition

Post by THOM »

Well - with bthat new brain component the Tentacles behave odd. It attacks party from side even if the party is one square away. And it does not hide anymore. Normally it retreats down after beeing hit or if nothing happens for some secounds.
I prefer the old brain more. One could avoid the crash by spawning the monter just when the party is entering the level?
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
User avatar
Prozail
Posts: 158
Joined: Mon Oct 27, 2014 3:36 pm

Re: [ASSETS] LOG 1 MONSTERS - Enhanced Edition

Post by Prozail »

I threw togheter that brain fairly quickly yesterday, im sure theres alot of tweeks to be needed. I honestly can't remember exactly how it's supposed to behave, and i've only tested it in the center of a 3x3 room... It should retreat after 3 second if the party is no longer visible, so if youre 2 squares away that should happen.

I still have a hard time figuring out exacly all the quirks of the brain-component, and what triggers what... honestly it's a mess and we doo need an official reference...

The problem with spawning it is, that.. if it gets spawned, and saved, if the player leaves the level, saves and reloads it will still trigger the bug (tried it). Something in the init-script in the tentaclebrain tries to call a local script somehow, (that is a nil-pointer).

This might behave a bit better, it still won't back down when hit though.

Code: Select all

{
      class = "Brain",
      name = "brain",
      sight = 1.5,
      allAroundSight = true,
	  onInit = function(self)
		self.go.brain:performAction("hide")
	  end,
	  onThink=function(self)
		if (Time:currentTime()-self.go.brain.partyLastSeen)>3.0 then
			self.go.brain:performAction("hide")
		else
			if self.go.brain.partyAdjacent then
				if self.go.brain.partyDiagonal then self.go.brain:wait(); return; end
				if self.go.brain.partyAhead then self.go.brain:meleeAttack(); return; end
				if not self.go.brain:turnAttack() then self.go.brain:turnAroundAttack() end
			end
		end
	  end
   },
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: [ASSETS] LOG 1 MONSTERS - Enhanced Edition

Post by Drakkan »

can someboy pls bring back to live these originals spiders from Log1 ? I do not fear these new one :)
Breath from the unpromising waters.
Eye of the Atlantis
User avatar
Sutekh
Posts: 126
Joined: Sun Nov 25, 2012 9:58 am
Location: UK

Re: [ASSETS] LOG 1 MONSTERS - Enhanced Edition

Post by Sutekh »

Here you go, Drakkan. I hope it works ok, I haven't found any problems yet.

> Old Spider <
SpoilerShow
Image
Be afraid! :twisted:
Last edited by Sutekh on Mon Sep 05, 2016 10:34 pm, edited 1 time in total.
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: [ASSETS] LOG 1 MONSTERS - Enhanced Edition

Post by Drakkan »

Sutekh wrote:Here you go, Drakkan. I hope it works ok, I haven't found any problems yet.

> Old Spider <
SpoilerShow
Image
Be afraid! :twisted:
cool thanks ! I already converted some color variants, but this will save time.
Image
Breath from the unpromising waters.
Eye of the Atlantis
cameronC
Posts: 80
Joined: Wed Apr 11, 2012 10:54 pm

Re: [ASSETS] LOG 1 MONSTERS - Enhanced Edition

Post by cameronC »

aaaahhhh!!!!

Very nice!
Writer and sometimes artist of the very slightly acclaimed comic series Scrambled Circuits. A comic series about a robot written by a human.

Grimrock 2 socketSystem: viewtopic.php?f=22&t=8546 / Github
User avatar
Ciccipicci
Posts: 154
Joined: Mon Oct 08, 2012 12:55 am

Re: [ASSETS] LOG 1 MONSTERS - Enhanced Edition

Post by Ciccipicci »

Love the spider!

What old ones are perfectly working just now?
Post Reply

Return to “Mod Creation”