Jump to content

Photo

Switch Hook


  • Please log in to reply
4 replies to this topic

#1 Aefre

Aefre

    artist guy

  • Members
  • Real Name:Jarik
  • Location:Oregon

Posted 30 January 2017 - 11:30 PM

If anyone has time, I would like a script that acts like the switch hook in Oracle of Ages.

 

It acts like the hookshot, but when it hits a certain combo (or freeform combo) it switches looks location with that combo.

 

0 ---> X

0 <---> X

X <--- 0

 

Extra: If you REALLY want to, you could add the animation it has, where link and the block raises about 1/3 of a tile, switches places, then lowers back. again, this is if you really want to



#2 Demonlink

Demonlink

    Lurking in the shadows...

  • Members
  • Real Name:Miguel
  • Location:Wouldn't you like to know?

Posted 31 January 2017 - 12:04 AM

Here ya go. Keep in mind that while it is very useful, it's not fully polished yet. It's lacking support for push block flags, as in, you can't use it to switch places with workable pushable blocks yet. :P



#3 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 31 January 2017 - 06:39 AM

I made this for the first Item of the Month:

 

http://www.purezc.ne...968#entry983904

 

Scroll down to 'SwitchShot'. It has a very easy set-up, many config options, and works using standard hookshot items. It also works damned well, solidly, and with no grievous bugs. Try the demo quest.


Edited by ZoriaRPG, 31 January 2017 - 06:40 AM.


#4 Aefre

Aefre

    artist guy

  • Members
  • Real Name:Jarik
  • Location:Oregon

Posted 31 January 2017 - 11:04 AM

Sorry, I didn't realize it was in the database, ill look harder next time I post something... Thank you!

 

EDIT: I get an error message, repeating "FUNCTION GETLAYERCOMBOI IS UNDECLARED" and the like. anything I can do to fix this?


Edited by GreatJK, 31 January 2017 - 11:13 AM.


#5 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 01 February 2017 - 01:05 AM

Sorry, I didn't realize it was in the database, ill look harder next time I post something... Thank you!

 

EDIT: I get an error message, repeating "FUNCTION GETLAYERCOMBOI IS UNDECLARED" and the like. anything I can do to fix this?

 


//A shorthand way to get a combo inherent flag on the current layer.
//Layer 0 is the screen itself.
int GetLayerComboI(int layer, int pos) {
    if (layer==0) return Screen->ComboI[pos];
    else return Game->GetComboInherentFlag(Screen->LayerMap(layer), Screen->LayerScreen(layer), pos);
}

//A shorthand way to set a combo inherent flag on the current layer.
//Layer 0 is the screen itself.
void SetLayerComboI(int layer, int pos, int flag) {
    if (layer == 0) Screen->ComboI[pos] = flag;
    else Game->SetComboInherentFlag(Screen->LayerMap(layer), Screen->LayerScreen(layer), pos, flag);
}

//A shorthand way to get a combo CSet on the current layer.
//Layer 0 is the screen itself.
int GetLayerComboC(int layer, int pos) {
    if (layer==0) return Screen->ComboC[pos];
    else return Game->GetComboCSet(Screen->LayerMap(layer), Screen->LayerScreen(layer), pos);
}

//A shorthand way to set a combo CSet on the current layer.
//Layer 0 is the screen itself.
void SetLayerComboC(int layer, int pos, int cset) {
    if (layer == 0) Screen->ComboC[pos] = cset;
    else Game->SetComboCSet(Screen->LayerMap(layer), Screen->LayerScreen(layer), pos, cset);
}
 

 

Part of the newer std.zh.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users