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

#1101
I could think of a few ways, but honestly I'm too hangoverish to elaborate on that right now. Why don't you PM Alan v.Drake and ask him how he did it?
#1102
Did you just write down the DoorClosed_UseInv() event or did you link it from the events pane via the lightning bolt icon? Make sure you've done the latter.
#1103
Another thing that might be of interest to you is that you can set and change the blocking area of objects using object.BlockingHeight and object.BlockingWidth.
#1104
The function is empty when it's created. But if you just use Girl_Useinv instead of Girl_AnyClick (and ActiveInventory instead of CursorGraphic), then everything should work just fine.

Edit: Like this.

Code: ags

function cGirl_UseInv()
{
  if (player.ActiveInventory==iTeddyBear) {
  // whatever
  }
}
#1105

If dragonlily is an object, it needs an "o" before the name, but you can't add objects to the inventory anyway, only items. That would look like this:

player.AddInventory (idragonlily);
#1106
The walk command must be a blocking one:

player.Walk(160, 100, eBlock);


Edit: Yeah, what monkey said.
#1107
That's awesome.

..and sad, Berlin-Eugene is quite a distance.
#1108
The Rumpus Room / Re: Happy Birthday Thread!
Wed 03/11/2010 21:43:37
Happy one, Ben.
#1109
You can solve this by enabling/disabling walkeable areas. This should help:

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=39011.0
#1110
Count me in as a beta tester.
#1111
What, you wanna replace the Heroes2-Zombies? Shame on you.

Just kidding, this looks like it could be fun and Pinback is definitely the man for the job!
#1112
Many thanks, FSi, it works like a charm! I was a bit lost using the visual c thingy anyway..
#1113
Quote from: qcenaman on Tue 02/11/2010 00:02:37
I tried to put a } before that line and it will enter game

Yes, sorry, I forgot one brace.

Quote
it doesn´t say it´s locked when interacting without key

Hm, I don't see a mistake here..

Quote
and after interacting with key, it wont teleport to the other room, what do you think it´s wrong here?

In my code the player has to interact the door again after using the key. This should do it:

Code: ags

  if (doorlock) {
    cEgo.Say ("I unlocked the door");
    doorlock=false;
    player.ChangeRoom(3, 477, 477);
  }


Quote
Btw thank you for your time.

No problem, despite this being basic stuff that could be looked up using the search function ;)
But now I gotta go to bed..

Oh and please use the code-tags. Just quote my post to see how it's done.
#1114
Code: ags

bool doorlock=true; // put this at the beginning of the room script

function hHotspot2_UseInv() // Player uses key on door
{
if (cEgo.ActiveInventory == iKey){
  if (doorlock) {
    cEgo.Say ("I unlocked the door");
    doorlock=false;
  }
  else cEgo.Say ("The door is already unlocked.");
}

function hHotspot2_Interact() // Player interacts with door
{
if (doorlock) cEgo.Say ("It's locked.");
else player.ChangeRoom(3, 477, 477);
}


Now the player can't open the door unless he uses the key and after he used the key the door stays open and he goes through by interacting with the door.
#1115
Thanks, I'll try that out.
#1116
Use a variable like this:

Code: ags

bool doorlock=true

// interact with door:
if (doorlock) cEgo.Say ("It's closed.");
else cEgo.ChangeRoom(x);

// use key on door:
doorlock=false;
#1117
Quote from: Wyz on Mon 01/11/2010 21:24:29
Maybe your explosion is too big :D

Haha, maybe  ;D

Quote
I don't know if there is a fix, be you could try to rename the file.

There is no file with that name and I don't know where I used that name. As I said I can't open the game anymore and thus can't change any name..
#1118
I opened one of my games the first time after quite a few months and got this error message:

Quote from: Adventure Game Studio
An error occurred whilst trying to load your game. The error was:

Invalid script name; name must only include letters, numbers and underscores: EXPLO_groß

If you cannot resolve the error, please post on the AGS Technical Forum for assistance.

I don't recall changing anything the last time I had the game open.. so maybe the newest AGS version has a problem with "ß"? The problem is that I can't open it anymore..
#1119
So, if anybody is wondering: I'm in too, but my nick isn't Matti, it's MudTea (which is roughly how my name should be pronounced in English).

Unfortunately, my laptop is acting up a bit, so I won't be around too often. I'll check out what you guys build from time to time though.
#1120
Quote from: monkey_05_06 on Sun 31/10/2010 23:58:43
w00t for Find/Replace in entire project.

Seconded! The loop stuff is pretty cool too. No time to check it out right now though..
SMF spam blocked by CleanTalk