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

Messages - Jon

#381
My code is:

function on_event(EventType event, int data) {
Ã,  if (event=eEventGotScore) {
Ã,  Ã,  if (game.score==140) player.ChangeRoom(14);
Ã,  }
}

The error message for the '(' is the line where the 'function on_event' is (can't remember line number).

I shall try that code with the extra '=' now Ashen, will edit ASAP.

EDIT: works perfectly now, thanks Ashen, have a merry christmas!
#382
Quote from: KhrisMUC on Fri 24/11/2006 22:09:57
Code: ags
function on_event(EventType event, int data) {
Ã,  if (event=eEventGotScore) {
Ã,  Ã,  if (game.score==100) player.ChangeRoom(...);
Ã,  }
}


Hi again, I have recently done the 'bulk' of my game, and I have tried to put this code in. However, when I do so the message appears, 'expected ' ( '  ' and if I add the '(' the message appears 'Unexpected ' ( '  '.
I have placed this code at the bottom of the global script, exactly as Khris has put, except I changed the number '100' with '140', and I have also changed the '...' next to the word 'ChangeRoom' to '14'. But it does not seem to work, can anybody help me with this problem?

Thanks.
#383
General Discussion / Re: The Ashes 2005
Wed 20/12/2006 17:28:25
QuoteThe Aussie team are really old but the depth of talent in the state sides is very strong, EG. Mike Hussey is 31 and only recently made it into the side, He's been brilliant for years but it's really hard to make it into the side, now he'll probably end up being one of the best batsman in the world. He's got a younger brother that is pretty good too, and will probably be in the Australian side soon.

I think your right here, as Hussey is one of the best batsman I have seen for a while, what's wrong with the aussie selectors?  :). And I also think Australia have a gem in Stuart Clark (who seems a good replacement for McGrath) as well. But they'll never get someone to replace Warne.
#384
General Discussion / Re: The Ashes 2005
Tue 19/12/2006 21:01:26
Being english I might be a bit biased, but did you see Warne's figures 156-5 altogether, and McGrath look like an old man when he was running! Just wait till the next series  >:(
#385
Critics' Lounge / Re: Cartoony Goldfish
Tue 19/12/2006 20:50:56
Personally, I think that it needs to be more fish shaped as it looks to be in the shape of a bus.
#386
Hints & Tips / Re: reactor 9
Tue 19/12/2006 20:41:49
Spoiler
I have put the burning rags on top of the tower but I can't turn the wheel. I have pressed the back-up pump, called the water guys and got all three newspapers. What do I do now?
[close]
#387
I'm no expert, but it seems to me that the left leg is kicking the right, but you may want this as he is in a hospital (injury on his leg?).


Also he has no arms  :D
#388
Thanks Ashen, I just realised that I could do the whole movement in one. So there would be no need to change the region.
#389
Don't be sorry AshenÃ,  ;D
It's my fault as I did not let other people understand the question I was asking, I was basically asking for the global script code for:

Move character
Face character
Use inventory on character - which then runs an animation

I shall take a look at your links now Ashen.

Edit: Thanks Ashen, your links helped me a lot!
There is still one problem I need solving though. I would like the region in which the dialog occurs, to change so that the player character can be moved to another room BUT only if the player character has used a certain inventory item e.g. inv item 7
#390
Hints & Tips / Re: Kinky Island
Tue 12/12/2006 20:39:31
I'm going to give you a big hint

Spoiler
You need to put it down somewhere
[close]
#391
Sorry, your right I should have added more details.
My character is thrown in a cell by the guard, and he then exits.
If the player character walks onto a region near the door, a couple of dialogs take effect.
if the player character types the correct code into the text parser, than a function begins in which messages appear, and then the dialog ends.
This has been solved by some of the above posts.
What I want after this is for the Guard to come in the room then just look at the player character, then 'Guard' stays there while normal playing is resumed (Where the GUIs come back, I don't know what this is called  ???)
after a certain inventory item is used, the player exits the room (although this I think I can do by myself).

Many thanks
#392
Sorry for double posting but I need to know the answer to the above question very quickly!
Could someone please help me?
#393
AGS Games in Production / Re: Rawl's Tablet
Sun 10/12/2006 19:42:55
This looks like a nice small game, good luck!
#394
OK, thanks Ashen.
thanks as well for the quick reply  ;D
#395
In my game my character need to get certain items e.g. 4,5,6,7,8. and a couple of messages appear (linked to the game), and the player character appears in a room. I have tried this by:
selecting the interaction editor, selecting the 'when player leaves room', and running the command, 'conditional-if player has inventory item...' the desired amount of times. Then, after this command, applying the command 'Display a message', the required amount of times, and finally using the command to move character to room - at certain co-ordinates. But after using these commands my character appears in the next room, as if ignoring all of my actions.
Can anyone solve my problem?
#396
Hints & Tips / Re: Warthogs
Sun 10/12/2006 18:18:48
I've found something

Spoiler
up by the owls there is a cheat paper for the rune exams which appears during the potions test. so not very helpful....
[close]

also what is the difference between going back in time, and going back in time at midday?
I know that one is restart as i lost my items :P
#397
Thanks for that Rubacant, that really helped!
I can now work the text parser, but after I type in the correct words, the other character replies as expected, and stops when I want, but I would like the character to move into the room (as he has just left).
Could someone please explain to me how this is done?
#398
Hints & Tips / Re: Skytower Rescue
Thu 07/12/2006 13:42:21
Sorry but i'm stuck again :S

Spoiler
I've found how to make the glue and put it on the pedals, but how do I attatch the pedals to the unicycle, I have the pizza and wire, and the upper half, and some other items which I think are irrelevent
Spoiler


EDIT: Sorry, I should've read the earlier posts.
I've been stuck for hours on the code thing, could I just have the answer, I know that there is a pattern but I just can't understand it!
[close]
[close]
#399
Hints & Tips / Re: Skytower Rescue
Tue 05/12/2006 18:51:19
Oh and also (sorry for double posting), are you meant to go upstairs or is it just for show?

#400
Hints & Tips / Re: Skytower Rescue
Sun 03/12/2006 18:26:01
Thanks Alynn, that had me going for ages, i'll try it nowÃ,  :P
Great game so far.

EDIT: Sorry, where's the rock...
SMF spam blocked by CleanTalk