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 - Akumayo

#241
I downloaded a new copy of AGS, and the problem persists.

More bad news also, I tried placing an interaction in the inventory item's "Other Click on Item" script, and it doens't run when clicked either.  I suppose I can use a Listbox instead of the inventory for what I need...  thanks for trying anyway everybody...
#242
I tried that code just now, and the message wasn't returned no matter where I clicked (including the inventory item).  Perhaps my AGS editor has a problem?  I'll try downloading AGS over, and importing the game into it, and see if anything happens...
#243
I am shamed...
#244
I think I'll try using the unhandled_event condition, and get back to you on how that works out.Ã,  Thanks for your help so far again.

EDIT:

Tried out the unhandled_event condition like so:
Code: ags

#sectionstart unhandled_event  // DO NOT EDIT OR REMOVE THIS LINE
function unhandled_event(int what, int type) {
  if (what == 5 && type == 4) {
    Display("Unhandled Event is running.");
    player.ActiveInventory = InventoryItem.GetAtScreenXY(mouse.x, mouse.y);
  }
}
#sectionend unhandled_event  // DO NOT EDIT OR REMOVE THIS LINE


And still, you guessed it, the message does not display, and the inventory is not selected...Ã,  I'm going to cry now...Ã,  :'(

Joking of course, but I am getting a mite frustrated...Ã,  Any other ideas maybe?Ã,  Once again again, thanks for your help so far.

-Regards, Akumayo
#245
General Discussion / Re: Christopia
Wed 10/05/2006 23:38:23
Well, since we haven't heard from the rebellion in a while, why not escort our army of wemon back into our houses the city?
#246
General Discussion / Re: Christopia
Mon 08/05/2006 02:01:07
Reflective stickers you say!  I like shiny things!  Maybe I should reconsider... we could just steal the wemon, as you suggested.. but from where?  How about Cuba?  No one likes Cuba!
#247
General Discussion / Re: Christopia
Mon 08/05/2006 01:54:05
Well, I'll tell you right now, if we can't clone women at our own discretion free of charge, and give them out to every man on the island, then I WILL take up arms against this union.Ã,  Just call me a "fire-eater" and give me a gun!
#248
  • Handle Inventory Clicks in Script checked?
  • Nothing changing the mode?

    Well... I know I've done both of those.Ã,  Here's more info that might help:

    -The gui containing the inventory is a Popup-Modal
    -I tried this:
    Code: ags
    
    Ã,  if (button == eMouseLeft) {
    Ã,  Ã,  Display("Left-Clicking");
    Ã,  Ã,  if (mouse.Mode == eModeChoose) {
    Ã,  Ã,  Ã,  int current_item = 1;
    Ã,  Ã,  Ã,  while (current_item <= GetGameParameter(GP_NUMINVITEMS, 0, 0, 0) - 1) {
    Ã,  Ã,  Ã,  Ã,  if (InventoryItem.GetAtScreenXY(mouse.x, mouse.y) == inventory[current_item]) {
    Ã,  Ã,  Ã,  Ã,  Ã,  Display("Item Found"); player.ActiveInventory = inventory[current_item]; }
    Ã,  Ã,  Ã,  Ã,  current_item ++;
    Ã,  Ã,  Ã,  }
    Ã,  Ã,  }
    ...
    


    It too is located before the IsGamePaused check.Ã,  However, it shows no display messages when I left click over any of my popup-modal GUIs AND my Normal GUIs AND my Persistant GUIs.Ã,  Is it possible that the GUIs are blocking the clicks?Ã,  Is there a way around this?

    Once again, thank you for your patience.

    -Akumayo
#249
General Discussion / Re: Christopia
Mon 08/05/2006 01:39:11
Hrm... if these illeged "rebels" were to take over the island, would they support the cloning of women to distribute to the men, free of charge?
#250
Alrighty then, new
Code: ags

function on_mouse_click(MouseButton button) // called when a mouse button is clicked. button is either LEFT or RIGHT
Ã,  {
Ã,  Ã,  
Ã,  if (button == eMouseLeftInv) {
Ã,  Ã,  Display("Clicked Inventory item.");
Ã,  Ã,  if (mouse.Mode == eModeChoose) { Display("Found Inventory"); player.ActiveInventory = InventoryItem.GetAtScreenXY(mouse.x, mouse.y); }
Ã,  }
Ã,  Ã,  
Ã,  else if (IsGamePaused() == 1) // Game is paused, so do nothing (ie. don't allow mouse click)
Ã,  Ã,  {
Ã,  Ã,  }

Ã,  else if (button == eMouseLeft) 
Ã,  Ã,  {
...


And still, there are no displays at all when I click on the item.Ã,  There is nothing...

Thank you for your patience with this  :)
#251
Ahh, now maybe we are getting somewhere!  I have moved the code to before the pause script in on_mouse_click.  It now reads:
Code: ags

function on_mouse_click(MouseButton button) // called when a mouse button is clicked. button is either LEFT or RIGHT
  {
    
  if (button == eMouseLeftInv) {
    Display("Clicked Inventory item.");
    if (mouse.Mode == eModeChoose) { Display("Found Inventory"); player.ActiveInventory = InventoryItem.GetAtScreenXY(mouse.x, mouse.y); }
  }
    
  if (IsGamePaused() == 1) // Game is paused, so do nothing (ie. don't allow mouse click)
    {
    }
...
...


When I click on the inventory item, nothing at all happens.  Any ideas?  I'm at a loss...
#252
New Code:
Code: ags

else if (button == eMouseLeftInv) {
    if (mouse.Mode == eModeChoose) player.ActiveInventory = InventoryItem.GetAtScreenXY(mouse.x, mouse.y);
  }


And... it still doesn't work.  I click the inventory item, and it doesn't get selected.

A bit of info that might be unimportant:
I have a check in On_key_press for the 'D' key, that displays the active inventory of the present player.  Whenever I click it while the inventory GUI is down, it says "Item: 0", but if I click it when the inventory GUI is up, it does nothing, like the key presses aren't being processed.  Could the clicks be not processing as well?

Any more help is appreciated.

-Regards, Akumayo
#253
This is pretty neat.  I wish you could interact with more stuff though, like the tank, lights, and door.  This looks like it could be very creepy when finished.  What program did you use to draw the backgrounds, btw?  They're beautiful!

Oh, and I'm not sure if I'm lost, or just stupid though at one point.

When I interact with the book (that fell from the row of books?) It says "Drag map to here to read".

I don't understand, I can't drag the map, and I don't know where to drag it either.

Anyhow, looking forward to progress on this one.

-Regards, Akumayo
#254
I have the following code in my On_Mouse_Click:

Code: ags

if (mouse.Mode == eModeChoose) {
		Ã,  int current_item = 0;
		Ã,  while (current_item <= GetGameParameter(GP_NUMINVITEMS, 0, 0, 0) - 1) {
		Ã,  Ã,  if (InventoryItem.GetAtScreenXY(mouse.x, mouse.y) == inventory[current_item])
		Ã,  Ã,  Ã,  player.ActiveInventory = inventory[current_item];
		Ã,  Ã,  current_item ++;
		Ã,  }
Ã,  Ã,  }


When I click on an inventory item, however, it doesn't become my active inventory, as it should.Ã,  (I have confirmed that the cursor is eModeChoose, before anyone asksÃ,  :P)

Does anyone see something I'm missing?

-Thanks in advance, Akumayo
#255
General Discussion / Re: Christopia
Sun 07/05/2006 20:02:39
We'll just clone Kinoko, and let Chris have her.
#256
General Discussion / Re: Christopia
Sun 07/05/2006 19:41:49
Yes... I can finally live out my dream as a viking!  I'll bet we'll be infringing on foreign policy if we go around stealing women though... maybe we could program robot women instead... or clone the ones we already have... yeah... I like the cloning idea!  Each guy gets to pick a woman, and then we clone her, and that guy gets a perfect replica all to himelf!  Can we be a country that allows more than one wife, please?
#257
General Discussion / Re: Christopia
Sun 07/05/2006 17:43:09
Food is just an addiction.  You get hooked on it when your ignorant parents feed it to you.  Then you can't help but crave it for the rest of your life.  The logical solution is to not feed your offspring, so that they never get addicted, and therefore don't need food at all.  As for us?  We'll just have to go through a 12 step program.

By the way, since there aren't anywhere near to as many AGS women as there are AGS men, does that mean that we men now have to like, worship and praise the women, for fear of being single all our lives?
#258
General Discussion / Re: Christopia
Sun 07/05/2006 17:09:37
Excellent idea.  Now I don't have to go out of the house AT ALL!!!
#259
My current under-avatar-text is an Invader ZIM quote, in which ZIM's evil-idiot-robot minion eats around 200 candy bars while ZIM has a heat stroke.Ã,  As ZIM begins to recover, and starts to stand up, the minion grabs his legs and yells "YAY!!!Ã,  I'm gonna be sick!!!", and then procedes to vomit all over ZIM's shoes.
#260
General Discussion / Re: Christopia
Sun 07/05/2006 16:22:38
What's the national currency?  Dollars, Euros, Rupees?
SMF spam blocked by CleanTalk