Page 103 of 374

Re: Ask a simple question, get a simple answer

Posted: Sun Nov 29, 2015 4:51 pm
by Skuggasveinn
AndakRainor wrote:
TimerComponent:getTimerInterval(number)
What is the number parameter there ?
its the number for the interval that you give to your timers.
Image

The fact that the scripting reference says (number) is just to tell you that this get command will return a number, and not a string or a boolean etc.

Skuggasveinn.

Re: Ask a simple question, get a simple answer

Posted: Sun Nov 29, 2015 7:04 pm
by minmay
AndakRainor wrote:
TimerComponent:getTimerInterval(number)
What is the number parameter there ?
It's a mistake in the function. It should have no arguments, but instead it requires a number argument which is ignored. Any number works, it will always ignore the passed number and return the timer interval.

Re: Ask a simple question, get a simple answer

Posted: Sun Dec 06, 2015 6:07 pm
by AndakRainor
The "castle tiles" have a weird behavior, as castle walls height don't match the elevations of my map. I opened Isle of Nex to see if I missed something but so far I did not find anything that forces castle walls to align correctly with elevation... Any hint ?

solved : module height must be set to 4 for this tile set!

Re: Ask a simple question, get a simple answer

Posted: Thu Dec 10, 2015 7:41 pm
by zeltak
Any way to change equipmentItem's expRate tooltip? It always says 25% no matter what the actual value is.

Re: Ask a simple question, get a simple answer

Posted: Thu Dec 10, 2015 9:33 pm
by minmay
zeltak wrote:Any way to change equipmentItem's expRate tooltip? It always says 25% no matter what the actual value is.
Not possible, but you can report this as a bug and hope it gets fixed in the next version.

Re: Ask a simple question, get a simple answer

Posted: Thu Dec 10, 2015 11:46 pm
by zeltak
Thanks. I've reported it.

Onto a next question: how do I set wound conditions to a champion's item slots? For example: Champion:setCondition("RightHandWound") marks the champion's icon as wounded and says so in it's tooltip, but doesn't do anything to the actual item slot.

Re: Ask a simple question, get a simple answer

Posted: Fri Dec 11, 2015 1:00 am
by THOM
what do you expect it should do to the item slot?

Re: Ask a simple question, get a simple answer

Posted: Fri Dec 11, 2015 1:15 am
by zeltak
THOM wrote:what do you expect it should do to the item slot?
The normal thing the wound does, prevents the hand use when on hands, or health regen on chest etc.

Re: Ask a simple question, get a simple answer

Posted: Fri Dec 11, 2015 1:49 am
by Isaac
champion:setCondition("right_hand_wound")
champion:removeCondition("right_hand_wound")

Re: Ask a simple question, get a simple answer

Posted: Fri Dec 11, 2015 2:59 am
by zeltak
Thank you! I looked up conditions from Prozail's old post and didn't even consider different condition names.