SyrisX
New Member
- Reaction score
- 3
I posted a similar question a few days ago and got some good information. However, I am still having a lot of problems. (I have no idea how to start) :banghead:
I need a system to track units that receive a specific buff. The system needs to keep track of this once per game day.
<example>
On day1 a Unit casts "myspell" on unit "X", and unit "X" receives buff "mybuff".
Data then needs to be stored that unit "X" received the buff, and can only be stored once per game day.
On day 2 unit "X" receives buff "mybuff" again.
The system needs to know that unit "X" had the buff 1 time previously and is being buffed for the 2nd time.
Or
On day 2 unit "X" does not receive "mybuff"
The system needs to know that the day passed without the unit having received the buff, but also needs to know that it received the buff 1 time before.
Eventually.. unit "X" having received the buff enough times (once per day) event "A" will occur.. But if unit "X" does not receive the buff as much as needed within x amount of days.. then it is removed/killed (event B)
</example>
As I am fairly new to this, I fear it is way over my head. I have spent the last few days attempting to figure out how exactly to manage this but I am failing miserably. If anyone can help me out I would greatly appreciate it. I know it is pretty complicated and would be a bit time consuming to work on this, but I still need to ask.
I'm not asking for someone to write out the entire system, but to help me figure out where to start.
I need a system to track units that receive a specific buff. The system needs to keep track of this once per game day.
<example>
On day1 a Unit casts "myspell" on unit "X", and unit "X" receives buff "mybuff".
Data then needs to be stored that unit "X" received the buff, and can only be stored once per game day.
On day 2 unit "X" receives buff "mybuff" again.
The system needs to know that unit "X" had the buff 1 time previously and is being buffed for the 2nd time.
Or
On day 2 unit "X" does not receive "mybuff"
The system needs to know that the day passed without the unit having received the buff, but also needs to know that it received the buff 1 time before.
Eventually.. unit "X" having received the buff enough times (once per day) event "A" will occur.. But if unit "X" does not receive the buff as much as needed within x amount of days.. then it is removed/killed (event B)
</example>
As I am fairly new to this, I fear it is way over my head. I have spent the last few days attempting to figure out how exactly to manage this but I am failing miserably. If anyone can help me out I would greatly appreciate it. I know it is pretty complicated and would be a bit time consuming to work on this, but I still need to ask.
I'm not asking for someone to write out the entire system, but to help me figure out where to start.