>look up
Moderators: Ice Cream Jonsey, joltcountry
- Ice Cream Jonsey
- Posts: 30191
- Joined: Sat Apr 27, 2002 2:44 pm
- Location: Colorado
- Contact:
>look up
Has anyone implemented >look up so that it refers to an object and not the direction up?
Right now I get the response, "Which do you mean, above or the sky?" when I do that. Just curious if anyone's solved it for their own purposes.
Right now I get the response, "Which do you mean, above or the sky?" when I do that. Just curious if anyone's solved it for their own purposes.
the dark and gritty...Ice Cream Jonsey!
-
- Posts: 192
- Joined: Mon Nov 22, 2004 3:19 pm
- Location: Wichita, KS
- Contact:
Here's what I do in Distress, to trap for "Look Up". There are actually several elseif's in the real code, to trap for "Look Down" and "Look East" and so forth. I snipped that, to make it more applicable to what you're doing.
Basically, in the line "self = u_obj" you could redirect it to whatever you want. Hopefully this is what you're after.
If you add this code as-is to a .HUG file in your project, it will default to showing sky.long_desc whenever the player looks up. NewOMessages is a stub in the library files, intended to be replaced whenever you want to customize whichever messages the real OMessages services. Return (true) on conditions you handle, and (false) so that the default OMessage prints for everything else.
Basically, in the line "self = u_obj" you could redirect it to whatever you want. Hopefully this is what you're after.
Code: Select all
!---------------------------------------------------------------
!Mainly adding this to give a new response to look "up"
!
replace NewOMessages (obj, num, a, b)
{
local retval = false
select obj
case direction
{
select num
case 1 {
if (self = u_obj) {
run sky.long_desc
retval = true
}
}
}
return (retval)
}
- Ice Cream Jonsey
- Posts: 30191
- Joined: Sat Apr 27, 2002 2:44 pm
- Location: Colorado
- Contact:
-
- Posts: 192
- Joined: Mon Nov 22, 2004 3:19 pm
- Location: Wichita, KS
- Contact:
-
- Posts: 192
- Joined: Mon Nov 22, 2004 3:19 pm
- Location: Wichita, KS
- Contact:
- Ice Cream Jonsey
- Posts: 30191
- Joined: Sat Apr 27, 2002 2:44 pm
- Location: Colorado
- Contact:
Hahah, you're absolutely right, Merk. That probably would have worked for my purposes with this thing. Geez. But you know how you get when you come close to releasing one of these things. The brain gets all screwy, heh.
(I think I am going to make the deadline. But it's a really short game. If there's anyone interested in taking a look, just fire me off a note at beaver@zombieworld.com. My earlier games were way too buggy and I should really sit on this one if the bugs are too numerous close to the deadline. )
(I think I am going to make the deadline. But it's a really short game. If there's anyone interested in taking a look, just fire me off a note at beaver@zombieworld.com. My earlier games were way too buggy and I should really sit on this one if the bugs are too numerous close to the deadline. )
the dark and gritty...Ice Cream Jonsey!
-
- Posts: 192
- Joined: Mon Nov 22, 2004 3:19 pm
- Location: Wichita, KS
- Contact:
- Ice Cream Jonsey
- Posts: 30191
- Joined: Sat Apr 27, 2002 2:44 pm
- Location: Colorado
- Contact:
-
- Posts: 192
- Joined: Mon Nov 22, 2004 3:19 pm
- Location: Wichita, KS
- Contact:
I haven't played any of them yet, but I intend to before the deadline. And I know last-minute crunch-time all too well. :)Ice Cream Jonsey wrote:(Thanks, by the way. I don't want to violate any rules by saying I got about 6 hours of sleep in the last 48 hours of the game's production, but I did want to express my appreciation at your remark!)
-
- Posts: 192
- Joined: Mon Nov 22, 2004 3:19 pm
- Location: Wichita, KS
- Contact: