Jump to content

Photo

ItemHoldUpMessage.zh

header item items hold up hold up message string

  • Please log in to reply
No replies to this topic

#1 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 02 August 2017 - 07:24 AM

ItemHoldUpMessage.zh (v1.1.) | Demo Quest

 

Here is a new header for controlling item pick-up messages and hold-up actions, quickly and easily.

It uses an ffc launcher item script, that should be assigned as the Pick-Up Script for a given item; and the D0 ( InitD[0] ) input in the item editor to set both the string, and the item ID at one time. This launches one of three ffc scripts:

 

One for land, one for swimming, and one for diving, selected by Link's present action when the collect script runs.

 

All of the main events are handled by the ffc script that the launcher script selects, and the ffc thereafter cleans up its data, and exits.

 

This single value used by the item script, is split between the integer and the decimal portions, so that the integer side is the message, and the decimal side is the item number. Thus, if you want to use string 16 on item 43, you enter a value of 16.0043.

The script displays strings immediately following the item hold-up animation, so they never obscure the visual event of Link holding up the item.

 

The user need never set up the ffc scripts. All data is forwarded to them from the item collect script, and setting up the ffc scripts on a screen is not a very good idea. They are designed solely to run from launcher code.

 

All of the code is cleanly commented, and redundant blocks are reduced to script-scope functions. These also include debugging and logging routines, that report user error.



Here is the Header Code if you wish to review it on-site.

Spoiler


It requires std.zh (In fact, it only requires std_constants.zh).

 

This is the by-product of a series of code concepts that I made for Cukeman, but it is ultimately different to any prior script set of this sort, and I hope, infinitely better than prior scripts of this sort, as well.


Edited by ZoriaRPG, 02 August 2017 - 07:39 AM.

  • ShadowTiger likes this



Also tagged with one or more of these keywords: header, item, items, hold, up, hold up, message, string

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users