Ask a simple question, get a simple answer
Re: Ask a simple question, get a simple answer
If you're looking for something that straight forward, and hardcoded, just use a floor_trigger at the x,y you want it to happen at with disableSelf checked and attach that trigger to a script.
Re: Ask a simple question, get a simple answer
When defining/cloning custom objects, is there a way to give a Weapon the "equipmentitem" component and have it actually work? As an example:
This makes the stat bonuses show up on the weapon description, but they don't actually affect the character when equipped. Is there a workaround for this or am I just forgetting something?
Code: Select all
cloneObject{
name = 'ricard_rapier',
baseObject = 'rapier',
components = {
{
class = "Item",
uiName = "Ricard's Rapier",
description = "Test.",
},
{
class = "EquipmentItem",
dexterity = 2,
energy = 20,
},
}
}
Re: Ask a simple question, get a simple answer
You need to add slot = 1 to the EquipmentItem component.
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
Is there a chart of the slots somewhere?
Re: Ask a simple question, get a simple answer
Credit: Sutekhblob wrote:Is there a chart of the slots somewhere?
Re: Ask a simple question, get a simple answer
Oh, thank you both.
- Ciccipicci
- Posts: 154
- Joined: Mon Oct 08, 2012 12:55 am
Re: Ask a simple question, get a simple answer
Someone can make an earthquake script that works in Log2? The Log1 one doesn't work.
Re: Ask a simple question, get a simple answer
for shaking the camera useCiccipicci wrote:Someone can make an earthquake script that works in Log2? The Log1 one doesn't work.
function shake()
party.party:shakeCamera(0.05, 4, 0.5) -- first number is how much is the shake, second is lenght
end
however I did not found sound for earthquake, so probably use the old one from Log1. Also I am missing the particle effect for dust
- TheLastOrder
- Posts: 104
- Joined: Wed Oct 17, 2012 1:56 am
Re: Ask a simple question, get a simple answer
What is "Trigger on Start" for in the timers?
It seems not to be having any effect, either enabled or disabled...
The timers start running anyways...
It seems not to be having any effect, either enabled or disabled...
The timers start running anyways...
Re: Ask a simple question, get a simple answer
It'll trigger the connector when it starts (0.0) and at your timerInterval (like normal).