Author Topic: GiveTool Events  (Read 2282 times)

Here is a suggestion, i would make it but.. i dont know how to make events lol! basically here is how the events work.

Output Events:
GivePlayerTool: According to whatever your input is, it will instantly give a player a tool. instantly put the item in the players "invetory". with output parameters of 1. Tool Choice 2. Restrictions.

TakePlayerTool: Accoring to whatever your input is, it will instantly Take a players tool. With outparameters of Invetory # choice 1-5.

Maybe even a:
GiveThenTakePlayerTool Event (lol sounds complicated) but thats an extra event idea..

these events and maybe even an Admin GUI edit, where you can give players certains tools. or yourself tools.. would take away the having people stand on bricks and click SpawnTool event. or having to make a secret admin room full of items you only want. etc.
« Last Edit: September 24, 2008, 02:35:45 AM by Only1rebel »

Sounds cool, but can't you just use the other events to spawn a tool?

Events already spawn items.

well i know... you can spawn items on the ground.. but you take a risk of someone finding the spawn switch.. or someone else you didn't want to have the certain tool.. jumped and got on the spawn... im just saying it would make things a lot easier instead of having the risk of the spawn item event.. you know?

*EDIT: Maybe not even events but like an admin command like: /Giveplayeritem "Playername" "item name"

know what i mean?

Putting tools in only a spot admins can get to also works. Make an admin room with an admin only door. I did that with 3 castles.

There's already a 'spawnItem' event that spawns a single temporary item which you can pick up, or 'setItem' to create a respawning item on the brick. (like the Wrench)

In what situation would this be used?


Make it use spawnItem to create an item in the 'tray' or something similar.

It might work for buttons that give you items, and I could see takeItem being useful. Maybe two takeItems: one that takes away # inventory slot, and one that takes away a certain item, regardless of inventory position.

another way to give tools when somebody walks on something is that you do these events:
0 onplayertouch>self>spawnitem>item
>250 onplayertouch>self>spawnitem>none
^ delays

well a script command that is /giveplayeritem "playername" "item" would be useful for not making admin rooms.. which get kinda annoying.. and the events could be useful for similar things like that.. or like rpgs.. where you click an item you want to buy and it puts it in your tray without spawning.. so no one else can steal the spawn.. u know?

It would be useful for not letting anyone but admins have wrench's.

There isn't anything to distinguish an admin clicking the button from a normal player. Pass-coded buttons are still technically usable by players, and a pass-coded door to the same room with an item would function just as well.

Quote
onplayertouch > delay:000 > self > set item: ___

onplayertouch > delay:100 > self >set Item: none

found this out when messing with my old v8 file.

EDIT: fix'd the event
« Last Edit: September 25, 2008, 02:44:23 PM by jetfire »

This would be good for tiny builds where the item spawnsare to big, and for secret items.