Page 23 of 400

Re: Ask a simple question, get a simple answer

Posted: Mon Nov 24, 2014 2:21 am
by NutJob
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

Posted: Mon Nov 24, 2014 11:32 am
by Matlock19
When defining/cloning custom objects, is there a way to give a Weapon the "equipmentitem" component and have it actually work? As an example:

Code: Select all

cloneObject{ 
     name = 'ricard_rapier',
	 baseObject = 'rapier',
	 components = {
	   { 
	     class = "Item",
		 uiName = "Ricard's Rapier",
		 description = "Test.",
	   },
	   {
	     class = "EquipmentItem",
		 dexterity = 2,
		 energy = 20,
	   },
	}
}
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?

Re: Ask a simple question, get a simple answer

Posted: Mon Nov 24, 2014 6:13 pm
by minmay
You need to add slot = 1 to the EquipmentItem component.

Re: Ask a simple question, get a simple answer

Posted: Mon Nov 24, 2014 7:05 pm
by blob
Is there a chart of the slots somewhere?

Re: Ask a simple question, get a simple answer

Posted: Mon Nov 24, 2014 8:21 pm
by Batty
blob wrote:Is there a chart of the slots somewhere?
Credit: Sutekh

Re: Ask a simple question, get a simple answer

Posted: Thu Nov 27, 2014 10:15 am
by blob
Oh, thank you both. :)

Re: Ask a simple question, get a simple answer

Posted: Thu Nov 27, 2014 5:22 pm
by Ciccipicci
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

Posted: Thu Nov 27, 2014 5:36 pm
by Drakkan
Ciccipicci wrote:Someone can make an earthquake script that works in Log2? The Log1 one doesn't work.
for shaking the camera use

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

Re: Ask a simple question, get a simple answer

Posted: Fri Nov 28, 2014 8:37 pm
by TheLastOrder
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...

Re: Ask a simple question, get a simple answer

Posted: Fri Nov 28, 2014 8:46 pm
by NutJob
It'll trigger the connector when it starts (0.0) and at your timerInterval (like normal).