Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - mrsix

#1
Sorry if this is a popular question among you AGS veterans, but I thought i'd crop the question up again.

How does everyone feel about the old-school adventure games that would make you have to revert to a much earlier save, or start again, if you inadvertantly forget to pick up an item, or you use it on something you shouldn't have had?

As a wanna-be adventure game producer (like us all!), I am now tempting whether this is a good thing or a bad thing.
It's obviously an out-of-date element of gaming.
How do you feel about games that follow this rule? Forget to pick up an item, or neglect to ask an important question to an NPC to reveal a peice of information. The 'Dead-end' Apoplexy, if you like  :)
#2
I will give an example.

I have this small script:

-----------------------------
function TelDial_OnClick(GUIControl *control, MouseButton button) {
if (PhoneLabel.Text=="5551552")
{
PlaySound (5);
Wait(160);
cEgo.ChangeRoom(3);
gGui3.Visible=false;

}

else
{PlaySound (4);
Display ("Wrong Number");
PhoneLabel.Text=("");
}
}
-------------------------------

Basically, when I press the button, that code works.
But, I want this piece of code to work everytime there is a variable which hits a certain number, but without having to press the button, so in theory you can just call the name of the function and it will run anytime. So I have this peice of code to check it:

--------------
function repeatedly_execute() {
   
  if (TelephoneCounter==7){
TelDial_OnClick;}
  }
-----------

Everytime I try to run it says 'GlobalScript.asc(105): Error (line 105): Undefined token 'TelDial_OnClick'


I check the userguide and it says about importing/exporting functions, but both of these bits of code are in the global script, so my understanding is that this is not necessary.
My first thought is that  '_OnClick' is an actual peice of code, so I tried renaming the function, it still didnt work.

Any ideas? Sorry if this a stupid question, normally its something silly (always the way!)

Thankyou for your help
#3
Sorry if this is an old-hat topic, I promise I did use the search tool but could not find what I wanted.

I ask because I have downloaded alot of great games here, but not many have really made me go "wow" at the graphics yet. There are some nice looking games, but the graphics often look or aim retro, keeping low-res.
Even the games that have won awards fit this description.

I think the best graphics by far that I have seen, is Earl Mansin. Brilliant crisp art.
Exile looks very good also.

What game, in your opinion, fits this profile? I'm talking lush arty graphics/animation.

Thanks  :)
#4
Sorry if i'm being a bit silly!
But i'm having a problem with a label.

I have some buttons, when I press button 1, I want it to add a "1" to the label. When I press it again, I want it to add another "1", so I would get "11"
If i pressed button one 4 times it would say "1111" in the label.

I can make it so that pressing button one sets the label to 1, but thats it. Im guessing that because it is text rather than numericals, I have to stop it from calculating, but rather ADDING the text next to it.
I thought using a code something like

function Button1_OnClick(GUIControl *control, MouseButton button)
{
Label.Text = Label.Text +("1");
}

So that it basically says keep the label as it is, but add a 1 next to what it currently contains. Obviously the above code does not work, but you can see what I mean. Does anybody know how to solve this simple problem, or even if it is possible with a label? Sorry, I have searched all evening yesterday on the manual and could not find an example i'm afraid.
#5
Hello there, new to this program and am having some problems.

I have some experience using Pascal Programming and Visual Basic, but am having problems working out how to do something.

In my game, the character goes up to a computer, and there is a text box which he types in. I can make him type in the textbox but havent got as far with the code.
Depending on what he types in, different things come back.

Now, how would you set up a basic script so that when enter is pressed, it checks to see what is typed in the textbox, and then does the action statement.
Im guessing I will need a variable of sorts.


For instance "if textbox says 'murders', show newspaper picture. etc..

Sorry, I know this is probabl very basic preliminary coding, but it has been a long time, and I have never used this program before! The manual is very helpful but obviously doesnt cater for complete noobs in programming ;o)

I would be so grateful for any examples ;o)

Thanking you (and hi!)
SMF spam blocked by CleanTalk