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

#1
Ok, so I've set up the global variable, pardon my denseness, but do I put the first code in room 2 as a new function or mix it up with the event??? My event on entering the room is:

// room script file

function room_FirstLoad()
{
  cPlayer2.Say("Speech text");
  cPlayer1.Say("Speech text");
  cPlayer2.Say("Speech text");
}

The way I'm understanding it I add your code in after this part as a new function?

Thanks for your help!

NN
#2
Sorry - misleading heading - Didn't think before posting... Either inventory dependant or some other dependancy I'm still to figure out.

Thanks again!

NN
#3
Hi everyone,

I'm still making progress on the game I mentioned in my post over Christmas, only I've gotten stuck again...

I want to make a room where the hotspot is dependant on you having been to another room and seen/experienced the event that happens.

So I have 4 or 5 rooms which all lead together, and the last one - let's say this is room4, is dependant on you having walked into room2 and having seen a scene. If you go in before it will just give you a random message saying "No" or something.

In my head it looks like:

if cEgo [has been to] room2 [then take action x]
if cEgo [has not been to] room 2 [then Display("No, you can't use that yet.");

Can anyone help? I had thought of maybe making the final string in room 4's code so that it adds an inventory item, which if you have allows you to use the hotspot (as I'm not using the inventory for the purposes of this game), but I couldn't figure this out either... If anyone can help either way I'd appreciate it immensely!

Many thanks

NeuroticNugg
[Newb who laughs at his own failure]
#4
Thanks to all for your support, it's been a big help. I may be back with more!!!
#5
Hi everybody! I'm a relative newb, using AGS to make an adventure game for my girlfriend as the final part of a trilogy (first was webisodes, second was a movie, third is a game). Sadly I've run into a problem, and have searched the site to no avail... I hope someone more experienced can help me!!!

Anyway, there are two parts in my game where the main character acquires extra "friends" and what I thought of doing was creating moving sprites for him, and each of the friends, then changing the sprite when they are added to the "party", so he is alone for the first bit, then character two joins, then character 3 joins.

I figure there must be a script you can add to change the setting so that another Character is named as the main one, but I can't find it!

Help please!! :)

Thanks,

NeuroticNugg
SMF spam blocked by CleanTalk