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 items in 1
Started by
shucke
, Jan 03 2010 04:46 AM
2 replies to this topic
#1
Posted 03 January 2010 - 04:46 AM
#2
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?
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
Posted 03 January 2010 - 05:28 AM
CODE
item script GiveItem{
void run(int i){
Link->Item[i] = true;
}
}
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