Are beacon furnaces hardcoded to make essences?

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
GoldenShadowGS
Posts: 168
Joined: Thu Oct 30, 2014 1:56 am

Are beacon furnaces hardcoded to make essences?

Post by GoldenShadowGS »

I want to change them to make something else. I can't find out how they work with the asset pack though.
User avatar
THOM
Posts: 1280
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

Re: Are beacon furnaces hardcoded to make essences?

Post by THOM »

Do you had a look in the original map:

viewtopic.php?f=22&t=8404&hilit=original+map
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
GoldenShadowGS
Posts: 168
Joined: Thu Oct 30, 2014 1:56 am

Re: Are beacon furnaces hardcoded to make essences?

Post by GoldenShadowGS »

I did, and can not find a script that is responsible for their action. You can place a simple beacon furnace in a new map and spawn 4 power gems near it and it will create an essence of fire without doing anything else.
Batty
Posts: 509
Joined: Sun Apr 15, 2012 7:04 pm

Re: Are beacon furnaces hardcoded to make essences?

Post by Batty »

The

Code: Select all

{
   class = "BeaconFurnaceController",
   name = "controller",
},
makes it work. My guess is you'd have to define a new altar object without the BeaconFurnaceController but add a generic ControllerComponent. Keep all the other classes in the definition. From a script, you could activate the particle systems using the controller when 4 gems (or ?) are inserted on the altar and then spawn what you want it to create.

Edit: also, use playsound() to play the 'beacon_furnace_activate' sound.
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: Are beacon furnaces hardcoded to make essences?

Post by minmay »

If you define an object as "essence_[string]" and enter "[string]" in the essence field of the controller in the editor, it will make that object. So you can, say, define an "essence_cow" item and type "cow" for the element. You could even give an onInit hook to essence_cow that spawns another arbitrary object and destroys the essence_cow, if you really want to make something that doesn't start with "essence_".
I don't think you can isolate the gems/particle animation from BeaconFurnaceController, and recreating the fancy animation by hand without having the original code sounds very difficult.
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