I've started laying the groundwork for my battle animation a few days ago and it's going... well, it's making progress I think. I've stumbled over a few hurdles though, and have a couple of questions.
Question 1:
I would like to try using this to play a context-based animation on the attacker depending on the id of the weapon they currently have equipped. Problem is, I don't know how to address them. What would the proper syntax be for a conditional like "if $(attack user).hasWeapon($dataWeapons[3])".
I need to do this via if statement btw, because I need to be able to control when in the Action Sequence it is executed.
On a side note: Is there a repository of these little tags like "hasWeapon", "isActor", etc. that I can look up somewhere? They seem useful.
Question 2:
Is there a way to somehow combine "MOVE target1: POINT, x coordinate, y coordinate, (frames)" and "MOVE target1: target2, FRONT CENTER, (frames), (offset)"? I'd like my actor to move to a point that is level with the target on the y-axis (relative), but keep their x position constant at something like, say, 600 pixels (absolute).
The problem I run into here is that the coordinate point I want to end up at is a mix of relative and absolute, whereas both of these commands refer to a fully absolute or fully relative point. I can't use the offset either, as that is also a relative value.
I hope I'm explaining this in a way that makes sense. If not, here are some examples:
Question 3:
I put this line into the finish action of one of my skills:
"hp -12.5%: user, show"
Intent is to make the user of the skill lose 1/8 of their max HP after execution. The problem is that, regardless of the user's HP, the skill always subtracts 12 HP. It's as if the parser isn't recognizing the % and treats 12.5 as a flat value.
Is there a way I can fix this?
Question 1:
Code:
IF ... ELSE STATEMENTS
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
For those familiar with programming, you can use if...else statements to
perform different actions based on different conditions. Use 'if' to
specify a block of code to be executed, if a specified condition is true.
Use 'else' to specify a block of code to be executed, if the same
condition is false. Use 'else if' to specify a new condition to test, if
the first condition is false. Use 'end' to specify where the conditions
are to end.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Usage Example:
if $gameSwitches.value(1)
action effect
else if $gameSwitches.value(2)
action effect
action effect
else
action effect
action effect
action effect
end
I would like to try using this to play a context-based animation on the attacker depending on the id of the weapon they currently have equipped. Problem is, I don't know how to address them. What would the proper syntax be for a conditional like "if $(attack user).hasWeapon($dataWeapons[3])".
I need to do this via if statement btw, because I need to be able to control when in the Action Sequence it is executed.
On a side note: Is there a repository of these little tags like "hasWeapon", "isActor", etc. that I can look up somewhere? They seem useful.
Question 2:
Code:
MOVE target: args
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MOVE target1: HOME, (frames)
MOVE target1: RETURN, (frames)
MOVE target1: FORWARD, (distance), (frames)
MOVE target1: BACKWARD, (distance), (frames)
MOVE target1: POINT, x coordinate, y coordinate, (frames)
MOVE target1: target2, BASE, (frames), (offset)
MOVE target1: target2, CENTER, (frames), (offset)
MOVE target1: target2, HEAD, (frames), (offset)
MOVE target1: target2, FRONT BASE, (frames), (offset)
MOVE target1: target2, FRONT CENTER, (frames), (offset)
MOVE target1: target2, FRONT HEAD, (frames), (offset)
MOVE target1: target2, BACK BASE, (frames), (offset)
MOVE target1: target2, BACK CENTER, (frames), (offset)
MOVE target1: target2, BACK HEAD, (frames), (offset)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This is a move command. Arguments can be used in the above formats. This
action sequence command will move target1 to any of those locations listed
in the arguments. If it's towards target2, you must include what location
relative to target2 for target1 to travel to.
Note: Moving only works with Sideview.
Is there a way to somehow combine "MOVE target1: POINT, x coordinate, y coordinate, (frames)" and "MOVE target1: target2, FRONT CENTER, (frames), (offset)"? I'd like my actor to move to a point that is level with the target on the y-axis (relative), but keep their x position constant at something like, say, 600 pixels (absolute).
The problem I run into here is that the coordinate point I want to end up at is a mix of relative and absolute, whereas both of these commands refer to a fully absolute or fully relative point. I can't use the offset either, as that is also a relative value.
I hope I'm explaining this in a way that makes sense. If not, here are some examples:
- If the target is at position x240,y450, I want the actor to move to x600,y450
- If the target is at position x80,y60, I want the actor to move to x600,y60
- If the target is at position x770,y310, I want the actor to move to x600,y310
Question 3:
I put this line into the finish action of one of my skills:
"hp -12.5%: user, show"
Intent is to make the user of the skill lose 1/8 of their max HP after execution. The problem is that, regardless of the user's HP, the skill always subtracts 12 HP. It's as if the parser isn't recognizing the % and treats 12.5 as a flat value.
Is there a way I can fix this?