Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Solution without using circular reference in google sheets?

$
0
0

Apologies if the title is vague, I'm not sure how to describe the issue.

I'm making a damage simulator for a game, and part of that is determining what a character does at a given time, which is what the table shown is trying to do.Here's a simplified version of what I'm doing:example column of a simplified version of my table, columns explained further down

column 1 is just a helper column, so it can be ignored for now. The outcome column determines what action the character takes, being either a basic attack or skill (technically, there's a third option of "energy skill", but it's omitted for simplicity), a basic attack either takes 20 frames or 10 frames (if the character has a speed buff), while a skill always takes 60 frames and gives the character the speed buff for an attack. The interval column displays when an action is executed. Speed buff determines whether the character has the speed buff or not, the column after that can be ignored for now.

Onto the actual problem: I want to use the skill intervals column that show when the skills take place to determine when the speed buff should be applied. I initially tried using the formula =or(D15=$H$16,D15=$H$17) in the speed buff column (if the previous interval is either skill intervals, then return true) but it returns a circular dependency. In concept, it shouldn't really create a circular dependency since the skills don't affect when they happen themselves, skill 1 may affect when skill 2 happens, but skill 1 shouldn't affect skill 1, again, in concept. Does anyone have any ideas of what I can do to fix this?

apologies if there's not enough information, i can give more if necessary

Here is a sample spreadsheet with the table in the image both with formulas and manually entered data, as well as some explanations https://docs.google.com/spreadsheets/d/1dp8ihVOj6bdNG2Rcb1ZXIuc7PxBb6vl3F5Xv4DXvHLM/edit?usp=sharing

Edit: Here is a sample spreadsheet with the actual, non-simplified version of the spreadsheet in case you want to see the picture, apologies if its messyhttps://docs.google.com/spreadsheets/d/1VcsW4rIh7jsx6QWYlvvVK0EHn3xM-d8G_gtXcF-mvjA/edit?usp=sharing


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>