Jump to content

Photo

Multiple arrow types


  • Please log in to reply
4 replies to this topic

#1 Emily

Emily

    Scripter / Dev

  • ZC Developers

Posted 08 August 2018 - 04:34 PM

I have multiple different types of arrows, selectable on a custom subscreen (though it should work functionally identically to using a normal subscreen with overrides). If I use any of them, it always fires the highest "Level" arrow. If they are all the same level, it appears to always use the one with the highest Item ID number. Why does it not use the arrow corresponding to the item used?

 

To be specific, I have Wooden, Fire, Ice, and Light arrows. Fire and Ice each have a magic cost of 4, while light have a magic cost of 8- wooden having no magic cost. I certainly have all of the items set up with their proper weapon sprites, yet with them all the same level, or leveled in progression order, the Light Arrow sprite is always the one used, and it additionally will always cost 8 magic, even if the wooden arrow item was the one used! Is there a non-scripting way to fix this, or am I going to need to completely re-script how these work?

 

EDIT: Having the same issue with swords as well... I have a Level 1 sword and a Level 2 sword which can be individually selected, but it always uses the Level 2 sword sprite...

 

EDIT: Turns out it was an issue with my custom subscreen... a very wierd issue that I am very surprised I even managed to find, but oh well!


Edited by venrob, 08 August 2018 - 07:59 PM.


#2 Binx

Binx

    Formerly Lineas

  • Members
  • Real Name:Brian
  • Location:Lancaster, CA

Posted 08 August 2018 - 11:35 PM

What was the issue, if you don't mind me asking? Wondering because it might be worth me adding to the subscreen tutorial.



#3 Emily

Emily

    Scripter / Dev

  • ZC Developers

Posted 09 August 2018 - 07:18 AM

Well, it is a scripted subscreen, and the issue arose from a 2.54 beta 48 feature bug... Namely, assigning a value to Link->ItemB does not work properly. (I'm not sure if it was even intended to work properly, but I got it working for the most part, until this issue).



#4 Binx

Binx

    Formerly Lineas

  • Members
  • Real Name:Brian
  • Location:Lancaster, CA

Posted 09 August 2018 - 02:41 PM

I'd be very surprised if that isn't intended to work properly. You should probably make a bug report in the dev server on Discord, Here's a link. https://discord.gg/



#5 Emily

Emily

    Scripter / Dev

  • ZC Developers

Posted 09 August 2018 - 03:08 PM

I thought I read something about that particular variable being read-only, though I may be misremembering. Setting to it is like, very very buggy- namely, when you set it it only sets for one frame, so unless you set it every frame it doesn't work. This makes sense if it's supposed to be read-only. 




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users