Is it possible to make it so when you roll you still get damaged by enemies and non-solid damage combos? and how would I have to change the script to do that?
Also how would I make you require an item to be able to roll?
Link Roll/Dash
Overview
Creator:
RephireZeKasual217
Updated: 25 Aug 2019
Tags:
Global
Downloads: 45
|
View Script
Download Example (905.13 KB) |
Information
A Global Script in which Link is allowed to do a roll/dash by pressing the EX1 Button while moving as both a faster movement option and also as an evasive maneuver in which it can bypass enemies, their projectiles, and non-solid damage combos.
Description Setup Reviews Comments
Its a global script, so put it there by slot 2, then edit these settings to your liking:
import "std.zh" required.
rollSpeed: How fast you go
rollDur: How long it lasts
cooldown: How long until you can do it again
firstSFX: The sfx played when you do it
rollSprite: In weapons/misc., put the animations in four seperate sprites in order, the order of directions are up, down, left, right, the number is the first sprite in the order. Ex. 97,98,99,100
Note: If you want to change the Button you want to use, change the PressEx1 to-
PressL
PressR
PressEx2
PressEx3
PressEx4
ect.
-For these two lines of code.
if((Link->PressEx1 == false)&&(rolltimer == 0)&&(rollwait > 0)){
else if((Link->PressEx1 == true)&&(rolltimer == 0)&&(rollwait == 0)&&(Link->Action==LA_WALKING)){
Warning: The Script won't work properly if you use InputButton. It must be PressButton.
import "std.zh" required.
rollSpeed: How fast you go
rollDur: How long it lasts
cooldown: How long until you can do it again
firstSFX: The sfx played when you do it
rollSprite: In weapons/misc., put the animations in four seperate sprites in order, the order of directions are up, down, left, right, the number is the first sprite in the order. Ex. 97,98,99,100
Note: If you want to change the Button you want to use, change the PressEx1 to-
PressL
PressR
PressEx2
PressEx3
PressEx4
ect.
-For these two lines of code.
if((Link->PressEx1 == false)&&(rolltimer == 0)&&(rollwait > 0)){
else if((Link->PressEx1 == true)&&(rolltimer == 0)&&(rollwait == 0)&&(Link->Action==LA_WALKING)){
Warning: The Script won't work properly if you use InputButton. It must be PressButton.


