game scripting

Post your FreeBASIC source, examples, tips and tricks here. Please don’t post code without including an explanation.
alfakilo
Posts: 117
Joined: Oct 02, 2009 9:18
Location: Estonia

game scripting

Post by alfakilo »

Post edited by me (older versions links removed).

SVC script its ugly its buggy but it might be fun to play with.

What it is:
Right now its scriptable map editor..but if you edit code then it can be more than that. See demo and sample scripts.




Download here (source)
http://www.mediafire.com/download/2rrxt ... i/RPG5.zip


Added Manual.txt there you can read about commands and how to use them.
Added simple tutorial (demo)
Cleaned code and removed some problems.
Added some commands.

Now i think this is it and next step will be figure out some story and put it into script.

If you have questions then ask ,if you have ideas then share.


SIMPLE MINEFIELD TYPE GAME..
Download here:
http://www.mediafire.com/download/dju1s ... efield.zip

Screenshot here:
Image
Last edited by alfakilo on Aug 03, 2016 13:06, edited 11 times in total.
alfakilo
Posts: 117
Joined: Oct 02, 2009 9:18
Location: Estonia

Re: game scripting

Post by alfakilo »

https://www.dropbox.com/s/8p1aupbsyf2zt ... 2.zip?dl=0

NB on first map there is a SOUND "icon" make sure you turn your volume down before you touch it.

Added sound support (windows only)
Added new bitmaps and sounds
Fixed some problems.
Tourist Trap
Posts: 2958
Joined: Jun 02, 2015 16:24

Re: game scripting

Post by Tourist Trap »

Unfortunately dropbox asks for an account for downloading.
srvaldez
Posts: 3398
Joined: Sep 25, 2005 21:54

Re: game scripting

Post by srvaldez »

yes, drop-box usually gives a pop-up but just close the pop-up and try again. :)
alfakilo
Posts: 117
Joined: Oct 02, 2009 9:18
Location: Estonia

Re: game scripting

Post by alfakilo »

Tourist Trap wrote:
Unfortunately dropbox asks for an account for downloading.
I can download files without logged in dropbox ..
so i think there must be way to download without logging in and without createing account there.

If i am wrong then i will upload my stuff to another host.
leopardpm
Posts: 1795
Joined: Feb 28, 2009 20:58

Re: game scripting

Post by leopardpm »

after many attempts at different file sharing hosts, I decided to use:

mediafire (requires no log-in for people to download and is pretty nifty to use)

and, for images to display in posts, I use: Imgur (http://imgur.com/
alfakilo
Posts: 117
Joined: Oct 02, 2009 9:18
Location: Estonia

Re: game scripting

Post by alfakilo »

Tourist Trap
Posts: 2958
Joined: Jun 02, 2015 16:24

Re: game scripting

Post by Tourist Trap »

alfakilo wrote:file hosted to Mediafire
http://www.mediafire.com/download/ojkq5 ... /RPG_2.zip
Ok got it downloaded. Thanks.
I guess dropbox wasn't asking you to log-in because he recognized your computer by some way.
leopardpm
Posts: 1795
Joined: Feb 28, 2009 20:58

Re: game scripting

Post by leopardpm »

leopardpm wrote:after many attempts at different file sharing hosts, I decided to use:

mediafire (requires no log-in for people to download and is pretty nifty to use)

and, for images to display in posts, I use: Imgur (http://imgur.com/
just discovered that Imagur stopped providing direct links for forum posts... very annoying... will find a good alternative... again...
Tourist Trap
Posts: 2958
Joined: Jun 02, 2015 16:24

Re: game scripting

Post by Tourist Trap »

leopardpm wrote: just discovered that Imagur stopped providing direct links for forum posts... very annoying... will find a good alternative... again...
I use POSTIMAGE, it's not bad.
leopardpm
Posts: 1795
Joined: Feb 28, 2009 20:58

Re: game scripting

Post by leopardpm »

Tourist Trap wrote:
leopardpm wrote: just discovered that Imagur stopped providing direct links for forum posts... very annoying... will find a good alternative... again...
I use POSTIMAGE, it's not bad.
Thanks! works fine now... here is the post...

http://www.freebasic.net/forum/viewtopi ... 91#p222691
alfakilo
Posts: 117
Joined: Oct 02, 2009 9:18
Location: Estonia

Re: game scripting

Post by alfakilo »

http://www.mediafire.com/download/jpy8v ... /RPG_3.zip

Now you dont have to edit freebasic code to add new script to tile
Now map file includes tile (.tinfo)
Xpos,Ypos,TYPE,"scriptname"

map_1.o
500
0,0,3,""
0,40,3,"Scripts/1-25.svc"
0,80,3,""
...


Fixed some problems and cleaned script.bas file.
sancho2
Posts: 547
Joined: May 17, 2015 6:41

Re: game scripting

Post by sancho2 »

leopardpm wrote:just discovered that Imagur stopped providing direct links for forum posts... very annoying... will find a good alternative... again...
The links are still there, they are just buried in their horrible new interface.
After you upload your image, you will see the "Give you image a title" screen.
Hover the mouse over the image and it will bring up a menu. This shows the Http:... and the word "Copy" and a down arrow.
Click the down arrow, then click "Get Share Links". This will show you the BBCode for forums, like this one:
Image
leopardpm
Posts: 1795
Joined: Feb 28, 2009 20:58

Re: game scripting

Post by leopardpm »

The links are still there, they are just buried in their horrible new interface.
very annoying - why do programmers do those kind of things - make things 'harder' to accomplish?
alfakilo
Posts: 117
Joined: Oct 02, 2009 9:18
Location: Estonia

Re: game scripting

Post by alfakilo »

First post updated.
Added Manual.txt so you can read HOW TO use script.

Also cleaned code and removed some mistakes.

Have fun
Post Reply