Editor Tutorials on YouTube - part 15 is out

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
Skuggasveinn
Posts: 562
Joined: Wed Sep 26, 2012 5:28 pm

Re: Editor Tutorials on YouTube

Post by Skuggasveinn »

Sometime stuff is just staring you in the face :lol:

If I use setMaxHealth and I use it before I connect the skeleton_commader to the bossfight entity, I have a correct bossfight health bar even if he only has 5 in health.
so setMaxHealth seems to change the base health and not just set the health to a value.

Code: Select all

function startBrothersBossFight()
	skeleton_commander_1.monster:setMaxHealth(5)                             
	boss_fight_brothers.bossfight:addMonster(skeleton_commander_1.monster)
	boss_fight_brothers.bossfight:activate()
end
Skuggasveinn.
Link to all my LoG 2 assets on Nexus.
Link to all my LoG 1 assets on Nexus.
User avatar
Mysterious
Posts: 226
Joined: Wed Nov 06, 2013 8:31 am

Re: Editor Tutorials on YouTube

Post by Mysterious »

Hi Skuggs again awesome video thxs, a great help it was :) With the set health max how do you add that into the code before the fight?
User avatar
SnowyOwl47
Posts: 148
Joined: Fri Sep 12, 2014 10:41 pm

Re: Editor Tutorials on YouTube

Post by SnowyOwl47 »

Mysterious wrote:Hi Skuggs again awesome video thxs, a great help it was :) With the set health max how do you add that into the code before the fight?
Use the floor_trigger that triggers the boss and have a script_entity that starts the boss before you make the boss start set the max health.
User avatar
Mysterious
Posts: 226
Joined: Wed Nov 06, 2013 8:31 am

Re: Editor Tutorials on YouTube

Post by Mysterious »

Hi snowy thxs for that :) With your boss start it works and it's cool any idea how to add a item to the boss eg:rock, the note you had works, not sure about other items thxs keep up the good work mate :)
dancodan
Posts: 19
Joined: Sun Apr 29, 2012 1:38 pm

Re: Editor Tutorials on YouTube

Post by dancodan »

Great work mate!

I have used you tutorial videos to learn how to use the editor.
I was having a hard time at first understanding the changes to the Grimrock 2 editor, but you made everything perfectly clear. Thanks a lot for your effort.
Please keep doing these, every bit helps a ton.

I am currently doing an adventure for my daughter, and I've used everthing you have taught us.
Are you confident with scripting to the point that you can tell us how to do a script that looks for a certain item in a chest or an alcove? For example: If the party puts a skeleton statue in an alcove, that could send a trigger to a counter. If all statues are placed correctly inside the alcoves it triggers a door (as in the main campain idol puzzle)

After reading the Mod Creation section on this forums it seems that scripting is the number one issue. But you made it look simple.
I would love to know more about basic scripting


Keep up the good work.


regards
Daniel
User avatar
Skuggasveinn
Posts: 562
Joined: Wed Sep 26, 2012 5:28 pm

Re: Editor Tutorials on YouTube

Post by Skuggasveinn »

dancodan wrote:Great work mate!
Thanks for the kind words.
I will try to make some more complex scripting stuff in the future, but until the scripting reference is released I don't wan't to be guessing or telling people to do something in the incorrect way.

But in the meantime Part 7 is out :D
In part 7 we create a simple lever puzzle that has 2 combinations, one for each door.
We create an Indiana Jones firetrap where the party removes an Item from an altar in triggers the trap
We explore some creative uses for the Bossfight entity where we use the bossfight health bar as a visual countdown until the firetrap will get sprung, and we watch the whole party burn ;)

Skuggasveinn.
Link to all my LoG 2 assets on Nexus.
Link to all my LoG 1 assets on Nexus.
User avatar
SnowyOwl47
Posts: 148
Joined: Fri Sep 12, 2014 10:41 pm

Re: Editor Tutorials on YouTube - part 7 is out

Post by SnowyOwl47 »

Nice Job, part 7 was cool but I already knew how to do it but you did give me an idea for stuff in my dungeon :D
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: Editor Tutorials on YouTube - part 7 is out

Post by cromcrom »

but I already knew how to do it
Sure, but you didn't make a video tut about it.
Anyways, thanks a lot Skuggasveinn.
A trip of a thousand leagues starts with a step.
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Editor Tutorials on YouTube - part 7 is out

Post by petri »

Great work Skuggasveinn! Thank you very much for making these videos!
User avatar
SnowyOwl47
Posts: 148
Joined: Fri Sep 12, 2014 10:41 pm

Re: Editor Tutorials on YouTube - part 7 is out

Post by SnowyOwl47 »

Can you make a video tutorial on how to have the dungeon editor backup your dungeon :lol: or at least have some kind of autosave :lol: I'm on mac and I just sold my windows right before this game was announced and so I'm using wine and the editor works fine but it crashes often
Post Reply