Hey everyone - putting this here because I think it is a step above "getting started" for the trigger, since I need help implementing a system to get Unit Indexer/Unit Event to interact with Damage Engine.
I did already msg Bribe and ask about this, but he's a busy man and all so hopefully the community can help out too.
I'm an aspiring noob gui'er so these two systems are making my life a lot easier. I'm positive they can achieve what I need but I'm too stupid to go about implementing it, hope someone can help.
The deal:
I am implementing the damage engine such that a Damage Event will take the unit's base damage, and has a lot of different things that can happen based on Strength, Agility, and Intelligence.
So I have non hero units that need artificial Strength, Agility, and Intelligence. I decide to make a Spell Book called (Monster Stats) with abilities based off tornado slow aura inside the Spell Book (Monster Stats) - the level of these tornado based abilities will be the number of the Strength, Agility, or Intelligence amount for that non hero unit on Damage Event.
Moving to Unit Indexer/Unit Event:
All non hero units I use will have this Spell Book (Monster Stats) so I don't think I need to add it as anyone is created (though that might be useful too)
But what I'm trying to do is have every unit or unit type, be indexed and have variables with the level of their strength, agility, or intelligence attached to them so I can recall this variables into Damage Event without getting screwed up in some MUI incompatibility.
Summing up the Problem:
Non Hero unit is indexed, how can I get a variable that takes the level of the artificial stat (str,agi,int) ability in the Spell Book (Monster Stats) which will always start as 1, manipulate it to the level I want (Being able to randomize it between units would be sweet - so 2 ogre would have varying strength scores) , and then store that set of variables to that indexed unit so I can recall them for use in manipulating Damage Event
Would also need to do this for Hero units, but getting their Str, Agi, and Int scores (plus whatever ability level scores, like if I wanted to make an ability "Improve Accuracy" at level 1 to add bonus to "chance to hit" for example.
I did already msg Bribe and ask about this, but he's a busy man and all so hopefully the community can help out too.
I'm an aspiring noob gui'er so these two systems are making my life a lot easier. I'm positive they can achieve what I need but I'm too stupid to go about implementing it, hope someone can help.
The deal:
I am implementing the damage engine such that a Damage Event will take the unit's base damage, and has a lot of different things that can happen based on Strength, Agility, and Intelligence.
-
Damage Event Example
-
Events
-
Game - DamageEvent becomes Equal to 1.00
-
-
Conditions
-
(DamageEventSource is A Hero) Equal to True
-
(DamageEventSource is A Hero) Equal to False
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Weapon/LongSword for DamageEventSource) Greater than 0
-
-
Then - Actions
-
-------- Poor Quality --------
-
-------- --------
-
-------- Set Weapon Accuracy Bonus --------
-
Set Variable = Value (this would be where I call that indexed units Agility or Non Hero Agi Ability)
-
-------- Set Accuracy Roll For Source of Attack --------
-
Set Variable = Value
-
-------- Set Critical Chance --------
-
Set Variable = Value (Maybe Str or Str ability for non hero)
-
-------- Set Weapon Damage --------
-
Set Variable = (Random real number between 2.00 and 8.00)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Condition 1 and Condition 2
-
-
Then - Actions
-
Set DamageEventAmount = Value
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Condition 1 and Condition 2
-
-
Then - Actions
-
Set DamageEventType = DamageTypeCriticalStrike
-
Set DamageEventAmount = Value
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Value Less than Value
-
-
Then - Actions
-
Set DamageEventType = DamageTypeMiss
-
Set DamageEventAmount = 0.00
-
-
Else - Actions
-
-
-
-
-
-
-
Else - Actions
-
-
-
So I have non hero units that need artificial Strength, Agility, and Intelligence. I decide to make a Spell Book called (Monster Stats) with abilities based off tornado slow aura inside the Spell Book (Monster Stats) - the level of these tornado based abilities will be the number of the Strength, Agility, or Intelligence amount for that non hero unit on Damage Event.
Moving to Unit Indexer/Unit Event:
All non hero units I use will have this Spell Book (Monster Stats) so I don't think I need to add it as anyone is created (though that might be useful too)
But what I'm trying to do is have every unit or unit type, be indexed and have variables with the level of their strength, agility, or intelligence attached to them so I can recall this variables into Damage Event without getting screwed up in some MUI incompatibility.
Summing up the Problem:
Non Hero unit is indexed, how can I get a variable that takes the level of the artificial stat (str,agi,int) ability in the Spell Book (Monster Stats) which will always start as 1, manipulate it to the level I want (Being able to randomize it between units would be sweet - so 2 ogre would have varying strength scores) , and then store that set of variables to that indexed unit so I can recall them for use in manipulating Damage Event
Would also need to do this for Hero units, but getting their Str, Agi, and Int scores (plus whatever ability level scores, like if I wanted to make an ability "Improve Accuracy" at level 1 to add bonus to "chance to hit" for example.
Thanks for your time if you read all this, and I appreciate any input, even harsh criticisms of how I'm going about all of this.