Help - Search - Members - Calendar
Full Version: Getting game party actor parameters in Event script calls [SOLVED]
RPG RPG Revolution Forums > Scripting > Script Development and Support
Titanhex
Alright so I'm making a system that both edits and uses the first person in the game party's parameters such as HP, MP, ATTACK, STRENGTH, LEVEL, WEAPON ANIMATION, etc.

So my question is simple. How do I access the first actor in the game party's parameters? I've tried this:

@char = $game_party[0]
@agility = @char.base_agi
print @agility

But that just gave an error.

So what's the proper syntax when accessing actor parameters from the Game_Interpreter? A list of them would be nice or some easy way to look the syntax up.

I'd also really like to know how to get the weapon animation for the player, and maybe how to access and check for dual wielding.

Thanks muchly!
Atoa
if you want an specific character the code is
$game_actors[ACTOR ID]

if you want an character currently in the party the code is
$game_party.members[INDEX]
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.