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?
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
function cGirl_UseInv()
{
if (player.ActiveInventory==iTeddyBear) {
// whatever
}
}
Quote from: qcenaman on Tue 02/11/2010 00:02:37
I tried to put a } before that line and it will enter game
Quote
it doesn´t say it´s locked when interacting without key
Quote
and after interacting with key, it wont teleport to the other room, what do you think it´s wrong here?
if (doorlock) {
cEgo.Say ("I unlocked the door");
doorlock=false;
player.ChangeRoom(3, 477, 477);
}
Quote
Btw thank you for your time.
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);
}
bool doorlock=true
// interact with door:
if (doorlock) cEgo.Say ("It's closed.");
else cEgo.ChangeRoom(x);
// use key on door:
doorlock=false;
Quote from: Wyz on Mon 01/11/2010 21:24:29
Maybe your explosion is too big
Quote
I don't know if there is a fix, be you could try to rename the file.
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.
Quote from: monkey_05_06 on Sun 31/10/2010 23:58:43
w00t for Find/Replace in entire project.
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.385 seconds with 15 queries.