Jump to content

Photo

Link->Equipment giving weird values.


  • Please log in to reply
1 reply to this topic

#1 grayswandir

grayswandir

    semi-genius

  • Members

Posted 12 August 2013 - 11:05 PM

Make a new quest (Z3 option).
Go to init data, give Link the arrow, bow, and quiver level 1.
Go to Active (New, B) subscreen, change item 48 (the arrow selection) to have item override arrows level 1.
Load the following script, and place the Active script as the global Active script:

global script Active {
  void run() {
    Trace(Link->Equipment);}}

It will print -159410.9952.

 

If you give Link other equipment, it will print it out correctly.

 

 

Any idea what's going on?


Edited by grayswandir, 12 August 2013 - 11:07 PM.


#2 Saffith

Saffith

    IPv7 user

  • Members

Posted 13 August 2013 - 01:49 PM

In some cases, the arrow ID has 0xF000 added internally if you have a bow. It should be removed for Link->Equipment, but it's not. Easy enough to fix. Unfortunately, it's overflowing, so you can't fix it in the script.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users