Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Getting game party actor parameters in Event script calls [SOLVED], As well as changing them.
Titanhex
post Sep 15 2011, 07:31 PM
Post #1


Guru of Water
Group Icon

Group: Revolutionary
Posts: 1,096
Type: None
RM Skill: Masterful
Rev Points: 5




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!

This post has been edited by Titanhex: Sep 17 2011, 02:11 AM


__________________________
Go to the top of the page
 
+Quote Post
   
Atoa
post Sep 15 2011, 09:05 PM
Post #2


Level 11
Group Icon

Group: Revolutionary
Posts: 192
Type: Scripter
RM Skill: Masterful




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]


__________________________
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 20th May 2013 - 11:44 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker