Jump to content

Photo

Item Editor: OnItemLost script slot


  • Please log in to reply
3 replies to this topic

#1 Alucard648

Alucard648

    Adept

  • Members
  • Gender:Male
  • Location:castle Dracula

Posted 08 October 2018 - 02:08 PM

I would want to see OnItemLost script slot to run when item with script attached into this slot is removed from Link`s inventory. Example usage is to undo effects of OnPickup scipt attached to that item on it`s removal. This will help reduce clutter in global script.



#2 Avataro

Avataro

    Quest maker

  • Members
  • Real Name:Robin
  • Gender:Male
  • Location:Germany

Posted 08 October 2018 - 03:00 PM

When would this run? I can only think of LikeLikes taking items.

 

The pickup script doesnt run when you get the item from string control codes or per script. Would this?


Edited by Avataro, 08 October 2018 - 03:03 PM.


#3 Alucard648

Alucard648

    Adept

  • Members
  • Gender:Male
  • Location:castle Dracula

Posted 09 October 2018 - 10:53 AM

When would this run? I can only think of LikeLikes taking items.

 

The pickup script doesnt run when you get the item from string control codes or per script. Would this?

Here are ways to cause Link to lose equipment items: 

1. When item with "Can be Eaten" flag set on was eaten by enemy with Eat[Items] ability.

2. When item with "Remove after Used" flag set on was activated.

3. Via "\17\X" string control code.

4. Via scripts.



#4 ZoriaRPG

ZoriaRPG

    The Timelord

  • ZC Developers
  • Gender:Unspecified
  • Location:Prydon Academy

Posted 13 October 2018 - 07:52 AM

Here are ways to cause Link to lose equipment items: 
1. When item with "Can be Eaten" flag set on was eaten by enemy with Eat[Items] ability.
2. When item with "Remove after Used" flag set on was activated.
3. Via "\17\X" string control code.
4. Via scripts.



Ehhhh.... I suppose that this would be possible. It's something that I'll consider once we do sprite scripts. Those have automatic priority.


FWIW, future script type plans and ideas are:

Sprite Scripts
Item Active Script: Runs continually while the item is on the screen.
NPC Active Script: NPC COntrol script.
LWeapon/EWeapon Active Script: Weapon control script.

Game-Event-Level Global
Link Active Script: Runs at all times, for Link.
DMap Active Script: Runs on every screen of a dmap.
Screen Active Script: Runs perpetually on a single screen.

We may also consider Link Init, Link Death, and a few other things.
  • Alucard648 likes this


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users