[RM ACE] FORMULA VARIABLES

Posts

Pages: 1
A lot of Hime's scripts (like this one for example) refer to the use of these formula variables.
a - the enemy
p - game party
t - game troop
s - game switches
v - game variables
But I don't really know how to work these. I get the feeling there's a ton of possibilities with combinations of these, but I'm still learning formula's and I don't know what works or what doesn't. Is there an appendix of formulas so I know what I'm doing?
Looks like he uses an
eval()
which replaces those letters with the set variables
(a, p=$game_party, t=$game_troop, s=$game_switches, v=$game_variables)

so if you know the possible methods that each of those variables can call you should be able to do something like
p.members.atk
(I think!)
Not sure what you can do with a since it doesn't have anything set to it, but it's probably the stuff from the normal formula box.

not completely sure on how eval() works so I don't want to touch up to much on it and be wrong.
There was a thread on a forum ( can't recall which) that was all about formulas and all the possible stuff you can do with them, in the lil formula box or through scripts.
Yeah, from what I understand, they're just aliases for referring to specific objects within the game - as quasi said:

a - refers to the enemy's actor instance
p - refers to the party's party instance
t - refers to the enemy party's troop instance
s - refers to the switch global
v - refers to the variable global

To the best of my understanding, this lets you access any of the methods normally available to these particular instances. Basically, these are shortcuts to give you access to almost anything you could need in a formula.
Right, so what are some examples of things like "p.members.atk"? Is there a master table of objects I can reference with that formula?
Pages: 1