Author Topic: Taking Event add-on requests here  (Read 3532 times)

OnPlayerTouched
called only once, when a player touches a brick

All my support on this one.

lug please :c

botmounttobject

Is there an onTrigger thing called when you lift off of the mouse?
Yes.

Code: [Select]
function Armor::onTrigger(%this,%player,%slot,%state)
{
parent::onTrigger(%this,%player,%slot,%state);

if(%state)
{
//the button was pressed
}
else
{
//the button was released
}
}
This would be package obviously.

indivual team sounds sounds that play only to a team

these are great requests that I wish I could work on right now and release a forgetload of them.
Unfortunately you're going to have to wait until approximately tonight.I'm not sure how I would do these btw.
Is there an onTrigger thing called when you lift off of the mouse?

For the onActivateHold or whatever, Rot's zombie mod uses a similar function for reviving incapacitated players. You could probably find it there and code it into an event input.

Ive got one suggestion for you.

End Camera Event. An event to boot the player out of the camera event.

Remember that old weapon buy system? Can you make a buy event, without actually setting the gun to the brick?

[Input]>>>Client>>>BuyItem>>>[WeaponName][Points/cash/vce vars(drop down menu)][Number]

Cash could work with ottosparks moneymod.
Like only when the moneymod or vce is enabled, do those two options appear.
Also, there could be a sell option, but you have to use text to sell what item it is, and specify which slot, or have it setup to where you set the weapon/weapons that can be sold to that brick.

You mean those crazy database events that no one on the planet except the owner could figure out?

I don't even know how those work in event form, much less script, but I guess I could shoot at that...

Any update on your progress?

-Edit-

Maybe you could also fix ifClan?
http://blocklanditems.wikispaces.com/file/view/Event_ifClan.zip
« Last Edit: May 03, 2012, 03:35:37 PM by Supersolider »

I could really use an OnPlayerTouchstop event, like when a player stops touching a brick or "leaves" it, as in no longer touching it.

Add support for storing multiple variables as one. Either as a matrix or a struct. (Preferably matrix)

Add support for storing multiple variables as one. Either as a matrix or a struct. (Preferably matrix)
You should learn how to script man

OnPlayerTouched
called only once, when a player touches a brick
can be done with defaults
onplayertouch>dostuff
onplayertouch>self>seteventsenabled(first line off)
onplayertouch>self>seteventsenabled(first line on, delayed >= 500)
onplayertouch>self>cancelevents
I could really use an OnPlayerTouchstop event, like when a player stops touching a brick or "leaves" it, as in no longer touching it.
can also be done with defaults
onplayertouch>dostuff(delayed > 500)
onplayertouch>self>cancelevents

only problem with these is that it would only work for a single person at a time, with a delay for reseting of .5 seconds or for triggering after .5 seconds

You should learn how to script man
He said he was taking suggestions, so that I don't have to...

I've got one in mind. I think a setPromptGui event would be cool. It would be an output event off the brick.

Example: OnActivate -> Self -> setPromptGui   |GUI Text|  |GUI CANCEL BUTTON| |GUI ACCEPT BUTTON|

You get to specify the text for the cancel and ok button, so you can have something like Weapons and Ammo

The character limit would be like 6-8 for the buttons and like 90 - 120 for the GUI Text itself
« Last Edit: May 04, 2012, 07:41:42 AM by Goth77 »

ReplaceBricks<save here>