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 - Edwin Xie

#61
Due to the lack of popularity, this project will be abandoned.
#62
Phew! "ags262final.zip" is identical to the "ags_262.zip" now I don't have to download again. I really like the new features. Just what I needed to do my game.
#63
Actually, that function is only for the script interactions. For example, you choose "Look at Hotspot" and for it, you display a message and your didn't do it by script. Then if you look at the script for that hotspot, there is nothing. It actually saves it.
Yes, it will, the game will not know which hotspot you mean to add the script.
#64
Meh, it's too late, 2.62 final is already released....or is it?
#65
Competitions & Activities / Re: The ASCII game
Sun 07/11/2004 21:21:03
                  |
                  |
                  |
                  |
                  |
                  |
                  .
There. Not related to AGS, adventure games, Eric, m0ds, CJ, nor creativity. :P

Next up: a sacred pencil box
#66
Everybody else evacuated, you are here trying to stop it.
#67
That is very good! :o You did that in paint? Continue this project!
#68
Ah! Why couldn't I have found that out? Interesting use though.

EDIT: Hmm, you are right, it doesn't have anything for after the screen fades in Player Enters Screen.
#69
I wanted to know which one is your favorite.
#70
I believe what you are looking for is the on_event, unhandled_event only does something when the player interacts with something while on_event is an event done by the game. You understand? If you don't know how I got this, look closely...
Quote
on_event (int event, int data)
Called whenever certain game events happen.
And what you are looking for is
Quote
on_event (int event, int data)
.......
ENTER_ROOM    called just before room Player Enters Screen event is run.
              DATA = new room number

I don't really know how you can really classify the hotspot. Perhaps the advanced scripters will know...
*Edwin looks at them...
#71
Completed Game Announcements / Re: The Cube
Sun 07/11/2004 02:04:32
I got the spider but the head says that I still have something missing to go back home.
#72
Nice game, but I was dissapointed when this game is about 10MB.
#73
Sorry if it took one whole month before I post but I couldn't think of anything. I hope people try to do this unlike last time But anyway--

Rules:
Each time a winner wins a specific competition, they post another thread about a specific competition in this forum. The old thread on that specific competion will get locked if the winner of the competion post another thread. Each contestant must use at least 3 of the specified items plus 5 more primary items. You must come face to face with the threat and stop it. One more thing, you have to make this as logical as possible.

Ooh! What do I get if I win?
Uh....how about digital gold?

Scenario:
Some terrorists are going to hijack a plane and then crash the Empire State Building and you work there. You have heard the threat on TV and you must stop the terrorists before it is too late. If you died then it will come on the news and will be like the 9/11 incident.

Items:
Paper Clip
Emergency Flare
Laptop
$5,000 dollar cash
ID
Flashlight
Already-prepared-terrorist-crash-kit (Includes bomb, gun[any], handcuff, parachute, loudspeaker, radio, small color TV and two more items [will not influence the 5 primary items limit])

Good luck!

Edit: Changed the way I worded it
Edit Two: Extended the time limit. I hope poeple participates. On second thought, maybe I could be undecided after a few days after the deadline. :-\
#74
Competitions & Activities / Re: The ASCII game
Sun 07/11/2004 00:35:39
                          >>>>>>>>>>>
\>>>>>>>>>>>                         >>>>>>>>>>
\                                                                       >>>>>
  \                                                                  O              >>>
   \                                                                           .          >>
   /                                                                                >>>
  /                                                                       >>>>
/>>>>>>>>>>>                        >>>>>>>>>>
                           >>>>>>>>>>>

A dolphin. Hmm, it might look like a shark.

