Can you combine game attributes?
Hi, by this I mean that I have 2 Game Attributes. One is integer and the text.
So, for example the integer att. reads - 4
and the text att. reads - RIGHT
Is there anyway to combine these values so that I could then tell an actor> When Attribute = 4,RIGHT etc.
This would save me an incredible amount of time and vastly cutdown on the rules I need to use.
So, for example the integer att. reads - 4
and the text att. reads - RIGHT
Is there anyway to combine these values so that I could then tell an actor> When Attribute = 4,RIGHT etc.
This would save me an incredible amount of time and vastly cutdown on the rules I need to use.
Comments
You create a rule -
RULE
--------
when attribute = 4
AND
when attribute 2 = Right
-------
You can add conditions just by clicking the plus sign on the right side of a rule.
Giacomo
P.S. I hope tht is what you meant
Whereas if I could combine them before creating the actor rule - I could then just have a rule stating if ANY conditions exist and then input the particular combinations (such as '5,RIGHT') that trigger that rule.
Hope I'm making sense here.
and you just check to see if the text attribute is exactly the same as...
but i believe you can..
first you set-up a change attribute
xxx to integer..","..text
xxx being your new text attribute
integer being the name of your integer attribute
and text being your text attribute...
add a new rule that checks if
xxx (your new text attribute) = "4,right"
it works in my head but i haven't tried yet.
Giacomo
in a sense you can't combine them... because the end result is a text string.. but the idea is that you can check if one text string is the same as the other.
I'm displaying as text to see what it comes up with and its displaying:
vars['game.attributes.id552420']
???