[Request] Custom Script Spells

Is there any tutorial on how to make custom script spells, like, when you launch a spell, it runs a custom script where you can put in what the spell should do, so you can make more than just Damage HP and MP/Heal HP and MP and code advanced costs for spells like how a spell costs 2% of max mana instead of a set amount.

Example of what i want the system to look like(this is not actual code lmao)

Sub Custom SpellScripts
///////
Case "1"
///////
}
If Target is Player.Enemy
Player(Index).TextMsg("You cast Sadism")

1 second wait
Deal 2% of Player.Enemy.HP
Heal Player.Index for 1% of Player.Enemy.HP

1 second wait
Deal 2% of Player.Enemy.HP
Heal Player.Index for 1% of Player.Enemy.HP

1 second wait
Deal 2% of Player.Enemy.HP
Heal Player.Index for 1% of Player.Enemy.HP

1 second wait
Deal 2% of Player.Enemy.HP
Heal Player.Index for 1% of Player.Enemy.HP
1 second wait

Player.Enemy.HP -= 3500
Else If

Player(Index).TextMsg("You can only attack enemies.")
End Case

}

Exit Sub

This is just an example spell. I suck at coding, and will have to do a * ton of tutorial reading, but if i have a system like this, i won’t be bound by the spell editor that much.

I would still love if range, cooldown, mana cost, and all that jazz were set in the spell editor. Just what happens when the spell is executed to be in custom script.

Currently from what i know, none of the engines have custom scripting, i don’t think there is a tutorial either.

It shouldn’t be tooo too hard to do hardcoded custom scripts, just add in a option to choose between a custom and a regular spell, if no one helps you, just message me and i’ll be able to help you on this

Log in to reply