Next: A very detailed laptop
#75
I'm a person who really watches the Simpsons. If you don't know what it is, google it. I believe that someone here is making a game based on the Simpsons. Anyway, what is your favorite quote from the Simpsons? Mine is (this what Homer read from that old myth book):
Quote
...........
Homer: (Ghostly voice) Bart......I have come back from the dead........
Bart: It looks like you have come back from the buffet.
Homer: Why you little! (Tries to strangle Bart but can't because he is a ghost)
Bart: Haha....
...........
#76
When you put the scripts in repeatedly execute it doesn't specifically have to be repeatedly executed. This can be done with if statements.

EDIT: Or do you mean unhandled_event? As described from the manual:
Quoteunhandled_event (int what, int type)
Called when an interaction is run, but no events are listed in the interaction window. This could be used to display a default "I can't do that" type of message. The values of WHAT and TYPE tell you what the player did.
The possible values are listed below:

WHAT TYPE Description
1    1   Look at hotspot
1    2   Interact with hotspot
1    3   Use inventory on hotspot
1    4   Talk to hotspot
1    7   Pick up hotspot
1    8   Cursor Mode 8 on hotspot
1    9   Cursor Mode 9 on hotspot
2    0   Look at object
2    1   Interact with object
2    2   Talk to object
2    3   Use inventory on object
2    5   Pick up object
2    6   Cursor Mode 8 on object
2    7   Cursor Mode 9 on object
3    0   Look at character
3    1   Interact with character
3    2   Speak to character
3    3   Use inventory on character
3    5   Pick up character
3    6   Cursor Mode 8 on character
3    7   Cursor Mode 9 on character
4    1   Look at nothing (ie. no hotspot)
4    2   Interact with nothing
4    3   Use inventory with nothing
4    4   Talk to nothing
5    0   Look at inventory
5    1   Interact with inventory (currently not possible)
5    2   Speak to inventory
5    3   Use an inventory item on another
5    4   Other click on inventory
Note that the "Character stands on hotspot" event does not trigger this function, and it will not be triggered if there is an "Any click" interaction defined. This function is not triggered if the player clicks on nothing (hotspot 0).
The on_key_press and on_mouse_click events can also be handled by individual room scripts. If you add their function definitions to your room script in a similar way to how they are in the global script, the room script can intercept the keypress/mouseclick first, and then decide whether to pass it on to the global script or not. See the ClaimEvent function for more.

Or maybe you want on_event?
Quoteon_event (int event, int data)
Called whenever certain game events happen. The value of DATA depends on which event has occured. This allows you to perform checks or update things every time the player does something, regardless of which room it is in. The possible values of event are:

ENTER_ROOM    called just before room Player Enters Screen event is run.
              DATA = new room number
LEAVE_ROOM    called just after room Player Leaves Screen event is run.
              DATA = room number they are leaving
GOT_SCORE     called whenever the player's score changes
              DATA = number of points they got
GUI_MDOWN     mouse button pressed over a gui
              DATA = GUI number
GUI_MUP       mouse button released
              DATA = GUI number it was pressed down over
ADD_INVENTORY the player just got a new inventory item
              DATA = inventory item number that was added
LOSE_INVENTORY the player just lost an inventory item
              DATA = inventory item number that was lost
RESTORE_GAME  tells your game that it has just been restored from a save game
              DATA = save slot number
#77
Correction: 2.62 but anyway, you could always use a script like:


Put this script in, use dustbin with old man interaction (Don't delete the animation of the old man with the dustbin though):
SetGlobalInt(GLOBALINT,1);


Put this script in, use tire with old man interaction (Don't delete the animation of the old man with both though):
if (GetGlobalInt(GLOBALINT)== 1){ // if the dustbin is already on the old man
SetGlobalInt(GLOBALINT,2);
}


Put this in the interaction for the region of the old man:
if (GetGlobalInt(GLOBALINT)==1){ // The tire is on the old man
blahblah;
}
else if (GetGlobalInt(GLOBALINT)==2){ //The tire and the wastebasket is on the old man
blahblah;
}
#78
Completed Game Announcements / Re: The Cube
Sat 06/11/2004 23:10:57
That eye guy told me that I didn't have everything I needed to get back home. I didn't get the spider.....but I did get everything else. Is there anything missing?
#79
I believe it is function repeatedly_execute.  ;)
#80
Completed Game Announcements / Re: The Cube
Sat 06/11/2004 20:56:51
Hey, I'd be glad to fix any bad script in your game. Just PM me with the script.
SMF spam blocked by CleanTalk