Bloodbane's Simple Scripts (re-upload)

(Bloodbane's) Simple Scripts 2022-09-16

No permission to download

aL BeasTie

Well-known member
Simple but very useful scripts by Bloodbane
Vault Link - Bloodbane's Simple Scripts (re-upload)

To use these you must copy scripts.c to data/scripts - and add this to your char header
animationscript data/scripts/script.c


usage example -
Code:
@cmd dasher 0 0 0

Function description:

Code:
block {int}
 Sets blocking status
 0 = block status is off
 1 = block status is on

move {x} {z} {y}
 Teleports with certain distance
 x = x movement
 z = z movement
 y = y movement


dasher {x} {y} {z}
 Dash with desired speed. Similar to 'jumpframe' with no frame requirement
 x = x speed
 y = y speed
 z = z speed

leaper {x} {y} {z}
 Jump with desired speed. Same as 'jumpframe' with no frame requirement
 x = x speed
 y = y speed
 z = z speed

mpcost {cost}
 Spend some MP. Just like 'energycost' but can be declared more than once.
 cost = Mp cost

limiter {limit}
 Prevents hero from performing the animation if his/her MP is less than Limit. If MP is not enough, hero is forced to play IDLE.
 limit = Mp limit

clearL
 Clears all local variables

keyint {animation} {frame} {key} {hold} {minhealth}
 Change current animation if defined key is pressed or released provided HP is more than minimum health
 animation = animation to change to
 frame = frame to start
 key = key to press or release. Accepted values are:
  "U" = Up
  "D" = Down
  "J" = Jump
  "A" = Attack
  "S" = Special
  "A2" = Attack2
 hold = hold/release flag.
  0 = Hold
  1 = Release
 minhealth = Minimum health char must have

keyflip
 Change facing direction if left or right is pressed

shoot {projectilename} {x} {y} {z}
 Shoot projectile from certain distance. Same as 'throwframe' without frame requirement
 projectilename = name of shot projectile
 x = x distance relative to char
 y = y distance relative to char
 z = z distance relative to char

shooter {projectilename} {x} {y} {z} {Vx} {Vy} {Vz}
 Shoot projectile from certain distance and with certain speed
 projectilename = name of shot projectile
 x = x distance relative to char
 y = y distance relative to char
 z = z distance relative to char
 Vx = x velocity
 Vy = y velocity
 Vz = z velocity

keyshoot {projectilename} {x} {y} {z} {Vx} {Vz}
 Shooting projectile with key based speed control. Up or down key moves the projectile up or down respectively. Projectile moves forward whether up or down is pressed or not
 projectilename = name of shot projectile
 x = x distance relative to char
 y = y distance relative to char
 z = z distance relative to char
 Vx = x velocity
 Vz = z velocity

toss {bombname} {x} {y} {z}
 Toss bomb from certain distance. Same as 'tossframe' without frame requirement
 bombname = name of shot projectile
 x = x distance relative to char
 y = y distance relative to char
 z = z distance relative to char

spawn01 {name} {x} {y} {z}
 Spawn certain entity at certain distance. Same as 'spawnframe' without frame requirement
 name = name of spawned entity
 x = x distance relative to char
 y = y distance relative to char
 z = z distance relative to char


shooter2 {projectilename} {x} {y} {z} {Vx} {Vy} {Vz}
 Shoot special projectile from certain distance and with certain speed
 projectilename = name of shot projectile
 x = x distance relative to char
 y = y distance relative to char
 z = z distance relative to char
 Vx = x velocity
 Vy = y velocity
 Vz = z velocity

[attachment deleted by admin]
 
Last edited:
Man, I didn't see this kind of explanation of this script before or probably I missed reading this in Lavalit. I can't remember this was posted back a long time ago. Anyways, thanks for post, Beastie. ;D
 
You should probably upload the script file instead of attaching it; attachments eventually expire, uploads last forever (this was true of Lavalit too; it's automatic). I'll make a category for scripts.

DC
 
Yeah, see edit above. I'm making a category for scripts, sprites, and other random things.
 
Apologies for the threadomancy...
So I've tried using this,and while it works on some characters, other crash at character select. I've followed the instructions exactly. I dont know what I'm doing wrong. Is there some necessary component i'm missing?
 
Works perfectly!
Even managed to get a proper "look up" and "Direction up attack" running correctly. Before then I was using a script Bloodbane gave me to attack up, but it fired directly from IDLE anim. Didn't look right, but it was the best I had and I was grateful to have it. Gonna see if I cant get Crawling to work properly now.  ;D 
 
Back
Top Bottom