Hand action actuating floor trigger

Questions about how to create your own dungeons and replacement graphics and sounds.

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
PaulH
Ghastly gastropod
Posts: 3763
Joined: Wed Aug 07, 2002 10:27 pm
Location: Level 6

Hand action actuating floor trigger

Post by PaulH »

Bear with me, I am still getting to grips with RTC!

When stood over a floor trigger can I get hand action to send a message to the trigger?
User avatar
Gambit37
Should eat more pies
Posts: 13715
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Hand action actuating floor trigger

Post by Gambit37 »

No.

EDIT: Maybe. What are you trying to do?
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Re: Hand action actuating floor trigger

Post by beowuuf »

You can intercept thowing actions (thanks to Sophia's request), and you can put put items in the hand...so technically you could create an 'invisible' empty hand object that would be thrown if the mouse was clicked while standing on a certain pad.

And since I created combining armour, I know it is possible to intercept a click in the inventory screen, so you can have the invisible item detroyed if they click on the inventory with the 'empty' hand

And of course, you can give an object an expiration time for if it is lying out on the dungeon floor.


Oh, wait, or are you wanting the party to actually be able to press an item on the floor? I think you can place wall item graphics in unusual places, so you could just fudge the x,y co-ordinates?
User avatar
PaulH
Ghastly gastropod
Posts: 3763
Joined: Wed Aug 07, 2002 10:27 pm
Location: Level 6

Re: Hand action actuating floor trigger

Post by PaulH »

Something like having a spade with a dig action - which would create a pit for example.
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Re: Hand action actuating floor trigger

Post by beowuuf »

Yeah, might be an idea to try and see if you can put wall items with the wrong x,y - i forget if they are clickable if they go into a floor zone, but I think they can intrude.

The other alternative is to create an unmoving monster - I believe GG implimented my clickable monster suggestion, so if the spade clicks on the 'mound of earth monster' it would create a pit.

Depends if this is for a puzzle, or if it's a general thing that can be done anywhere.
User avatar
Gambit37
Should eat more pies
Posts: 13715
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Hand action actuating floor trigger

Post by Gambit37 »

So you want the party to dig on the tile they are standing on, not dig a hole in the tile ahead? If it's the party tile, that's easy -- check out action CREATE_NEW_on_FLOOR which creates the item on the floor space where the action was first triggered.

So if you created a new ATTACK_METHOD called "DIG" which involved a CREATE_NEW_ON_FLOOR with a FLOORITEM_PIT as the first parameter, it would always dig a hole under the party :)

Of course, you probably don't want that to happen all the time as you need to make sure that there's empty space below before digging. There are a few ways I can think of for handling this -- if you need help, let me know.
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Re: Hand action actuating floor trigger

Post by beowuuf »

Oh, sorry, totally missed what you meant by 'hand action' - nevber midn me! I thoguht you mean 'if you clicked on the dungeon with the pointer'

Yeah, item actions are easy. There should also be a 'tile in front' option to dig on the tile infront.
User avatar
PaulH
Ghastly gastropod
Posts: 3763
Joined: Wed Aug 07, 2002 10:27 pm
Location: Level 6

Re: Hand action actuating floor trigger

Post by PaulH »

OK, many thanks!

Just getting to grips with the engine - I am thinking still in CSBWin lol. Lots to explore.

Also trying to work out the teleport thing (I need a rope and hook to swing across a 'chasm' - using item teleports to other side and vice versa). And various other 'use' that has an effect.
User avatar
Gambit37
Should eat more pies
Posts: 13715
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Hand action actuating floor trigger

Post by Gambit37 »

beowuuf wrote:There should also be a 'tile in front' option to dig on the tile infront.
Funnily enough, there isn't an action to do that. It's doable using other mechs though.
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: Hand action actuating floor trigger

Post by Lord_BoNes »

To create an object on the tile in-front of you, simply use CREATE_HAZE_ON_TILE_INFRONT, and then GLOBAL_SWAP the haze to the object you want. This method even creates objects inside walls :P
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Gambit37
Should eat more pies
Posts: 13715
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Hand action actuating floor trigger

Post by Gambit37 »

Ooh, cool, I never thought of that. Presumably you do GLOBAL_SWAP_FAST in a relay chain with no delays and thus never see the haze?
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: Hand action actuating floor trigger

Post by Lord_BoNes »

Yep. I ALWAYS try to do everything WITHOUT any delays. But some things just can't be done without them :P
You do have to watch out though.... the above method can cause RTC to crash if the object is created outside the dungeon boundries, so be careful.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: Hand action actuating floor trigger

Post by Lord_BoNes »

@Paul: I've had a crack at your "chasm thing" as you put it... here it is :D
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
PaulH
Ghastly gastropod
Posts: 3763
Joined: Wed Aug 07, 2002 10:27 pm
Location: Level 6

Re: Hand action actuating floor trigger

Post by PaulH »

Many thanks, will take a look!

Can I be added to the Projects thread? I will discuss what I am doing ;-)
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Re: Hand action actuating floor trigger

Post by beowuuf »

designer forum?
User avatar
PaulH
Ghastly gastropod
Posts: 3763
Joined: Wed Aug 07, 2002 10:27 pm
Location: Level 6

Re: Hand action actuating floor trigger

Post by PaulH »

Yes please!
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Re: Hand action actuating floor trigger

Post by beowuuf »

done! (i hope)
Post Reply