Menu's and Status Variables

Thanatos
25 Jan 2008, 11:45
Yo.

Whats wrong with this?

When Player Enters the Room
_________________________
Show the "Race" Menu.

~>On Race Menu<~
Choices:
Human

~>Select Human<~
Print: Humans are the predominunt race in Faerun. Humans rule most of the significant empires and kingdoms. They are the most social and tolerant of the races, except perhaps the Halflings. The only special ability the Humans possess is that they may advance in any class, and advance to any level.
Change Contents of String "race" to "Human"

When I do this and go to test it, I get a Run-Time Error 35601, saying "Element Not Found."
Any suggestions?

~Thana

steve the gaming guy
25 Jan 2008, 15:25
Can you post the code?

Thanatos
25 Jan 2008, 16:56
Yes, I've also been wondering where I can see the code :roll:

Elexxorine
25 Jan 2008, 17:05
Right click your asl file and select 'open with' choose a basic text editor, that will give you the asl codes. 'Element not found' usually means something is typed in wrong with a name of a procedure, variable, etc.

steve the gaming guy
25 Jan 2008, 20:01
text editor... like notepad. Just in case you didn't think of notepad as a text editor. :D

Thanatos
26 Jan 2008, 02:19
Here ya go.

' "Baldurs Gate - Shadows of Amn"
' Created with QDK Pro 4.02

!include <stdverbs.lib>

define game <Baldurs Gate - Shadows of Amn>
asl-version <400>
gametype singleplayer
start <Character Creation Room>
game author <Thanatos>
game info <Created with QDK Pro 4.02>
define variable <Name>
type string
display <Name: !>
end define
define variable <Race>
type string
display <Race: !>
end define
define variable <Class>
type string
display <Class: !>
end define
define variable <Breaker>
type numeric
value <0>
display <------------------------------>
end define
define variable <Level>
type numeric
value <0>
display <Level: !>
end define
define variable <TNL>
type numeric
value <1000>
display <TNL: !>
end define
end define

define options
debug on
panes on
end define

define room <Character Creation Room>
look <Build Yourself.>
indescription <You are in the:>
script {
msg <What are you known as in this world?>
enter <Name>
choose <Race>
}
end define

define room <Prison>
look <The Prison is derelict, >
end define

define selection <Race>
info <What Race are you?>
choice <Human> {
msg <Humans are the predominunt race in Faerun. Humans rule most of the significant empires and kingdoms. They are the most social and tolerant of the races, except perhaps the Halflings. The only special ability the Humans possess is that they may advance in any class, and advance to any level.>
set string <race; Human>
}
choice <Elf> {
msg <Elves tend to be shorter and slimmer then normal humans. Their features are finely chiseled and delicate, and they speak in melodic tones. Elves are looked upon to be frivolous and aloof. They concern themselves with natural beauty, dancing, froliking, and other similar persuits. Their humor is clever, as is their songs and poetry. Elves have a natural resistance to charm and sleep magics. They can see in the dark with infrasion, and are very skilled with the bow and long sword. They have a bonus to their dexterity, but incur a penalty to their constitution. Elves that follow the path of Evil are known as Drow.>
set string <race; Elf>
}
choice <Half-Elf> {
msg <Half-Elves are a mix of Human and Elven blood. They are handsome folk, with good features from each of their races. Half-Elves have the curiosity, inventivness, and ambition of their human ancestors, and the refined senses, love of nature, and artistic tastes of their Elven ancestors. Half-Elves have a limited resistance to Charm and Sleep spells. They can see in the dark with infrasion.>
set string <race; Half-Elf>
}
choice <Dwarf> {
msg <Dwarves are short stocky fellows, easily identifiable by their size and shape. They have ruddy cheeks, dark eyes and dark hair. Dwarves tend to be dour and taciturn. They are given to hard work, and care little for most humor. They enjoy beer, ale, mead, but most of all, they love gold. Dwarves have a natural resistance to Magic and Poisen. They possess infrasion, which allows them to see in the dark. They gain a bonus to their constitution, but incur a penalty to their charisma and dexterity. Dwarves that turn to the path of evil are known as Duergar.>
set string <race; Dwarf>
}
choice <Gnome> {
msg <Kin to Dwarves, Gnomes are noticaebly smaller then their distant cousins. Gnomes, as they prudly maintain, are also less rotund then Dwarves. Most have dark tan or brown skin, white hair, and rather large noses. Gnomes have lively and sly senses of humor, especially for practical jokes. They have a love for nature which is only matched by their love of jems and jewlery. Gnomes have a natural resistance to Magic. They can see in the dark with infrasion. They gain a bonus to their intelligence, but incur a penalty to their wisdom.>
set string <race; Gnome>
}
choice <Halfling> {
msg <Halflings are short, generally plump, much like small humans. Their faces are round and broad, and often quite florid. Their hair is typically curly, and the tops of their feet are covered in coarse hair. Often they prefer the comforst of home to dangerous adventuring. They enjoy good living, rough humor and homespun tales. Halflings are highly resistant to Poisens and Magic. They are naturally skilled with slings as weapons, and have a limited ability to see in the dark. They recieve a bonus to their dexterity, but incur a penalty to their strength. There are three "Clans" of Halflings around the Realms: The Hairfoot reside to the North, the Tallfellow to the East and the Stout to the South.>
set string <race; Halfling>
}
choice <Half-Orc> {
msg <Half-Orcs are born from a union of Human and Orc parents. They are as tall as Humans, but slightly heavier due to their muscualr builds. Their greenish pigmentation,sloping forehead, jutting jaw, prominent teeth and coarse body hair make their lineage plain to see. Half-Orcs are known for their great strength.>
set string <race; Half-Orc>
}
end define
define selection <Class>
info <What is your Class?>
choice <Fighter> {
msg <The Fighter is a champion, swordsman, soldier and brawler. He lives or dies by his knowledge of weapons and tactics. Fighters can be found at the front of any battle, contesting toe-to-toe with monsters and villains. A good Fighter needs to be strong and healthy if he hopes to survive.>
set string <class; Fighter>
}
choice <Ranger> {
msg <The Ranger is a warrior and a woodsman. He is skilled with weapons and knowledgeable withe the ways of the forest. The Ranger often guides and protects lost travelers and honost peasent-folk. A Ranger needs to be strong and wise in the ways of nature if he hopes to survive. >
set string <class; Ranger>
}
choice <Paladin> msg <A Paladin is a warrior bold and pure, >
end define

