My only grumble with your typelib was the fact that it changed so many default actions etc, so I wasn't sure what was going to happen in the game (not having a list of commands that were added).
If this is a much simpler, and less intrusive library than I'd be glad to have a go and see how it works in my game.
As with documentation, I think "what you do to customize an object" is the first. Properties/actions that need alteration.
Personally I'd love to customize EVERYTHING... Messages etc - so if you store those in variables so I can change that on startup that'd be brill!
PostPosted: Thu Jul 14, 2005 3:20 pm Post subject:
i would like it if some-one made an rpg lib, i know tron made one for fighting but i mean generally with build in stats, inv, banking, shops, the works
' "grid demo"
' Created with QDK 3.53 - UNREGISTERED VERSION
define game <Grid Demo>
asl-version <350>
gametype singleplayer
game version <test>
game author <elexxorine>
game copyright <>
game info <Created with QDK 3.53 - UNREGISTERED EVALUATION VERSION.>
default fontname <MS Sans Serif>
default fontsize <14>
background <black>
foreground <green
start <start room>
startscript { do <start up>
}
define variable <position>
type numeric
value <0>
display nozero <position: !>
end define
end define
define room <grid room>
look <the room feels familiar, like you've been here before.>
script {
if <grid[%position%]; 1> then{
create exit north <grid room;>
create exit west <end room;>}
if <grid[%position%]; 2> then{
create exit south <grid room;>}
if <grid[%position%]; 3> then{
create exit north <grid room;>
create exit south <grid room;>}
if <grid[%position%]; 4> then{
create exit east <grid room;>}
if <grid[%position%]; 5> then{
create exit north <grid room;>
create exit east <grid room;>}
if <grid[%position%]; 6> then{
create exit east <grid room;>
create exit south <grid room;>}
if <grid[%position%]; 7> then{
create exit north <grid room;>
create exit east <grid room;>
create exit south <grid room;>}
if <grid[%position%]; 8> then{
create exit west <grid room;>}
if <grid[%position%]; 9> then{
create exit north <grid room;>
create exit west <grid room;>}
if <grid[%position%]; 10> then{
create exit west <grid room;>
create exit south <grid room;>}
if <grid[%position%]; 11> then{
create exit north <grid room;>
create exit south <grid room;>
create exit west <grid room;>}
if <grid[%position%]; 12> then{
create exit west <grid room;>
create exit east <grid room;>}
if <grid[%position%]; 13> then{
create exit north <grid room;>
create exit west <grid room;>
create exit east <grid room;>}
if <grid[%position%]; 14> then{
create exit west <grid room;>
create exit south <grid room;>
create exit east <grid room;>}
if <grid[%position%]; 15> then{
create exit north <grid room;>
create exit east <grid room;>
create exit south <grid room;>
create exit west <grid room;>}
}
end define
define room <end room>
look <you have reached the end of the maze, and won the game.>
end define
define procedure <start up>
set <grid[1]; 12>
set <grid[2]; 12>
set <grid[3]; 12>
set <grid[4]; 12>
set <grid[5]; 10>
set <grid[6]; 6>
set <grid[7]; 14>
set <grid[8]; 14>
set <grid[9]; 12>
set <grid[10]; 9>
set <grid[11]; 3>
set <grid[12]; 1>
set <grid[13]; 7>
set <grid[14]; 12>
set <grid[15]; 10>
set <grid[16]; 7>
set <grid[17]; 12>
set <grid[18]; 13>
set <grid[19]; 10>
set <grid[20]; 3>
set <grid[21]; 5>
set <grid[22]; 8>
set <grid[23]; 6>
set <grid[24]; 9>
set <grid[25]; 1>
end defineDo you not have to declair an array as a variable?