Post by Neo Samurai on Jul 19, 2006 9:45:38 GMT -5
Recently, I started making an ABS. So far, I've only got my character's attack done. Everything works fine, except I have 2 problems. First, and chief of them all, everytime I attack the enemy, rather than being pushed 1 space back, it keeps going in the direction I indicate until it bumps into an object.
The second doesn't bother me as much, but I'd like to fix it. When I hit the enemy, it's supposed to flash red. It usually works, but it doesn't when the enemy is between me and an object (ex. a mountain). I'll provide the scripts if anyone wants to help. I hate having to ask for help, but these problems have gone beyond my head.
"Enemy Hit" Script
Event Control: Change the Target to [Enemy 1]
Event Control: Event Info Load
Data: Variable: [Enemy Number]=1
Script: Call [Check 4 Hit]
Event Control: Change the Target to [Enemy 2]
Event Control: Event Info Load
Data: Variable: [Enemy Number]=2
Script: Call [Check 4 Hit]
(Repeat this for Enemies 3-10)
"Check 4 Hit" Script
Data: Game Info: Load
Script: Call [East Hit]
Script: Call [Southeast Hit]
(Well, all the compass directions! )
Script: Call [Hit!]
Script: Call [Damage!]
Data: Flag: [Hit!]=Off
(Note: The compass direction hit scripts check to see if what direction my character is facing and if the enemy is in the proper coordinates. They work fine, but if you believe you'll need them, I'll provide them.)
"Hit!" Script
Script Control: Apply Together
Data: Variable: [Member Number]=[Enemy Number]
Data: Member Info: Load
SB: Condition: Flag [Hit!]=On
SB: Condition: Flag [NormalFlag0]=Off
SFX: [Crush]
Event Effects: Color Change 5F
Effect: [Hit] Event
SB: Condition: Variable: [PartyDir]=0
Event Movement: Direction: Face Leader
Event Movement: Direction Movement: E 1 Space Facing=Fixed 5F
SB End
(Repeat for other directions)
Event Effects: Default Color 5F
SB End
SB End
Script Control: Apply In Order
(Note: If you haven't figured it out all ready, I'm using blank Party Members to keep track of my enemies, such as their HP and Attack. The Hit! Flag checks if my character hit the enemy with his weapon successfully. I use the NormalFlag0 to see whether the enemy is dead or alive (The flag is on if the enemy is dead).)
Like I said, I hate asking people for help. I like doing things on my own. But this has gone way beyond me.
Edit: Damn, I posted this in the wrong forum. Doan, ves or Nash, could you move this to the Technical Help forum?
The second doesn't bother me as much, but I'd like to fix it. When I hit the enemy, it's supposed to flash red. It usually works, but it doesn't when the enemy is between me and an object (ex. a mountain). I'll provide the scripts if anyone wants to help. I hate having to ask for help, but these problems have gone beyond my head.
"Enemy Hit" Script
Event Control: Change the Target to [Enemy 1]
Event Control: Event Info Load
Data: Variable: [Enemy Number]=1
Script: Call [Check 4 Hit]
Event Control: Change the Target to [Enemy 2]
Event Control: Event Info Load
Data: Variable: [Enemy Number]=2
Script: Call [Check 4 Hit]
(Repeat this for Enemies 3-10)
"Check 4 Hit" Script
Data: Game Info: Load
Script: Call [East Hit]
Script: Call [Southeast Hit]
(Well, all the compass directions! )
Script: Call [Hit!]
Script: Call [Damage!]
Data: Flag: [Hit!]=Off
(Note: The compass direction hit scripts check to see if what direction my character is facing and if the enemy is in the proper coordinates. They work fine, but if you believe you'll need them, I'll provide them.)
"Hit!" Script
Script Control: Apply Together
Data: Variable: [Member Number]=[Enemy Number]
Data: Member Info: Load
SB: Condition: Flag [Hit!]=On
SB: Condition: Flag [NormalFlag0]=Off
SFX: [Crush]
Event Effects: Color Change 5F
Effect: [Hit] Event
SB: Condition: Variable: [PartyDir]=0
Event Movement: Direction: Face Leader
Event Movement: Direction Movement: E 1 Space Facing=Fixed 5F
SB End
(Repeat for other directions)
Event Effects: Default Color 5F
SB End
SB End
Script Control: Apply In Order
(Note: If you haven't figured it out all ready, I'm using blank Party Members to keep track of my enemies, such as their HP and Attack. The Hit! Flag checks if my character hit the enemy with his weapon successfully. I use the NormalFlag0 to see whether the enemy is dead or alive (The flag is on if the enemy is dead).)
Like I said, I hate asking people for help. I like doing things on my own. But this has gone way beyond me.
Edit: Damn, I posted this in the wrong forum. Doan, ves or Nash, could you move this to the Technical Help forum?