[Open / Signup] One Room Round Robin 3 - Calling All Modders

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!
User avatar
Isaac
Posts: 3185
Joined: Fri Mar 02, 2012 10:02 pm

Re: [Open / Signup] One Room Round Robin 3 - Calling All Mod

Post by Isaac »

zimberzimber wrote:
Isaac wrote:I hope I'm not the last; there is an awful lot of empty space; and in places where there shouldn't be.
What do you mean by empty space?
Gameplay or vision wise?
I haven't been through the whole thing yet, so for the moment, visually. Gameplay-wise some of the rooms I've played are (or at least seem to be) pretty good, but there are holes in the map; same as last time.
**If you meant vision, in the design direction sense... That too maybe.
User avatar
zimberzimber
Posts: 432
Joined: Fri Feb 08, 2013 8:06 pm

Re: [Open / Signup] One Room Round Robin 3 - Calling All Mod

Post by zimberzimber »

Mainly because I don't have a solid plan for a room. I have a concept, but don't see it working out because of Grimrocks first person view.


@Isaac I meant visually, just forgot the word. I may be able to help with this though.
My asset pack [v1.10]
Features a bit of everything! :D
minmay
Posts: 2780
Joined: Mon Sep 23, 2013 2:24 am

Re: [Open / Signup] One Room Round Robin 3 - Calling All Mod

Post by minmay »

zimberzimber wrote:Mainly because I don't have a solid plan for a room. I have a concept, but don't see it working out because of Grimrocks first person view.
CameraComponent. One of my rooms has a top-down view.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
User avatar
Isaac
Posts: 3185
Joined: Fri Mar 02, 2012 10:02 pm

Re: [Open / Signup] One Room Round Robin 3 - Calling All Mod

Post by Isaac »

It's a very neat room too. 8-)
(I played quite a bit of that one.)
User avatar
zimberzimber
Posts: 432
Joined: Fri Feb 08, 2013 8:06 pm

Re: [Open / Signup] One Room Round Robin 3 - Calling All Mod

Post by zimberzimber »

I'll have to see about it then. Right now I'm focused on my asset pack anyways.
My asset pack [v1.10]
Features a bit of everything! :D
kelly1111
Posts: 349
Joined: Sun Jan 20, 2013 6:28 pm

Re: [Open / Signup] One Room Round Robin 3 - Calling All Mod

Post by kelly1111 »

Looking forward to your asset pack update ... any spoilers?
User avatar
AndakRainor
Posts: 674
Joined: Thu Nov 20, 2014 5:18 pm

Re: [Open / Signup] One Room Round Robin 3 - Calling All Mod

Post by AndakRainor »

minmay wrote:Grant experience for all kills
In the base game the party only gains experience from a monster's death if they were the ones to deal the killing blow. Monsters killed by environmental hazards, telefragging, crushing, other monsters' projectiles, etc. do not award experience.
It is pretty easy in Grimrock 2 to make all monster deaths award experience instead, even environmental ones.
It's also easy to make experience be awarded to dead/petrified champions, if that is also desired.
I personally support this change quite strongly, it's not fun to lose xp, especially as a punishment for using the environment to your advantage.
I thought about this idea again recently, and would like to implement it. I see you have in mind an easy way to do it. So before I start playing with onDie events the wrong way, I would like to know how you would do it?

I would also like to add this system to my remake of Isle of Nex, in addition to changes I made to the experience curve and monsters scaling for the next version. Maybe it could fit in orrr3 too;
- Required experience to reach next level at current level n is now n*1000 for any integer n, with n>0.
- Monsters gain 5% damage, 5% health, and award 5% more experience per level above level 1.

So with those specific values, you could say that the required kills to reach the next level at level omega are 20 times the kills required to reach level 2. The original game requires 1000 times those kills. I am not sure my numbers are the best they could be, but so far in Isle of Nex, it is fine. I should test with a very very high level party to see if combat does not become stupidly easy or hard. Remember champions also scale with the classes changes I posted in a previous post. (Except the knight's damage output, it could need a fix)...

edit: also, is it possible to change experience farmers get from food?
User avatar
THOM
Posts: 1274
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

Re: [Open / Signup] One Room Round Robin 3 - Calling All Mod

Post by THOM »

I am still striktly against this modulation. As I said before: In my opinion I don't see why a party should gain XP if they are not involved in killing a certain monster. Or in case of crushing: kill it by a risk-free trick. (On my opinion it is already amazing that a champion gets XP if he/she wasn't involved in the combat.)

Question: Why do you want to have that?
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
User avatar
AndakRainor
Posts: 674
Joined: Thu Nov 20, 2014 5:18 pm

Re: [Open / Signup] One Room Round Robin 3 - Calling All Mod

Post by AndakRainor »

I understand why you don't want it, I did not remember your answer though! I thought it was frustrating when it happens by accident in a mod where experience/monsters are limited. Or when You made most of the damage but not the killing blow.
minmay
Posts: 2780
Joined: Mon Sep 23, 2013 2:24 am

Re: [Open / Signup] One Room Round Robin 3 - Calling All Mod

Post by minmay »

AndakRainor wrote:I thought about this idea again recently, and would like to implement it. I see you have in mind an easy way to do it. So before I start playing with onDie events the wrong way, I would like to know how you would do it?
Here is a quick, hacky method to apply it to an existing dungeon using only the user scripting interface (put it in your init file before defining any monsters):

Code: Select all

local awardXp = function(self)
	local rval = Config.monsterOnDieMap[self.go.name] and Config.monsterOnDieMap[self.go.name](self) or true
	if rval then
		local xp = Config.monsterExpMap[self.go.name]
		if xp then
			xp=math.floor(xp*1.1^(self:getLevel()-1))
			for i=1,4 do
				if party.party:getChampion(i):getEnabled() and not party.party:getChampion(i):hasTrait("farmer") then
					party.party:getChampion(i):gainExp(xp)
				end
			end
			self:showDamageText(string.format("+%d xp",xp),"0xffff88")
		end
		-- oh, while we're at it, fix the phantom flames bug
		if self.go.burning then self.go:removeComponent("burning") end
	end
	return rval
end
local orig_defineObject = defineObject
Config.monsterExpMap = {}
Config.monsterOnDieMap = {}
defineObject = function(def)
	if def.components then for _,c in ipairs(def.components) do
		if c.class == "Monster" then
			Config.monsterExpMap[def.name] = c.exp
			Config.monsterOnDieMap[def.name] = c.onDie
			c.onDie = awardXp
			c.exp = false -- removes the +xp text
		end
	end end
	orig_defineObject(def)
end
MonsterComponent:showDamageText() isn't quite the same as what is used internally to show xp values, though. Also, this method makes MonsterComponent:getExp() useless.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Post Reply