Jump to content

Photo

2 items in 1


  • Please log in to reply
2 replies to this topic

#1 shucke

shucke

    Junior

  • Members
  • Real Name:Robin
  • Location:Nederland

Posted 03 January 2010 - 04:46 AM

i need a script that if you pick up 1 item you get 2.
just like you pick up the bomb bag and the bombs.

#2 Alestance

Alestance

    Saint Alestance - Eliminator of the ZGP format

  • Members
  • Real Name:Lonk
  • Location:Pennsylvania

Posted 03 January 2010 - 05:26 AM

Depending on what items these are, you can set some to automatically give you amount of item A.

Bomb Bags, Wallets, Quivers, Heart Containers, and Magic Containers all have the ability to give you Bombs, Arrows, Hearts, or magic respectively.

In the Item Editor, you go to (bomb bag, quiver, wallet, etc) and go to the pickup tab. there is a box with the caption "Increase amount" Set that to the amount of bombs that can be held in the bag, or whatever, and it should work well then.

Is there any other item that would give you another item that you'd need this script for?



#3 Joe123

Joe123

    Retired

  • Members

Posted 03 January 2010 - 05:28 AM

CODE
item script GiveItem{
     void run(int i){
          Link->Item[i] = true;
     }
}

D0 is item ID of second item to give Link. Set to the Pickup Script of the first item.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users