Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> 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
   

Posts in this topic
- lightingft   Auto States   May 1 2012, 02:07 AM
- - hero501   which maker rpg ? RPG XP or RPG VX ?   Jun 22 2012, 05:43 AM


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: 19th June 2013 - 09:59 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker