Ask a simple question, get a simple answer
- zimberzimber
- Posts: 432
- Joined: Fri Feb 08, 2013 8:06 pm
Re: Ask a simple question, get a simple answer
1) Items can only have one attack, and secondary (aka power) attack
2) You must add this in the item component - secondaryAttack = "nameOfTheSecondaryAttack",
3) Not sure what do you need with "--WTF GOES HERE"
4) "if monster = "all the monsters i want" (i hope there's an easier way lol)"
You can give those specific monsters a trait in their definition, and then check if they have that trait when the effect should proc.
2) You must add this in the item component - secondaryAttack = "nameOfTheSecondaryAttack",
3) Not sure what do you need with "--WTF GOES HERE"
4) "if monster = "all the monsters i want" (i hope there's an easier way lol)"
You can give those specific monsters a trait in their definition, and then check if they have that trait when the effect should proc.
My asset pack [v1.10]
Features a bit of everything!
Features a bit of everything!
Re: Ask a simple question, get a simple answer
secondaryAction, not secondaryAttack
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.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
- Mysterious
- Posts: 226
- Joined: Wed Nov 06, 2013 8:31 am
Re: Ask a simple question, get a simple answer
RE: Animation Convertor.
Hi all.
I remember that somewhere in this forum there is a convertor to convert animations. I have a animation from LOG 1 and need to convert it to LOG 2. I remember you open the program and direct it to the animation and it converts it no worries at all.
Ty for any help.
EDIT:
I used GrimFBX. I dragged the ani file onto GrimFBX to convert and it does not work. The Editor gives me a error:
Invalid file_conversion (expected v2 got v1):
Ok so I guess I need to convert to v2 and I really cant rememeber what to do. It was not the file for Blender though, that much I do rememeber.
Hi all.
I remember that somewhere in this forum there is a convertor to convert animations. I have a animation from LOG 1 and need to convert it to LOG 2. I remember you open the program and direct it to the animation and it converts it no worries at all.
Ty for any help.
EDIT:
I used GrimFBX. I dragged the ani file onto GrimFBX to convert and it does not work. The Editor gives me a error:
Invalid file_conversion (expected v2 got v1):
Ok so I guess I need to convert to v2 and I really cant rememeber what to do. It was not the file for Blender though, that much I do rememeber.
Re: Ask a simple question, get a simple answer
It was here, but since it was on Dropbox it's gone now. You'd want to write a new converter anyway (or use the Blender plugin), however, so you can take advantage of Grimrock 2 animations' support for constant node location/rotation/scale (= smaller file size). Maybe I'll do that myself, it'd be really fast.Mysterious wrote:I remember that somewhere in this forum there is a convertor to convert animations. I have a animation from LOG 1 and need to convert it to LOG 2. I remember you open the program and direct it to the animation and it converts it no worries at all.
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.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Re: Ask a simple question, get a simple answer
...try this one to convert animations (not sure if it's LoG>LoG2 or LoG2>LoG):
GrimAnimConverter.exe inputfile [outputfile]
Tool is here.
GrimAnimConverter.exe inputfile [outputfile]
Tool is here.
I'm the Gate I'm the Key.
Dawn of Lore
Dawn of Lore
Re: Ask a simple question, get a simple answer
I have a question about texture offset. In the original asset pack there are two models:
- dungeon_wall_01
- dungeon_wall_02
the only difference I found between them is that the offset of the wall texture is shifted to the left (or right... you can see that the moss pattern repeats itself, but not in the same place). Also there is only one dungeon_wall_01 material definition.
how do you accomplish this offset ---- is this done in the grimrock model toolkit?
- dungeon_wall_01
- dungeon_wall_02
the only difference I found between them is that the offset of the wall texture is shifted to the left (or right... you can see that the moss pattern repeats itself, but not in the same place). Also there is only one dungeon_wall_01 material definition.
how do you accomplish this offset ---- is this done in the grimrock model toolkit?
Re: Ask a simple question, get a simple answer
https://en.wikipedia.org/wiki/UV_mappingkelly1111 wrote:I have a question about texture offset. In the original asset pack there are two models:
- dungeon_wall_01
- dungeon_wall_02
the only difference I found between them is that the offset of the wall texture is shifted to the left (or right... you can see that the moss pattern repeats itself, but not in the same place). Also there is only one dungeon_wall_01 material definition.
how do you accomplish this offset ---- is this done in the grimrock model toolkit?
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.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
- Mysterious
- Posts: 226
- Joined: Wed Nov 06, 2013 8:31 am
Re: Ask a simple question, get a simple answer
Thank you.
I have found the convertor I was looking for on a old hard drive its the same one Leki recommended. Sorry for the inconvenience guys. I knew I had it somewhere but I thought use might have it.
I have found the convertor I was looking for on a old hard drive its the same one Leki recommended. Sorry for the inconvenience guys. I knew I had it somewhere but I thought use might have it.
Re: Ask a simple question, get a simple answer
Is it true, that locks can just be triggered once???
I have a beach nexus lock and after using a key at it, it seems that I cannot use it a second time. And I can reproduce that behaviour with other locks, too.
If it is really true: is there a way to reactivate them then?
I have a beach nexus lock and after using a key at it, it seems that I cannot use it a second time. And I can reproduce that behaviour with other locks, too.
If it is really true: is there a way to reactivate them then?
Re: Ask a simple question, get a simple answer
When a LockComponent is activated it gets disabled. You can re-enable it to allow it to be used again. Example:
Code: Select all
-- The coinslot consumes one coin with each click, decrementing coinsNeeded by 1
-- each time, until it reaches 0. Connectors added to the lock will trigger
-- every time a coin is inserted. Connectors added to coinsNeeded will trigger
-- only when all of the required coins have been inserted. Once coinsNeeded
-- reaches 0, additional coins will not be consumed.
-- If you wish for the lock to consume an infinite number of coins, set the
-- coinsNeeded value to a negative number.
defineObject{
name = "dm_lock_coinslot",
baseObject = "lock",
components = {
{
class = "Model",
model = "mod_assets/dmcsb_pack/models/env/dm_coinslot.fbx",
offset = vec(0, 1.74, 0),
staticShadow = true,
},
{
class = "Clickable",
offset = vec(0, 1.74, 0),
size = vec(0.4, 0.4, 0.4),
onClick = function(self)
if self.go.lock:isEnabled() and getMouseItem() and getMouseItem().go.name == self.go.lock:getOpenedBy() then
GameMode.dm_tempLockItem = getMouseItem()
end
end,
},
{
class = "Lock",
sound = "key_lock",
openedBy = "dm_coin_gold",
onActivate = function(self)
local item = GameMode.dm_tempLockItem
if item:getStackSize() > 1 then
item:setStackSize(item:getStackSize()-1)
setMouseItem(item)
end
GameMode.dm_tempLockItem = nil
self:enable()
self.go.coinsNeeded:decrement()
end,
},
{
class = "Counter",
name = "coinsNeeded",
value = 1,
onActivate = function(self)
self.go.lock:disable()
end,
},
},
tags = {"dm","dm_user"},
}
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.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.