Jump to content

Photo

Freedom in Chains


  • Please log in to reply
46 replies to this topic

#46 Moosh

Moosh

    fug :DD

  • Members
  • Real Name:Moosh
  • Gender:Male
  • Location:The Frozen North

Posted 27 September 2015 - 06:37 PM

Speaking of those scripts, there's a few functions that aren't defined like PressButtonItem and InputButtonItem. Are those part of another header, or just left out of the script file? I'm trying to transfer part of the code to another quest and they seem to be the only things that aren't defined.

Those are from a header of assorted functions I use. Here you go:

bool PressButtonItem(int itm){
	if(GetEquipmentA()==itm&&Link->PressA)return true;
	else if(GetEquipmentB()==itm&&Link->PressB)return true;
	return false;
}
bool InputButtonItem(int itm){
	if(GetEquipmentA()==itm&&Link->InputA)return true;
	else if(GetEquipmentB()==itm&&Link->InputB)return true;
	return false;
}

  • ywkls likes this

#47 Dimentio

Dimentio

    Procrastinator at heart

  • Members
  • Real Name:Joshua
  • Gender:Male
  • Location:America's Hat.

Posted 29 September 2015 - 04:57 PM

... I'm just going to use those functions now. :P

I feel stupid for not using a function for that before.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users