Utility Script Dump

Upload your games here. Download other people's games here.

Moderators: Bob the Hamster, marionline, SDHawk

Post Reply
ArtimusBena
Slime Knight
Posts: 251
Joined: Thu Nov 16, 2017 5:22 am

Utility Script Dump

Post by ArtimusBena »

# Hello OHR person, this is essentially a giant script dump with everything I could
# scrape out of Blood Ledger that could be reasonably converted for wider use.
# Check out the included .rpg file to see a few of these in action.

# It is recommended that you not cut and paste bits of this into your
# game unless you're already pretty good at scripting. Many of these
# scripts rely on other scripts in the file.

# PAY CLOSE ATTENTION TO ALL INSTRUCTIONS ATTACHED TO THESE SCRIPTS
# Also, there are potential conflicts this file could cause
# with your game and incorporating this file will take a little set up.
# Note that these scripts were built with nightly version 20220730.13022 (July 30, 2022), SLD2 build
# Recommended you use that version or later.

# If you have done your due diligence there and you're still running into
# issues, then you may email me at eponymous.ent@gmail.com and I will
# get back to you when I can.

# It's also likely my re-writes/conversions have resulted in broken scripts. Please
# report on those and I will update the package post haste.


#############
#SET UP
#############

# THERE IS UNFORTUNATELY A LITTLE SET UP YOU NEED TO DO TO INCLUDE THIS FILE.
# I have tried to make this as painless as possible. Follow these instructions:

# 1) The global variable addresses and used strings in this file may conflict with yours!
# Make sure there aren't any conflicts.
# 2) Copy the below lookup codes into your editor.
# 3) Create the below tags in your editor.
# 4) Import the slice collections in "import slice collections" folder and use the
# images in there to guide you in assigning the right lookups in those collections.
# 5) Write in your main script "include, utilityscriptdump.hss"

#Lookup Codes:
# For your convenience, here are all the special lookup codes used in this
# script package. Paste these lookup codes into the editor
# genericarray
# entityshadow
# npcsaytext
# drawline
# datadigit
# basehitbox
# animtester:cont
# animtester:sprite
# animtester:background
# animtester:controls
# animtester:data
# animtester:hud
# animtester:currentsprite
# animtester:currentpalette
# animtester:currentspeed
# animtester:currentframe
# animtester:bgcol
# paltester:red
# paltester:green
# paltester:blue
# paltester:brightness
# hitbox
# raindrop
# raindrophit

# Add these tags:
# raining


# I hope you find something useful here! Happy developing.
# - Thomas M. "Artimus Bena", 2023






A list of included scripts:

fade music in
fade music out
music fade handler
pause all sounds
stop all sounds
resume all sounds
large
small
percent
var in range
flip sign
enforce range
tether variable
angle from to
dir to angle
angle to dir
mirror direction
make slice array
wipe slice
hide slice
show slice
get sl extra
set sl extra
set lookup
get slice center x
get slice center y
anchor slice center
get top edge
get right edge
get bottom edge
get left edge
out of bounds
slice out of bounds
match sprite frame
slice empty
fade slice
animate
set spritesets
precipitation
precipitation hits ground
realign
give people shadows
give shadow
check for npcs ahead
check hero ahead
turn npc to
create hitbox
zone at pixel
look for zone at spot
look for zone at pixel
wall at pixel
npc say
destroy all npcs of id
outside deadzone left
outside deadzone right
directions pressed
new direction pressed
auto control response
set default controls
set control scheme
no debug
init debug
debug state
timestamp
show random value
draw line
show text
show data
show hitboxes
hide hitboxes
animationtester
master palette tweaker
trace taken references
show num npcs
end timers
stop timers
restart timers
cutscene
wall off empty tiles
tickskippers
bitmask
splitmask
prompt for cheatcode / accept cheat
Attachments
scriptdump.rar
(1.31 MiB) Downloaded 79 times
scriptdumptest0000.png
scriptdumptest0000.png (3.35 KiB) Viewed 1736 times
Do you make love with the same urgency you make games?
Post Reply