Search found 16 matches

by PedroMoniz
Thu Feb 02, 2017 11:48 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3990
Views: 3460019

Re: Ask a simple question, get a simple answer

thank you, A question, is it possible to get the traits? There is an add and a has function, but is there any work around to find the traits? Do you mean a list of all traits possessed by a champion or item? yes, at the moment I have a work around but having a getTraits or a way to access the trait...
by PedroMoniz
Thu Feb 02, 2017 8:12 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3990
Views: 3460019

Re: Ask a simple question, get a simple answer

thank you,

A question, is it possible to get the traits? There is an add and a has function, but is there any work around to find the traits?
by PedroMoniz
Thu Feb 02, 2017 2:25 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3990
Views: 3460019

Re: Ask a simple question, get a simple answer

Thank you, did not realise the components worked like that. Does make a lot of sense and it is helpfull. However, i still have one problem. cloneObject{ name = "Potion_Energy", baseObject = "potion_energy", components = { { class = "UsableItem", onUseItem = function(ite...
by PedroMoniz
Thu Feb 02, 2017 1:34 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3990
Views: 3460019

Re: Ask a simple question, get a simple answer

Hello, First I want to say thanks for the ui question, I was looking for the graphics component on the class list and not objects and classes category. Second, I have a question regarding something I already asked about the traits because it has come up again. Because I have a usableItem and not an ...
by PedroMoniz
Wed Feb 01, 2017 7:41 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3990
Views: 3460019

Re: Ask a simple question, get a simple answer

Hello, I am creating a UI component and I already have the example working. I found the graphicsContext reference and I am having some problems. When I print my context.width for example, it gives the value of 0 when the game window is stretched until the midle of the editor and the height gives 0 b...
by PedroMoniz
Tue Jan 31, 2017 6:07 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3990
Views: 3460019

Re: Ask a simple question, get a simple answer

I am just trying to add some identifiers to items. To allow me to check if cheese is food or check if a potion is good and a mage item without having to go throught many ifs. edit: I have found a way to do what I want by just putting my data on my functions directly. Since i have to create my clones...
by PedroMoniz
Tue Jan 31, 2017 5:15 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3990
Views: 3460019

Re: Ask a simple question, get a simple answer

Hello, I have a question regarding traits in usableItems I have traits working in normal items, but how can I add keywords to usableItems? Example would be: cloneObject{ name = "Potion_Energy", baseObject = "potion_energy", components = { { class = "UsableItem", uiName ...
by PedroMoniz
Mon Jan 30, 2017 3:40 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3990
Views: 3460019

Re: Ask a simple question, get a simple answer

Thank you,

did not see there are a usable item component.
by PedroMoniz
Mon Jan 30, 2017 2:29 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3990
Views: 3460019

Re: Ask a simple question, get a simple answer

Hello, another quick question. Consumable items when in hands are used via attack action which triggers the onAttackHook. So as long as I can identify the item, I can work with it and see if the character is eating or using a potion. But when the item is consumed in the inventory it does not trigger...
by PedroMoniz
Fri Jan 27, 2017 2:53 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3990
Views: 3460019

Re: Ask a simple question, get a simple answer

So I tested the item and I have the hook trigger everywhere but when I equip the item via portrait.

Since items in inventory count as equiped, any way to trigger the hook when we put it in the portrait?