Ask a simple question, get a simple answer

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
The cube
Posts: 94
Joined: Tue Apr 23, 2013 6:09 pm
Location: Barren Desert

Re: Ask a simple question, get a simple answer

Post by The cube »

Is it possible to add markers to the map by a script?
I found this from the scripting reference:
MapMarkerComponent (Component)
Adds a marker with text on the automap.

MapMarkerComponent:getText()
MapMarkerComponent:setText(string)
But it doesn't explain anything about how it is used, and my quick search from the forums offered no help.

Alternatively, is it possible to make your own version of the cursed compass?
The item definition for it had nothing special in it.
Never mind. You just have to place a map marker object.
User avatar
Isaac
Posts: 3185
Joined: Fri Mar 02, 2012 10:02 pm

Re: Ask a simple question, get a simple answer

Post by Isaac »

Modraneth wrote:its only that last thing and i finish my mod... this is making me crazy..
This is a basic overview of the CD command in the DOS prompt.
http://www.c3scripts.com/tutorials/msdos/cd.html

It should help with the esoteric usage. 8-)

If it doesn't help enough, youtube and google have many tutorials for basic DOS command usage.
You'll have to get the hang of it if you intend to use ffmpeg. It's a command-line tool.
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: Ask a simple question, get a simple answer

Post by Drakkan »

hi guys, please help. I spawn some item easily like this -
-- spawn("scroll_something",4,11,21,2,0,"i_need_destruct")

and now I need to destroy this item. I am using -- i_need_destruct:destroy()
If it is somewhere on the map its ok, it dissapears. However if the item is in any champion inventory (or container) game crash down (no error). How can I destroy such a spawned item no matter where it is ? Do i need somehow iterrate champion inventories first ?
Breath from the unpromising waters.
Eye of the Atlantis
User avatar
Isaac
Posts: 3185
Joined: Fri Mar 02, 2012 10:02 pm

Re: Ask a simple question, get a simple answer

Post by Isaac »

Drakkan wrote:Do i need somehow iterrate champion inventories first ?
I believe so, yes.
User avatar
Modraneth
Posts: 95
Joined: Thu Aug 27, 2015 8:27 pm
Location: Portugal

Re: Ask a simple question, get a simple answer

Post by Modraneth »

hi
someone can tell me what the program we need to create a new monster?
i want to give a shoot, maybe i can create something good.
and if u have videos i want to watch them.
Mods:
Isle of Gunger
The Bloody Path Dropped
A World of Power work in progress
User avatar
AndakRainor
Posts: 674
Joined: Thu Nov 20, 2014 5:18 pm

Re: Ask a simple question, get a simple answer

Post by AndakRainor »

Does the bonus damage of skills similar to "heavy weapons" apply on the base damage of the weapon only, or also on the added damage from strength or dexterity ?
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: Ask a simple question, get a simple answer

Post by Drakkan »

Modraneth wrote:hi
someone can tell me what the program we need to create a new monster?
i want to give a shoot, maybe i can create something good.
and if u have videos i want to watch them.
viewtopic.php?f=22&t=7055
part 12 and 13 you want to check definitely
Breath from the unpromising waters.
Eye of the Atlantis
minmay
Posts: 2780
Joined: Mon Sep 23, 2013 2:24 am

Re: Ask a simple question, get a simple answer

Post by minmay »

AndakRainor wrote:Does the bonus damage of skills similar to "heavy weapons" apply on the base damage of the weapon only, or also on the added damage from strength or dexterity ?
base, same for the dual wielding penalty (which is 25% of the reason light weapons are so much better than heavy weapons in this game, the other 75% being backstabbing)
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
Zo Kath Ra
Posts: 937
Joined: Sat Apr 21, 2012 9:57 am
Location: Germany

Re: Ask a simple question, get a simple answer

Post by Zo Kath Ra »

Are there any websites where you can get free 3d models of fantasy weapons?
I realize that they'd have to be converted into LoG2's format, and that I'd have to make 2d gui sprites by taking screenshots of the weapons and editing them until they look good.
User avatar
Eleven Warrior
Posts: 745
Joined: Thu Apr 18, 2013 2:32 pm
Location: Australia

Re: Ask a simple question, get a simple answer

Post by Eleven Warrior »

I know I can add these two hooks to a item(s) when thrown.

1 -

Code: Select all

	onThrowAttackHitMonster = function(self, monster)
		item_counter.counter:decrement()
		--monster:setCondition("sleep", 20)
			print("yes")
    end,
2 -

Code: Select all

	class = "UsableItem",
		onUseItem = function(self, champion)
				item_counter.counter:decrement()
end,

Is there a way to add a hook to the item(s) when the player throws the Item at walls, door, object etc.. and the item is destroyed when it hits these objects, then the item.counter.counter:decrements ??
Post Reply