Elexxorine
26 Jan 2008, 11:39
define variable <Race>
type string
display <Race: !>
end define
set string <race; Human>
Notice one is capitalised, the other isn't. I would put everything in lower-case for simplicity so this kind of thing doesn't happen.

Btw, elves are meant to be taller than humans...

paul_one
26 Jan 2008, 16:11
http://en.wikipedia.org/wiki/Elf

that shows elves as small creatures.

It depends what mythology you follow.

Freak
26 Jan 2008, 17:55
I thought Quest was case-insensitive as far as variable names went.

Elexxorine
26 Jan 2008, 19:24
If yu read the modern elves section it says they are bigger. Elves that are smaller were invented by Shakespeare as he didn't like the idea that they were better than humans. Elves that are smaller tend to be like fairies, those taller are more like the Tolkien elves. He mentions Drow, which are dark elves... only when the elves are of the tall variety.

Thanatos
26 Jan 2008, 23:52
Alright alright, I'll make the Elves taller. :roll:

paul_one
27 Jan 2008, 05:06
elexxorine wrote:If yu read the modern elves section it says they are bigger. Elves that are smaller were invented by Shakespeare as ...


What's that rubbish?
Faeries, trolls, elves etc have been around since the GREEKS. (well, maybe not trolls).

In almost all types of origin, they're small - like faeries or nymphs or pixie.

They have probably become taller DUE to Shakespeare (I can't be certain but wasn't a midsummer nights dream with woodland elves of human stature?).

Thanatos
27 Jan 2008, 05:11
Well I can see this is turning into a debate :) But I got my info so im running while I can.

davidw
27 Jan 2008, 09:24
Hmmm... a debate on whether creatures that don't even exist are tall or short. I could say they had, for example, three heads, four arms and spoke through a mouth on their bottom and could anyone show me an elf to prove me wrong?

Thanatos
27 Jan 2008, 10:07
davidw wrote:Hmmm... a debate on whether creatures that don't even exist are tall or short. I could say they had, for example, three heads, four arms and spoke through a mouth on their bottom and could anyone show me an elf to prove me wrong?


Lol! (Excuse the Spam, but thats all I have to say :lol: )

Elexxorine
27 Jan 2008, 13:34
What any elf looks like s generally agreed upon, apart from their being the two different kinds but everyone knows each. If I were to say dragon, for example most people would have pretty much the same creature in their head, though some people may think of say Chinese dragon rather than the bulky kind, or some with no front legs. If we saw a creature with "three heads, four arms and spoke through a mouth on their bottom" Pretty much everyone would agreed it wasn't an elf, or even close.

Thanatos
27 Jan 2008, 13:35
Agreed.

Freak
27 Jan 2008, 13:41
davidw wrote:Hmmm... a debate on whether creatures that don't even exist are tall or short. I could say they had, for example, three heads, four arms and spoke through a mouth on their bottom and could anyone show me an elf to prove me wrong?


That's nothing. Try going to a f/sf convention and shouting "Balrogs have wings!" or "Balrogs don't have wings!".

Elexxorine
27 Jan 2008, 13:59
Don't you get a mass of nerds running at you, hungry for your blood? *sniff* A had a friend once who did that... we never saw him again.

Thanatos
27 Jan 2008, 14:51
R.I.P

davidw
27 Jan 2008, 15:59
elexxorine wrote:What any elf looks like s generally agreed upon, apart from their being the two different kinds but everyone knows each. If I were to say dragon, for example most people would have pretty much the same creature in their head, though some people may think of say Chinese dragon rather than the bulky kind, or some with no front legs. If we saw a creature with "three heads, four arms and spoke through a mouth on their bottom" Pretty much everyone would agreed it wasn't an elf, or even close.


I dey you to show me an elf in real life that doesn't have three heads.

Elexxorine
27 Jan 2008, 16:05
Watch 'Lord of the Rings'... end of discussion.

paul_one
27 Jan 2008, 16:32
Bah, lord of the rings was way over-rated as a movie and probably as a book (series of?) too.

As I pointed out when I first responded, it all depends on what mythology you base your descriptions on.
If you decide to have a 3-headed elf then there's nothing to stop you - but the important thing I think we all need to find out here David - are your elves tall or short!? :D

Thanatos
27 Jan 2008, 18:36
Tall damn you!

davidw
27 Jan 2008, 20:32
elexxorine wrote:Watch 'Lord of the Rings'... end of discussion.


And that's in real life? I could have swore it was a movie myself.

Cryophile
08 Feb 2008, 22:56
It really depends on the mythology you follow. Elves can be short, but since D&D they are generally tall and slender. However, who is to say that they aren't short and fat, hairy, have bad taste in music, and eat bark (not referring to trolls)?

Thanatos
08 Feb 2008, 23:01
Trolls don't eat Bark :D

Cryophile
19 Feb 2008, 22:32
Very funny :P Have you ever met one? They'd probably eat anything.