Page 1 of 1
Hand action actuating floor trigger
Posted: Fri Mar 12, 2010 8:28 pm
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?
Re: Hand action actuating floor trigger
Posted: Sat Mar 13, 2010 12:44 am
by Gambit37
No.
EDIT: Maybe. What are you trying to do?
Re: Hand action actuating floor trigger
Posted: Sat Mar 13, 2010 8:18 am
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?
Re: Hand action actuating floor trigger
Posted: Sat Mar 13, 2010 1:53 pm
by PaulH
Something like having a spade with a dig action - which would create a pit for example.
Re: Hand action actuating floor trigger
Posted: Sat Mar 13, 2010 2:33 pm
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.
Re: Hand action actuating floor trigger
Posted: Sat Mar 13, 2010 2:52 pm
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.
Re: Hand action actuating floor trigger
Posted: Sat Mar 13, 2010 2:54 pm
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.
Re: Hand action actuating floor trigger
Posted: Sat Mar 13, 2010 8:17 pm
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.
Re: Hand action actuating floor trigger
Posted: Sat Mar 13, 2010 8:36 pm
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.
Re: Hand action actuating floor trigger
Posted: Sat Mar 13, 2010 8:42 pm
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

Re: Hand action actuating floor trigger
Posted: Sat Mar 13, 2010 8:57 pm
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?
Re: Hand action actuating floor trigger
Posted: Sat Mar 13, 2010 9:03 pm
by Lord_BoNes
Yep. I ALWAYS try to do everything WITHOUT any delays. But some things just can't be done without them

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.
Re: Hand action actuating floor trigger
Posted: Sat Mar 13, 2010 9:44 pm
by Lord_BoNes
@Paul: I've had a crack at your "chasm thing" as you put it...
here it is 
Re: Hand action actuating floor trigger
Posted: Sun Mar 14, 2010 9:08 pm
by PaulH
Many thanks, will take a look!
Can I be added to the Projects thread? I will discuss what I am doing

Re: Hand action actuating floor trigger
Posted: Sun Mar 14, 2010 9:19 pm
by beowuuf
designer forum?
Re: Hand action actuating floor trigger
Posted: Sun Mar 14, 2010 9:22 pm
by PaulH
Yes please!
Re: Hand action actuating floor trigger
Posted: Sun Mar 14, 2010 9:26 pm
by beowuuf
done! (i hope)