Home
Help
Search
Calendar
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
New forum theme up and running!
Charas-Project
»
Game Creation
»
Requests
»
Tutorials
»
A different way of targetting
« previous
next »
Print
Pages: [
1
]
Author
Topic: A different way of targetting (Read 2780 times)
Sephiroth rocks
Acolyte
Posts: 479
A different way of targetting
«
on:
April 12, 2006, 11:36:55 AM »
This is an advanced tutorial: What you need to know is
Branches
Variables
Key Input Processing
All custom skills ussually has the same problem: targetting. To select a target with an event-using skill the usual way to deal with the problem is to make the skill as a new skill slot and set it to 'Attack'. The problem with this is that in order to avoid the character from attacking you need to change his condition to one that disallows the character to do any action. This is a problem since the character will simply drop dead if he's the only living or unpetrified character. So this way of targetting is suboptimal. I though that there had to be another way and after some time I came up with this. It isn't all optimal either but it protects your character from dropping dead.
First at the beginning of the skill's battle event set 8 variables (called something like Monster1 HP - Monster8 HP) as their respectively monster's current HP. Then make a new common event and set the trigger to 'Call' and call that event from within the battle event. Most of the tutorial will deal with this event.
At the common event make a branch. Set its trigger to "If variable Monster1 HP is greater than 0" and check the execute else handler box. Make a new variable called 'Target'. If the statement is true set variable Target to 1. Duplicate this event at the else handler except changing the monster1 HP variable to monster2 HP and setting Target to 2. Keep doing this until monster8 HP. What we've just done is initializing the target to the first living creature among the creature group.
Then show this message: "Choose Target ^". The '^' in the massage is a message formatting code which does that the message disappears by itself without waiting for user input. The reason for this will be explained later. Now make a label and set it as 1. Make a new variable called 'Target Select' and set it to 0. Then make a key input processing using the Target select variable as the input storing variable. Uncheck the 'Wait until key is pressed' box and check 'Left (2)', 'Right (3)' and 'Decision Key (5)'. This command is why the '^' is needed since the event will jump ahead if the user presses the decision key even though it was only to skip the message. Then make a branch and set the trigger to "If variable Target Select is equal to 5" (meaning the decision key has been pressed) . Jump to label 2 if the statement is true (don't get confused about label 2 I'll place it later in the coding). Then make a new branch and set the trigger to "If variable Target Select is equal to 2" (meaning the left direction key has been pressed). Make a new branch inside this and ake the trigger "If variable Target is equal to 1" and make yet another branch inside that one (and check the execute else handler box). Make that branch's trigger "If variable Monster2 HP is greater than 0" (Meaning that monster no. 2 exists in the current monster group and is alive). If the statement is true set variable Target as 2 and show the message "Current target: V[####] ^" The #'s should be replaced by the Target variable's index number. The '^' appears at the end of this message for the same reason as it appeared at the 'Select target' message. After the message jump back to label 1 in order to register new key input until the user has chosen the target and skips ahead using the decision key.
Copy this branch and insert it at the else handler only changing the trigger condition to "if Monster3 HP is greater than 0" and the Target variable to 3. Keep doing this until Monster8. This allows the user to scroll through the targets. E.g. if your current target is monster 7 and monster 8 is dead or there's only 7 creatures in the group it should skip back to monster 1 (unless that creature is dead in which case it should check monster 2 and so on)
Now copy the whole "If variable Target is equal to 1" branch and insert it below it only changing the trigger to "If variable Target is equal to 2" and starting at Monster3 HP and ending at Monster2 HP. Keep doing this until Target is equal to 8.
Then copy the whole "If variable Target Select is equal to 2" branch and paste it below only changing the trigger to "If variable Target Select is equal to 3" (meaning that the right directional key has been pressed). Inside the branch change the variable to be set to lesser values instead of higher values since this branch should scroll the target back instead of forward.
At the end of it all set two commands: 'Jump to label 1' and place the second label (the one that the user skips to when the target has been selected).
Now we've done the common event.
Go back to the battle event and make a branch after the common event is called. Make the trigger "If variable Target is equal to 1" then do whatever the skill's supposed to do to its target. Copy this event changing the trigger to if variable Target is equal to 2,3,4,5... until there're no more creatures in the group. Remember also to change loss of monster HP like if the target's 5 you should decreese the HP of the 5th monster.
The scripting for the battle event should look like this:
Variable Operation: [####:Monster1 HP] Set, 1:(Creature Name) HP
Variable Operation: [####:Monster2 HP] Set, 2:(Creature Name) HP
Variable Operation: [####:Monster3 HP] Set, 3:(Creature Name) HP
Variable Operation: [####:Monster4 HP] Set, 4:(Creature Name) HP
Variable Operation: [####:Monster5 HP] Set, 5:(Creature Name) HP
Variable Operation: [####:Monster6 HP] Set, 6:(Creature Name) HP
Variable Operation: [####:Monster7 HP] Set, 7:(Creature Name) HP
Variable Operation: [####:Monster8 HP] Set, 8:(Creature Name) HP
Call common event: Target
Branch if Var [####: Target] is 1
//Your code for the skill goes here
End
Branch if Var [####: Target] is 2
//Your code for the skill goes here
End
Branch if Var [####: Target] is 3
//Your code for the skill goes here
End
Branch if Var [####: Target] is 4
//Your code for the skill goes here
End
Branch if Var [####: Target] is 5
//Your code for the skill goes here
End
Branch if Var [####: Target] is 6
//Your code for the skill goes here
End
Branch if Var [####: Target] is 7
//Your code for the skill goes here
End
Branch if Var [####: Target] is 8
//Your code for the skill goes here
End
The common event should look like this:
Branch if Var [####: Monster1 HP] is 0 Greater
Variable Oper: [####:Target] Set, 1
:Else Handler
Branch if Var [####: Monster2 HP] is 0 Greater
Variable Oper: [####:Target] Set, 2
:Else Handler
Branch if Var [####: Monster3 HP] is 0 Greater
Variable Oper: [####:Target] Set, 3
:Else Handler
Branch if Var [####: Monster4 HP] is 0 Greater
Variable Oper: [####:Target] Set, 4
:Else Handler
Branch if Var [####: Monster5 HP] is 0 Greater
Variable Oper: [####:Target] Set, 5
:Else Handler
Branch if Var [####: Monster6 HP] is 0 Greater
Variable Oper: [####:Target] Set, 6
:Else Handler
Branch if Var [####: Monster7 HP] is 0 Greater
Variable Oper: [####:Target] Set, 7
:Else Handler
Branch if Var [####: Monster8 HP] is 0 Greater
Variable Oper: [####:Target] Set, 8
End
End
End
End
End
End
End
End
Message: Choose Target ^
Label: 1
Variable Oper: [####: Target Select] Ser, 0
Key Input Proc: [####: Target Select]
Branch if Var [####: Target Select] is 5
Jump to label: 2
End
Branch if Var [####: Target Select] is 2
Branch if Var [####: Target] is 1
Branch if Var [Monster2 HP] is 0 Greater
Variable Oper: [####: Target] 2
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster3 HP] is 0 Greater
Variable Oper: [####: Target] 3
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster4 HP] is 0 Greater
Variable Oper: [####: Target] 4
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster5 HP] is 0 Greater
Variable Oper: [####: Target] 5
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster6 HP] is 0 Greater
Variable Oper: [####: Target] 6
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster7 HP] is 0 Greater
Variable Oper: [####: Target] 7
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster8 HP] is 0 Greater
Variable Oper: [####: Target] 8
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
End
End
End
End
End
End
End
End
Branch if Var [####: Target] is 2
Branch if Var [Monster3 HP] is 0 Greater
Variable Oper: [####: Target] 3
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster4 HP] is 0 Greater
Variable Oper: [####: Target] 4
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster5 HP] is 0 Greater
Variable Oper: [####: Target] 5
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster6 HP] is 0 Greater
Variable Oper: [####: Target] 6
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster7 HP] is 0 Greater
Variable Oper: [####: Target] 7
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster8 HP] is 0 Greater
Variable Oper: [####: Target] 8
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster1 HP] is 0 Greater
Variable Oper: [####: Target] 1
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
End
End
End
End
End
End
End
End
Branch if Var [####: Target] is 3
Branch if Var [Monster4 HP] is 0 Greater
Variable Oper: [####: Target] 4
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster5 HP] is 0 Greater
Variable Oper: [####: Target] 5
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster6 HP] is 0 Greater
Variable Oper: [####: Target] 6
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster7 HP] is 0 Greater
Variable Oper: [####: Target] 7
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster8 HP] is 0 Greater
Variable Oper: [####: Target] 8
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster1 HP] is 0 Greater
Variable Oper: [####: Target] 1
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster2 HP] is 0 Greater
Variable Oper: [####: Target] 2
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
End
End
End
End
End
End
End
End
Branch if Var [####: Target] is 4
Branch if Var [Monster5 HP] is 0 Greater
Variable Oper: [####: Target] 5
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster6 HP] is 0 Greater
Variable Oper: [####: Target] 6
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster7 HP] is 0 Greater
Variable Oper: [####: Target] 7
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster8 HP] is 0 Greater
Variable Oper: [####: Target] 8
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster1 HP] is 0 Greater
Variable Oper: [####: Target] 1
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster2 HP] is 0 Greater
Variable Oper: [####: Target] 2
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster3 HP] is 0 Greater
Variable Oper: [####: Target] 3
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
End
End
End
End
End
End
End
End
Branch if Var [####: Target] is 5
Branch if Var [Monster6 HP] is 0 Greater
Variable Oper: [####: Target] 6
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster7 HP] is 0 Greater
Variable Oper: [####: Target] 7
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster8 HP] is 0 Greater
Variable Oper: [####: Target] 8
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster1 HP] is 0 Greater
Variable Oper: [####: Target] 1
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster2 HP] is 0 Greater
Variable Oper: [####: Target] 2
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster3 HP] is 0 Greater
Variable Oper: [####: Target] 3
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster4 HP] is 0 Greater
Variable Oper: [####: Target] 4
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
End
End
End
End
End
End
End
End
Branch if Var [####: Target] is 6
Branch if Var [Monster7 HP] is 0 Greater
Variable Oper: [####: Target] 7
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster8 HP] is 0 Greater
Variable Oper: [####: Target] 8
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster1 HP] is 0 Greater
Variable Oper: [####: Target] 1
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster2 HP] is 0 Greater
Variable Oper: [####: Target] 2
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster3 HP] is 0 Greater
Variable Oper: [####: Target] 3
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster4 HP] is 0 Greater
Variable Oper: [####: Target] 4
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster5 HP] is 0 Greater
Variable Oper: [####: Target] 5
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
End
End
End
End
End
End
End
End
Branch if Var [####: Target] is 7
Branch if Var [Monster8 HP] is 0 Greater
Variable Oper: [####: Target] 8
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster1 HP] is 0 Greater
Variable Oper: [####: Target] 1
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster2 HP] is 0 Greater
Variable Oper: [####: Target] 2
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster3 HP] is 0 Greater
Variable Oper: [####: Target] 3
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster4 HP] is 0 Greater
Variable Oper: [####: Target] 4
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster5 HP] is 0 Greater
Variable Oper: [####: Target] 5
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster6 HP] is 0 Greater
Variable Oper: [####: Target] 6
Message: Current Target: Monster no. V[####] ^
Jump to label: 1 Jump to label: 1
End
End
End
End
End
End
End
End
Branch if Var [####: Target] is 8
Branch if Var [Monster1 HP] is 0 Greater
Variable Oper: [####: Target] 1
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster2 HP] is 0 Greater
Variable Oper: [####: Target] 2
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster3 HP] is 0 Greater
Variable Oper: [####: Target] 3
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster4 HP] is 0 Greater
Variable Oper: [####: Target] 4
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster5 HP] is 0 Greater
Variable Oper: [####: Target] 5
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster6 HP] is 0 Greater
Variable Oper: [####: Target] 6
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster7 HP] is 0 Greater
Variable Oper: [####: Target] 7
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
End
End
End
End
End
End
End
End
End
Branch if Var [####: Target Select] is 3
Branch if Var [####: Target] is 1
Branch if Var [Monster8 HP] is 0 Greater
Variable Oper: [####: Target] 8
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster7 HP] is 0 Greater
Variable Oper: [####: Target] 7
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster6 HP] is 0 Greater
Variable Oper: [####: Target] 6
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster5 HP] is 0 Greater
Variable Oper: [####: Target] 5
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster4 HP] is 0 Greater
Variable Oper: [####: Target] 4
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster3 HP] is 0 Greater
Variable Oper: [####: Target] 3
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster2 HP] is 0 Greater
Variable Oper: [####: Target] 2
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
End
End
End
End
End
End
End
End
Branch if Var [####: Target] is 2
Branch if Var [Monster1 HP] is 0 Greater
Variable Oper: [####: Target] 1
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster8 HP] is 0 Greater
Variable Oper: [####: Target] 8
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster7 HP] is 0 Greater
Variable Oper: [####: Target] 7
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster6 HP] is 0 Greater
Variable Oper: [####: Target] 6
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster5 HP] is 0 Greater
Variable Oper: [####: Target] 5
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster4 HP] is 0 Greater
Variable Oper: [####: Target] 4
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster3 HP] is 0 Greater
Variable Oper: [####: Target] 3
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
End
End
End
End
End
End
End
End
Branch if Var [####: Target] is 3
Branch if Var [Monster2 HP] is 0 Greater
Variable Oper: [####: Target] 2
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster1 HP] is 0 Greater
Variable Oper: [####: Target] 1
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster8 HP] is 0 Greater
Variable Oper: [####: Target] 8
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster7 HP] is 0 Greater
Variable Oper: [####: Target] 7
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster6 HP] is 0 Greater
Variable Oper: [####: Target] 6
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster5 HP] is 0 Greater
Variable Oper: [####: Target] 5
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster4 HP] is 0 Greater
Variable Oper: [####: Target] 4
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
End
End
End
End
End
End
End
End
Branch if Var [####: Target] is 4
Branch if Var [Monster3 HP] is 0 Greater
Variable Oper: [####: Target] 3
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster2 HP] is 0 Greater
Variable Oper: [####: Target] 2
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster1 HP] is 0 Greater
Variable Oper: [####: Target] 1
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster8 HP] is 0 Greater
Variable Oper: [####: Target] 8
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster7 HP] is 0 Greater
Variable Oper: [####: Target] 7
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster6 HP] is 0 Greater
Variable Oper: [####: Target] 6
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster5 HP] is 0 Greater
Variable Oper: [####: Target] 5
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
End
End
End
End
End
End
End
End
Branch if Var [####: Target] is 5
Branch if Var [Monster4 HP] is 0 Greater
Variable Oper: [####: Target] 4
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster3 HP] is 0 Greater
Variable Oper: [####: Target] 3
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster2 HP] is 0 Greater
Variable Oper: [####: Target] 2
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster1 HP] is 0 Greater
Variable Oper: [####: Target] 1
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster8 HP] is 0 Greater
Variable Oper: [####: Target] 8
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster7 HP] is 0 Greater
Variable Oper: [####: Target] 7
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster6 HP] is 0 Greater
Variable Oper: [####: Target] 6
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
End
End
End
End
End
End
End
End
Branch if Var [####: Target] is 6
Branch if Var [Monster5 HP] is 0 Greater
Variable Oper: [####: Target] 5
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster4 HP] is 0 Greater
Variable Oper: [####: Target] 4
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster3 HP] is 0 Greater
Variable Oper: [####: Target] 3
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster2 HP] is 0 Greater
Variable Oper: [####: Target] 2
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster1 HP] is 0 Greater
Variable Oper: [####: Target] 1
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster8 HP] is 0 Greater
Variable Oper: [####: Target] 8
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster7 HP] is 0 Greater
Variable Oper: [####: Target] 7
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
End
End
End
End
End
End
End
End
Branch if Var [####: Target] is 7
Branch if Var [Monster6 HP] is 0 Greater
Variable Oper: [####: Target] 6
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster5 HP] is 0 Greater
Variable Oper: [####: Target] 5
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster4 HP] is 0 Greater
Variable Oper: [####: Target] 4
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster3 HP] is 0 Greater
Variable Oper: [####: Target] 3
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster2 HP] is 0 Greater
Variable Oper: [####: Target] 2
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster1 HP] is 0 Greater
Variable Oper: [####: Target] 1
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster8 HP] is 0 Greater
Variable Oper: [####: Target] 8
Message: Current Target: Monster no. V[####] ^
Jump to label: 1 Jump to label: 1
End
End
End
End
End
End
End
End
Branch if Var [####: Target] is 8
Branch if Var [Monster7 HP] is 0 Greater
Variable Oper: [####: Target] 7
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else handler
Branch if Var [Monster6 HP] is 0 Greater
Variable Oper: [####: Target] 6
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster5 HP] is 0 Greater
Variable Oper: [####: Target] 5
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster4 HP] is 0 Greater
Variable Oper: [####: Target] 4
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster3 HP] is 0 Greater
Variable Oper: [####: Target] 3
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster2 HP] is 0 Greater
Variable Oper: [####: Target] 2
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
:Else Handler
Branch if Var [Monster1 HP] is 0 Greater
Variable Oper: [####: Target] 1
Message: Current Target: Monster no. V[####] ^
Jump to label: 1
End
End
End
End
End
End
End
End
End
Jump to label: 1
Label: 2
Logged
Sephiroth rocks
Acolyte
Posts: 479
(No subject)
«
Reply #1 on:
April 12, 2006, 11:47:55 AM »
BTW the message code is slash^ but for some reason it deleted the slash symbols.
Logged
Print
Pages: [
1
]
« previous
next »
Charas-Project
»
Game Creation
»
Requests
»
Tutorials
»
A different way of targetting