Jump to content

Photo

Scripted Items Don't Remove "Cost" Item


  • Please log in to reply
6 replies to this topic

#1 Korben

Korben

    Junior

  • Members
  • Location:USA

Posted 10 October 2021 - 11:09 PM

Tested in 2.55 Alpha 98. When you use a scripted item it doesn't remove the selected "cost" item. So If I select for an item to remove a single bomb when used, my bomb total stays at 8 instead of going down to 7.



#2 Emily

Emily

    Scripter / Dev

  • ZC Developers
  • Pronouns:She / Her

Posted 11 October 2021 - 01:45 AM

Define "scripted item"
  • Bagu likes this

#3 Korben

Korben

    Junior

  • Members
  • Location:USA

Posted 11 October 2021 - 09:41 AM

Define "scripted item"

The bomb arrow script you made a few months ago.  (https://pastebin.com/yMhVx169)


Edited by Korben, 11 October 2021 - 09:42 AM.


#4 Mani Kanina

Mani Kanina

    Rabbits!

  • Members

Posted 11 October 2021 - 10:51 AM

I'd imagine you config in the item editor in ZQ for this to cost bombs to use?



#5 Korben

Korben

    Junior

  • Members
  • Location:USA

Posted 11 October 2021 - 11:08 AM

I'd imagine you config in the item editor in ZQ for this to cost bombs to use?

Yes



#6 Emily

Emily

    Scripter / Dev

  • ZC Developers
  • Pronouns:She / Her

Posted 13 October 2021 - 09:59 AM

Yes

What item type is it? Really need to know that to be able to even start looking at this....



#7 Korben

Korben

    Junior

  • Members
  • Location:USA

Posted 13 October 2021 - 11:22 AM

What item type is it? Really need to know that to be able to even start looking at this....

Here is everything I changed in the editor aside from sprites/sounds.

 

Class: Script 01

Level: 1

W. Power: 8 

Step Speed: 3

Equipment Item is checked

Constant Script is checked

Cost 1 (Bombs)

W. Script -> Action Script: BombArrow

Weapon -> Weapon Type: Arrow




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users