Hi Tom.
I'm going to have to dash off myself, but I think that might be the issue
really.
The language tutorial provides very good basic examples of each thing, eg,
functions, variables etc, while philip's example games provide commented
examples of full scale games.
I think i need to look at something in betwene to get the basic rules and
how the elements are supposed to interact.
Right now it's as if I have a spanish dictionary, and a spanish news
paper, ---- but no short centences or paragraphs to show how these things
might be used.
Perhaps, some examples of code which does basic things, such as start off
with a total (a global variable), then perform a few operations on that
total going through several functions to end up with another number ---- eg,
adding up items in a shopping list, would be helpful to look at, or a basic
user in put limited consequence setup like calling a coin toss would be
useful here.
I'm really sorry about list spam and questions. I freely admit I haven't
studdied anything along these lines for quite a while, ---- not in fact
sinse I did my last module in formal logic (and unfortunately the system we
learnt used a very standard lingyistic syntax), I'm probably rather rusty at
this sort of thing.
Nevertheless, I am prepared to put in the work to learn if this is what is
required, as I deffinately! would like to create that text rpg.
Beware the grue!
Dark.
----- Original Message -----
From: "Thomas Ward" <[email protected]>
To: "Gamers Discussion list" <[email protected]>
Sent: Thursday, March 25, 2010 10:52 AM
Subject: Re: [Audyssey] Script error irritation
Hi Dark,
Unfortunately, I've got to go soon so I don't have much time to go
over this with you in detail right now, but I did see some
syntactical errors in your code.For example, you consistantly used a
semi-colon after your If and Else statements. That's not legal code.
Here is an example of what I mean.
// Bad code
Else;
{
(alert("window", my_health + hp));
}
// Good code
Else
{
(alert ("window", my_health + hp);
}
You had an extra semi-colon and an extra right perenthesis in there
that didn't need to be there. I can see you are really struggling with
the basic language syntax. Try and hang in there and see if you can
get some good scripts to look at. it might help you figure this stuff
out.
HTH
On 3/25/10, dark <[email protected]> wrote:
Hi Tom.
That makes sense, the problem is I'm not getting anything else to work
either.
currently, I'm trying to display a set of list boxes which count hp down
as
the D key is pressed, then the character dies at zero and the game exits.
something seems to be going wrong with both my conditional statements and
my
global variable though, and I'm uncertain as to what.
If anyone who knows such things could advise me I'd appreciate it, sinse
I
really can't understand what's wrong here.
int hp = 100;
string my_health = "hello, my hp is currently";
int down = hp - 10;
void main ( )
{
keypressed = (key d, down);
}
If
(hp = 0);
{
alert = ("death", "Oh dear, I'm dead!") exit);
}
Else;
{
(alert("window", my_health + hp));
}
However, I stil can't get the blasted thing to do more than display a
message. I'm trying to get it to count hp down from 100 to 0 at a rate of
ten a turn displaying ten message boxes then a death message and exit,
but
even though I appear to have followed all the rules I stil get a bunch of
errors.
---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to
[email protected].
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the
list,
please send E-mail to [email protected].
---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to [email protected].
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the list,
please send E-mail to [email protected].