Whats the difference between Set and switch in the data editor?
What i want is to make Odin just make left or right hand animation and just fire one shot each attack, so my plan is to break up the percistent and make it do one of the 2 damage effect each time he attacks.
But then i wanna know the difference between Set and Switch?
Set usually uses all of the effects and has the possibility to use a specific amount of the effects at random.
Switch however is designed to use validators to check for specific cases, it can also define a default effect, if none of the other cases is true. You can also set the switch to stop after a specific effect (disable fall-through). While you can probably get the same functionality with combining some set effects and validators, the switch effect provides an easier way to do it.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Whats the difference between Set and switch in the data editor?
What i want is to make Odin just make left or right hand animation and just fire one shot each attack, so my plan is to break up the percistent and make it do one of the 2 damage effect each time he attacks.
But then i wanna know the difference between Set and Switch?
Set usually uses all of the effects and has the possibility to use a specific amount of the effects at random.
Switch however is designed to use validators to check for specific cases, it can also define a default effect, if none of the other cases is true. You can also set the switch to stop after a specific effect (disable fall-through). While you can probably get the same functionality with combining some set effects and validators, the switch effect provides an easier way to do it.