I'm in heavy development of my game, so I thought I wouldn't clutter the forums with so many questions. I hope this is better for you GIL.
1- How do you use formulas for durability of equipment instead of values? No matter what I tried, every time I go from a fixed value to a formula, it always returns 0.
2- Same thing with game variables attached to equipment. Doesn't work no matter what.
2) What exactly doesn't work? How are you trying to access or change them?
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I was trying to use a formula on the durability field of equipment and also on their game variables. I put an initial value in the box, and the initial value was never being used no matter what I did, so I thought the whole thing was broken.
Then I realized in the first node of the formula, you have to check "current value" as a starting value for it to take the initial value into account.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
On a related subject, I need to use "target equipment's current durability" and "target equipment maximum durability" in a formula, to do different things based on them. But I found no way to do that, unless I'm missing something?
So I thought I would add a game variable to the equipment, select it, store the equipment durability into the game variable, then do operations on it instead. But I found no way to store an equipment durability into a variable, looked at all the nodes in battle events. Any ideas?
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I have many very similar big battle events, with identical nodes except for small differences. So I thought I would just copy the events.asset, open them with notepad, find and replace all text I want to change, since they are just texts and should not cause any problems.
But when I do, Ork doesn't recognize the event anymore, and I cant open it, and every call nodes to that event I edited with Note Pad are set to none, so it doesn't work. I had to delete it and restore my backup.
So how would you approach this problem?
While you can edit them using text editors, it's risky to cause an error due to wrong changes, or the editor just changing the formatting somehow, so that Unity is no longer recognizing the file correctly.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Regarding battle grids, I need the range cells in battle grid settings to be a formula instead of a fixed value. The reason is the range in my game depends on the status values of the user who use abilities, like throwing projectiles... for example, when throwing a boulder, the range depends on strength, agility and skill of the user. Also the range of an ability depends on which weapon is used, ie a bow can have a range of say 30, a long bow 40...
But from what I see, I can only make range templates with fixed values, and make abilities that use those fixed values, so I will have to duplicate hundreds of abilities to cover all ranges. So is there a way to set the battle grid range cells to a formula ? (Through script if there are no workarounds in Ork)
I'll look into it for future updates.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I implemented the new Equipment durability node, which works fine for most cases. But I encountered a bug: if I use that node with the "use maximum" check, and the selected equipment current durability is 0 (ie outworn) , then the node returns 0, even if it's supposed to return the maximum durability. I did a separate test to make sure and that still happens.