CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Tech Boards
Computer Programming
Game Development
[Script]5 Commands
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Inactive Account" data-source="post: 88" data-attributes="member: 12"><p>Hi, </p><p>This post is a script post with : custom commands for game maker(in game) </p><p></p><p>[SPOILER]</p><p>{</p><p> //This script, will save the game, load the game, delete a save, go to the room, "room1", or quit the game!</p><p> //Make a file in the game's directory, called "saves"!!!</p><p> //Make the first room's name, "room1"</p><p> code = get_string('Command:','')</p><p> quit = 'quit/'</p><p> menu = 'menu/'</p><p> save = 'save/'</p><p> load = 'load/'</p><p> delete = 'delete/'</p><p> </p><p> if code = quit then</p><p> {</p><p> game_end()</p><p> }</p><p> if code = menu then</p><p> {</p><p> room_goto(room1)</p><p> }</p><p> if code = save then</p><p> {</p><p> code2 = get_string('Save as:','')</p><p> game_save('saves/' + code2 + '.createfile')</p><p> }</p><p> if code = load then</p><p> {</p><p> code3 = get_string('Load:','')</p><p> game_load('saves/' + code3 + '.createfile')</p><p> }</p><p> if code = delete then</p><p> {</p><p> code4 = get_string('Saves name:','')</p><p> file_delete('saves/' + code4 + '.createfile')</p><p> show_message('Deleted save file!')</p><p> }</p><p>}</p><p>[/SPOILER]</p><p></p><p>Put this in a keyboard action(because mouse option is not realy cool for this)</p></blockquote><p></p>
[QUOTE="Inactive Account, post: 88, member: 12"] Hi, This post is a script post with : custom commands for game maker(in game) [SPOILER] { //This script, will save the game, load the game, delete a save, go to the room, "room1", or quit the game! //Make a file in the game's directory, called "saves"!!! //Make the first room's name, "room1" code = get_string('Command:','') quit = 'quit/' menu = 'menu/' save = 'save/' load = 'load/' delete = 'delete/' if code = quit then { game_end() } if code = menu then { room_goto(room1) } if code = save then { code2 = get_string('Save as:','') game_save('saves/' + code2 + '.createfile') } if code = load then { code3 = get_string('Load:','') game_load('saves/' + code3 + '.createfile') } if code = delete then { code4 = get_string('Saves name:','') file_delete('saves/' + code4 + '.createfile') show_message('Deleted save file!') } } [/SPOILER] Put this in a keyboard action(because mouse option is not realy cool for this) [/QUOTE]
Verification
Post reply
Forums
Tech Boards
Computer Programming
Game Development
[Script]5 Commands
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top