Jump to content

Photo

GB Power Bracelet

Item Global FFC

  • This topic is locked This topic is locked
5 replies to this topic

#1 Zepinho

Zepinho

    Experienced Forumer

  • Members
  • Gender:Male
  • Location:Trieste, Italy

Posted 30 May 2012 - 06:13 AM

GB Power Bracelet


Description

This script recreates the functionality of the Power Bracelet item present in the Game Boy Zelda games.
It allows Link to pickup and throw heavy rocks, pot and bushes.
This is a new revised version, making use of Link tile modification items and an ffc script automatically called by the item script.

Screenshots and Demo

Demo: http://dl.dropbox.co...letDemo.qst.zip

Code

Spoiler


Setup

1 ) create 3 items, setting the appropriate Link tile modification for Link catching, pulling and holding
2 ) set the constants according to these item id's and the other settings in your quest
3 ) give the flag CF_PICK to the combos you want to be able to pickup
4 ) add the function PowerBracelet() to you global script (shold run each frame)
5 ) compile the script (after that you would need to change the SCRIPT_POWERBRACELET constant according to the slot assigned to the ffc script)
6 ) create a power bracelet item and give it the PowerBracelet item script
7 ) eventually (to have the possibility to find items under the blocks/bushes) create a dummy enemy in the editor, give him some itemset, and set NPC_ITEMSET accordingly
8 ) recompile everything again if you made changes to the script

Resources

ffscript.zh needed.



#2 Mero

Mero

    Touch Fluffy Tail

  • Banned
  • Real Name:Tamamo No Mae
  • Gender:Female
  • Location:Rainbow Factory

Posted 31 March 2013 - 04:37 PM

How would I modify this so Bombs and SBombs can lifted and thrown.

#3 peteandwally

peteandwally

    chiubicabachiukicaca

  • Members
  • Gender:Unspecified

Posted 31 March 2013 - 09:32 PM

// if pulling a block or bush for 15 frames or more, pick it up
if(counter>PB_PULL_TIME){
int loc=TouchedComboLoc();
if(Screen->ComboF[loc]==CF_PICK || Screen->ComboI[loc]==CF_PICK){

that part of the code checks whether or not the combo link is pulling on has a pull flag or is a certain type. you would have to check if a bomb was nearby earlier than this and perform similar actions while skipping the checks for blocks. You would have to turn off the generation of an item under the bomb and change the lweapon properties once the bomb was thrown to be more bomb-like.

#4 Mero

Mero

    Touch Fluffy Tail

  • Banned
  • Real Name:Tamamo No Mae
  • Gender:Female
  • Location:Rainbow Factory

Posted 02 May 2013 - 08:41 PM

Indentation broken again... Third thread I've come across tonight... :(

#5 TheBlueTophat

TheBlueTophat

    đŸ”¸

  • Members
  • Gender:Male
  • Location:USA

Posted 06 September 2013 - 12:43 PM

Nevermind, I found out how old this topic is.


Edited by coolgamer012345, 06 September 2013 - 12:44 PM.


#6 TheBlueTophat

TheBlueTophat

    đŸ”¸

  • Members
  • Gender:Male
  • Location:USA

Posted 17 January 2014 - 02:58 PM

I could use some help, I want to use this script but I am not sure how to set up correctly, I even looked in the demo and just got even more confused so could someone help me set it up step by step in more detail so I do not get confused? So far I have link graphics and the tiles are all set up in a way I *think* they are supposed to be.





Also tagged with one or more of these keywords: Item, Global, FFC

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users