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
> Auto States
lightingft
post May 1 2012, 02:07 AM
Post #1


Level 2
Group Icon

Group: Member
Posts: 23
Type: Developer
RM Skill: Intermediate




Hello everyone, just wanted to make sure. I have found a tutorial for auto states, and I've tried to make it for 2 weapons, ofcourse going to need more than just 2. But question is, how is it supposed to look?
Currently, in Scene_Battle2 it looks like this:
# Weapon Auto-State
if $game_party.actors.size >= 1
if $game_party.actors[0].weapon_id == 6
$game_party.actors[0].add_state(23)
end
end
if $game_party.actors.size >= 2
if $game_party.actors[1].weapon_id == 6
$game_party.actors[1].add_state(23)
end
end
if $game_party.actors.size >= 3
if $game_party.actors[2].weapon_id == 6
$game_party.actors[2].add_state(23)
end
end
if $game_party.actors.size == 4
if $game_party.actors[3].weapon_id == 6
$game_party.actors[3].add_state(23)
end
end
if $game_party.actors.size >= 1
if $game_party.actors[0].weapon_id == 9
$game_party.actors[0].add_state(23)
end
end
if $game_party.actors.size >= 2
if $game_party.actors[1].weapon_id == 9
$game_party.actors[1].add_state(23)
end
end
if $game_party.actors.size >= 3
if $game_party.actors[2].weapon_id == 9
$game_party.actors[2].add_state(23)
end
end
if $game_party.actors.size == 4
if $game_party.actors[3].weapon_id == 9
$game_party.actors[3].add_state(23)
end
end
Is this correct?
Go to the top of the page
 
+Quote Post
   
hero501
post Jun 22 2012, 05:43 AM
Post #2


Level 3
Group Icon

Group: Member
Posts: 40
Type: Event Designer
RM Skill: Intermediate




which maker rpg ? huh.gif

RPG XP or RPG VX ?

This post has been edited by hero501: Jun 22 2012, 05:43 AM


__________________________
Victory is our
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: 25th May 2013 - 03:26 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker