You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I apologize in advance if the question has been asked before, but I still couldn't figure it out. I have a monk's tokenbar module in which I want to put a line to track characters' spell points. And I want to make an item (mana potion) that would also automatically restore spell points when used. All I understood is that I need a formula through items somehow, but I don't have enough knowledge in the field of formulas to compose the right one.
I have dnd version 4.1.2, could you please tell me a specific formula for my tasks? Thanks in advance for your answer.
The text was updated successfully, but these errors were encountered:
sorry for the delay don't know monk tokenbar so well, but spellpoints is a regular item with "uses" like any other.
this macro will show in the browser console (F12) the spellpoints data of the selected token (select a token and run the macro)
constspellPointsItemID=actor.flags.dnd5espellpoints.item;console.log('spellPointsItemID',spellPointsItemID);letspellPointItem=actor.items.filter(i=>i.id==spellPointsItemID)[0];console.log('spellPointItem',spellPointItem);console.log('Item max uses:',spellPointItem.system.uses.max);console.log('Item current uses:',spellPointItem.system.uses.value);console.log('Item uses spent:',spellPointItem.system.uses.spent);
I think that in monks tokenbar the formula will be the same as for the item, that is, for the mana potion. In the potion, I tried to set up the item consumption in the consumption tab, and entered these formulas there that you suggested to me, but each time the foundry gave the line "item not found". Please tell me what I'm doing wrong? :(
Hi, I apologize in advance if the question has been asked before, but I still couldn't figure it out. I have a monk's tokenbar module in which I want to put a line to track characters' spell points. And I want to make an item (mana potion) that would also automatically restore spell points when used. All I understood is that I need a formula through items somehow, but I don't have enough knowledge in the field of formulas to compose the right one.
I have dnd version 4.1.2, could you please tell me a specific formula for my tasks? Thanks in advance for your answer.
The text was updated successfully, but these errors were encountered: