1
Suggestions & Requests / Event-Activating Item
« on: February 03, 2014, 04:17:03 PM »
This little idea came to my head after I realized half the things I want to make required some sort of special effect to be applied after a melee 'attack' hit someone. And without having to ask for a new set of stuff meant specifically for teleporting to THAT ONE BLOCK or whatever. So I kind of just sorta maybe possibly combined the idea.
What I am looking for is a set of 1-3 tools - preferably capping at three or four (amount changeable by rtb prefs or a command or something then resetting the server) which each have their own RTB prefs called 'brick name', for which you set the brick name which the item would align to (they would probably all be very short range, melee-like). Along with this could be three new input events, 'OnItemHitTarget' 'OnItemSuccess' and 'OnItemFailure'. These events would be placed on a brick with the name put in the preferences. When anyone in the server uses this item, these events would activate. 'OnItemHitTarget' will apply the events to the target if possible (if they aren't brick-only events). 'OnItemSuccess' would apply it to the user, and 'OnItemFailure' would apply it to the user, but only if it did not hit anyone.
EXAMPLE:
Item1's brick preferences is set to 'lolme'.
lolme events:
(0) OnItemHitTarget > Player > SetVelocity (0) (0) (20)
(1000) OnItemHitTarget > Player > SpawnExplosion (Tank Shell)
(1000) OnItemSuccess > Player > AddHealth (100)
(0) OnItemFailure > Player > SpawnExplosion (Player Teleport A)
(33) OnItemFailure > NAMEDBRICK: intothefire > SetPlayerTransform
So, if someone on the server uses the item and it hits, that player will rise up and explode, and in turn get healed. If they use it and don't hit, they'll get teleported into a pit of fire or whatever.
I just believe this could be incredibly useful, and with negative addhealth values, make really simple custom weapons of sorts.
So, uh, thoughts?
What I am looking for is a set of 1-3 tools - preferably capping at three or four (amount changeable by rtb prefs or a command or something then resetting the server) which each have their own RTB prefs called 'brick name', for which you set the brick name which the item would align to (they would probably all be very short range, melee-like). Along with this could be three new input events, 'OnItemHitTarget' 'OnItemSuccess' and 'OnItemFailure'. These events would be placed on a brick with the name put in the preferences. When anyone in the server uses this item, these events would activate. 'OnItemHitTarget' will apply the events to the target if possible (if they aren't brick-only events). 'OnItemSuccess' would apply it to the user, and 'OnItemFailure' would apply it to the user, but only if it did not hit anyone.
EXAMPLE:
Item1's brick preferences is set to 'lolme'.
lolme events:
(0) OnItemHitTarget > Player > SetVelocity (0) (0) (20)
(1000) OnItemHitTarget > Player > SpawnExplosion (Tank Shell)
(1000) OnItemSuccess > Player > AddHealth (100)
(0) OnItemFailure > Player > SpawnExplosion (Player Teleport A)
(33) OnItemFailure > NAMEDBRICK: intothefire > SetPlayerTransform
So, if someone on the server uses the item and it hits, that player will rise up and explode, and in turn get healed. If they use it and don't hit, they'll get teleported into a pit of fire or whatever.
I just believe this could be incredibly useful, and with negative addhealth values, make really simple custom weapons of sorts.
So, uh, thoughts?