FAQ Search Memberlist Usergroups
Jolt Country Forum Index
Register Profile Log in to check your private messages Log in
Log in Log in

Scope question

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Jolt Country Forum Index -> Hugo's House of Horrors
View previous topic :: View next topic  
Author Message
Ice Cream Jonsey



Joined: 27 Apr 2002
Posts: 20088
Location: Colorado

PostPosted: Sat Dec 10, 2005 1:00 am    Post subject: Scope question Reply with quote

Does anyone recall the syntax of a test to determine if an object is currently in scope? For instance, I want the player to be able to access his phone if the phone is anywhere in the room. Something like

if phone.scope = true
then DoDesiredRoutine

or something like

if scope(phone)
then DoDesiredRoutine

... and the worst part is, I know I did this somewhere in Necrotic Drift, I just can't remember where. Heh. I think this is gonna be the thing I push off until morning, I'm all coded out tonight. ^______________________^[/quote]
_________________
the dark and gritty...Ice Cream Jonsey!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Worm



Joined: 24 Aug 2002
Posts: 3626
Location: tucked away between the folds of your momma, safe

PostPosted: Sat Dec 10, 2005 8:16 am    Post subject: Reply with quote

Didn't Duffy have a phone in his inventory to ask for doors to be opened and shit?
_________________
Good point Bobby!
Back to top
View user's profile Send private message AIM Address
Roody_Yogurt



Joined: 29 Apr 2002
Posts: 1993
Location: Milwaukee

PostPosted: Sat Dec 10, 2005 9:19 am    Post subject: Reply with quote

Looking at the manual, it looks like you might want to use the in_scope property and maybe the PutInScope and RemoveFromScope routines.
Back to top
View user's profile Send private message AIM Address
Merk



Joined: 22 Nov 2004
Posts: 192
Location: Wichita, KS

PostPosted: Sat Dec 10, 2005 10:52 am    Post subject: Reply with quote

CheckReach(object) -- defined in hugolib.h. I think it prints messages if the object can't be reached or isn't in the current room, so it might not be ideal if you're just wanting to do a test and print nothing. But it's the only thing I'm aware of that can check and see if an object is in scope.

Then again, FindObject() might do what you want. It returns whether the object is in the room or not, or whether it's accessible even if it is.
Back to top
View user's profile Send private message Visit poster's website
Ice Cream Jonsey



Joined: 27 Apr 2002
Posts: 20088
Location: Colorado

PostPosted: Sat Dec 10, 2005 1:04 pm    Post subject: Reply with quote

Worm wrote:
Didn't Duffy have a phone in his inventory to ask for doors to be opened and shit?


Yeah, though I think that was just a conduit to talk to Trott, who was elsewhere most of the game.
_________________
the dark and gritty...Ice Cream Jonsey!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Ice Cream Jonsey



Joined: 27 Apr 2002
Posts: 20088
Location: Colorado

PostPosted: Sat Dec 10, 2005 1:05 pm    Post subject: Reply with quote

Roody wrote:

Merk wrote:


Thanks guys - gonna go through and give those suggestions a shot right now.
_________________
the dark and gritty...Ice Cream Jonsey!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Ice Cream Jonsey



Joined: 27 Apr 2002
Posts: 20088
Location: Colorado

PostPosted: Sat Dec 10, 2005 1:05 pm    Post subject: Reply with quote

What happened to what I quoted?!?!
_________________
the dark and gritty...Ice Cream Jonsey!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Worm



Joined: 24 Aug 2002
Posts: 3626
Location: tucked away between the folds of your momma, safe

PostPosted: Sat Dec 10, 2005 1:22 pm    Post subject: Reply with quote

Ice Cream Jonsey wrote:
What happened to what I quoted?!?!

You should see if you can get Ogrish's phpBB template. It's the best one I've seen, and it is red and black.
_________________
Good point Bobby!
Back to top
View user's profile Send private message AIM Address
Ice Cream Jonsey



Joined: 27 Apr 2002
Posts: 20088
Location: Colorado

PostPosted: Mon Dec 12, 2005 7:21 pm    Post subject: Reply with quote

Worm wrote:
Ice Cream Jonsey wrote:
What happened to what I quoted?!?!

You should see if you can get Ogrish's phpBB template. It's the best one I've seen, and it is red and black.


Ogrish, huh? Got a link?
_________________
the dark and gritty...Ice Cream Jonsey!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Roody_Yogurt



Joined: 29 Apr 2002
Posts: 1993
Location: Milwaukee

PostPosted: Mon Dec 12, 2005 7:28 pm    Post subject: Reply with quote

If this place takes ogrish's template, I totally will leave this place forever.
Back to top
View user's profile Send private message AIM Address
pinback



Joined: 27 Apr 2002
Posts: 12029

PostPosted: Mon Dec 12, 2005 8:43 pm    Post subject: Reply with quote

I would like to see more execution videos here, though.
_________________
Above all else... We shall go on... And continue!
Back to top
View user's profile Send private message Visit poster's website
Lysander



Joined: 08 Jul 2003
Posts: 1694
Location: East Bay, California.

PostPosted: Tue Dec 13, 2005 2:04 am    Post subject: Reply with quote

Videos? Fuck you,
_________________
paidforbythegivedrewbetterblowjobsfundandthelibertyconventionforastupidfreeamerica
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Jolt Country Forum Index -> Hugo's House of Horrors All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001 phpBB Group

Theme by Kage Musha - RPG Garden

Copyrights and trademarks are all of the belonging company. No copyright Infringement intended