- Joined
- Aug 4, 2014
- Messages
- 226
- Reaction score
- 128
- First Language
- English
- Primarily Uses
I'm planning a game where a primary mechanic is the ability to own and manage your own ship, so I've been working on a script to do just that.
Its still early so a lot of stuff i want to add isnt there yet, plus im using badly drawn placeholders for a lot of the art.
It implements well, and so far ive got no issues with it interfering with the other game functions.
Script download - http://pastebin.com/ehjUbaGw
Game progress - http://forums.rpgmakerweb.com/index.php?/topic/31423-beyond-the-storm-still-very-early-wip/
Instructions for use -
v0.3
- ship swapping and disabling
- optional captain battles
- auto swap battlebacks
- cleaned up code
Its still early so a lot of stuff i want to add isnt there yet, plus im using badly drawn placeholders for a lot of the art.
It implements well, and so far ive got no issues with it interfering with the other game functions.
Script download - http://pastebin.com/ehjUbaGw
Game progress - http://forums.rpgmakerweb.com/index.php?/topic/31423-beyond-the-storm-still-very-early-wip/
Instructions for use -
Script options-
All options are at top of script, the most improtant one is shipid. This is the global variable ID (default is 10) that will tell the game where your ship is, if it is set to a number then this will point to the actor ID of your ship, otherwise all ship functions will be disabled. It will always be disabled by default in a new game until the variable is updated.
I like to use noah as my ship and variable 10 as my id holder, so to activate I would create an event somewhere with @>Control Variables [0010] = 10 in it.
Creating a ship-
Using noah as my example, you should rename him and replace his portrait (his sprite doesnt matter) with your new ship. You should also make a set of weapons, armour and skills unique for ship use and make sure the skill ID is set in the script options. All other stuff is left up to you.
Ship battles-
To create a ship battle you first create an enemy, then give him the note tag <shipbattle> and you are done. Any battle regardless of how it was initiated, as long as the first enemy to spawn has that tag will be a ship battle. If you enter a fight against a ship enemy without a ship then you will engage in a regular fight.
Captain battle-
If you give you ship enemy another tag saying <captain x> then immediatly after the battle is over a new battle will activate against the troop type with the id of x, so if i had a ship enemy with a slime captain i would put <captain 1> in the notes then as soon as the fight against the ship is over, i would fight a regular party battle against captain slime.
All options are at top of script, the most improtant one is shipid. This is the global variable ID (default is 10) that will tell the game where your ship is, if it is set to a number then this will point to the actor ID of your ship, otherwise all ship functions will be disabled. It will always be disabled by default in a new game until the variable is updated.
I like to use noah as my ship and variable 10 as my id holder, so to activate I would create an event somewhere with @>Control Variables [0010] = 10 in it.
Creating a ship-
Using noah as my example, you should rename him and replace his portrait (his sprite doesnt matter) with your new ship. You should also make a set of weapons, armour and skills unique for ship use and make sure the skill ID is set in the script options. All other stuff is left up to you.
Ship battles-
To create a ship battle you first create an enemy, then give him the note tag <shipbattle> and you are done. Any battle regardless of how it was initiated, as long as the first enemy to spawn has that tag will be a ship battle. If you enter a fight against a ship enemy without a ship then you will engage in a regular fight.
Captain battle-
If you give you ship enemy another tag saying <captain x> then immediatly after the battle is over a new battle will activate against the troop type with the id of x, so if i had a ship enemy with a slime captain i would put <captain 1> in the notes then as soon as the fight against the ship is over, i would fight a regular party battle against captain slime.
- ship swapping and disabling
- optional captain battles
- auto swap battlebacks
- cleaned up code
Last edited by a moderator:

