Here is an example from my farming script im making:
//Water Can by Warcaptain
if (playertouchsme) toweapons Water Can;
if (weaponfired) {
triggeraction playerx+1.5+vecx(playerdir)*2,
playery+2+vecy(playerdir)*2,iswatered,;
this.water--;
}
// Plant by Warcaptain
if (actioniswatered) {
this.life--;
sleep 1;
}
It baisicly triggers the given action on the given X Y
Of course thats a simple version of my script
Im not giving you all of it, or it wouldnt be mine anymore