Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

what about custom button for main menu? v104 manual says 

bind

bind [button] [scriptname] - Binds a script to a button to execute when the button is clicked. scriptname - the name of the file with the script (without extension) that will be executed when the button is clicked. The file must be in the Data/Scripts folder. The script will be executed only while the player has the ability to move. This command should only be used in the Data/Scripts/Menu.script file (see Customizing Menu Items).

so i declare

bind viewcredits viewcredits

in menu.script at beginning

then

mbutton "VIEW CREDITS" 50 610 "viewcredits" -1

under //MAIN


it makes button but nothing happns when click, i assume because manual says script only execute when player can move. so is there any ways to try and do what i am trying to do?

game is for a game jam that requires ability to view credits for assets from main menu of game.

i can make first map show credits in script for first map, and just put on main menu title screen to press NEW GAME to view credits, i am sure that will satisfy requirements for jam. i know v104 manual says no new buttons for main menu but that seems at odds with having a script to bind button for main menu. am i misunderstanding something?

(1 edit)

That means that the command should only be used in this script to avoid any troubles with the bind iteself.

You can't create your own menus. The only way is to edit an existing one by removing some options you don't need to make space and then putting your own text where needed.

Or add credits to the background which you can import through "System Resources Import"

has the script changed for give weapon?

i am using

give weaponname1 1

give weaponname2 2

text "weapon stash"

map return

no funny characters in weaponname

it is called by a terminal. the text is displayed so script is being called.

It was never like this. 

"weapon" is not a weapon name  it's a keyword. 

So 

give weapon slotNumber

(1 edit)

ok i was misreading the manual. thanx