Jump to content

Release: Item Use, Drop & Pickup Events


Akkarin

Recommended Posts


  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

Item Use, Drop & Pickup Events


A handy extra set of script events and variables for you to maximise your event and quest scripts!

New Variables: DroppedItemID, DroppedItemQTY, UsedItemID, PickedItemID

New Scripted Event Triggers: OnItemDropEvent, OnItemUseEvent, OnItemPickupEvent

Includes 3 Test NPC scripts e.g.

-	script	onusetest	-1,{
	end;
OnItemUseEvent:
	dispbottom "Found item use event"; dispbottom "Using on "+ UsedItemID;
	switch(UsedItemID){
		case 501: dispbottom "You used a Red Potion!"; break;
	}
	end;
}

As an example use-case, I've previously used this code in an Easter event script where each time you pickup any 1 of the 13 different eggs, specific code will run for effects, item swapping, costume changes, play sounds, etc. The possibilities are enormous!


 

  • Upvote 2
  • Love 1
Link to comment
Share on other sites

  • 7 months later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   2
  • Joined:  03/16/16
  • Last Seen:  

install diff manually three times but i have this problem
the UseEvent: acts as an onlogin
the dropevent: acts as a useEvent
the pickupevent: acts as a useEvent
Do you know if it is compatible with emulators of 2018?

pc.cpp

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...