Jump to content

Photo

stdExtra.zh

Header

  • Please log in to reply
37 replies to this topic

#16 MoscowModder

MoscowModder

    Sometimes lurking. Rarely posting.

  • Members
  • Location:Wisconsin

Posted 23 February 2013 - 07:17 PM

Added those, thanks!

#17 tox_von

tox_von

    Zelda Addict

  • Members
  • Real Name:Redgor
  • Location:Toxicville , Simcity

Posted 03 March 2013 - 05:41 PM

QUOTE
//Prevents moving in any direction
void NoMovement()
{
Link->InputUp = false; Link->PressUp = false;
Link->InputDown = false; Link->PressDown = false;
Link->InputLeft = false; Link->PressLeft = false;
Link->InputRight = false; Link->PressRight = false;
}


that one is really good i used it for my tree shake topic. the press up etc didn't know about.

Edited by tox_von, 03 March 2013 - 05:42 PM.


#18 MoscowModder

MoscowModder

    Sometimes lurking. Rarely posting.

  • Members
  • Location:Wisconsin

Posted 23 April 2013 - 12:10 AM

Update: Added a bunch of new stuff. Can't remember what all I added, but it includes
  • debugLabel() and debugValue(), which are shortcuts to drawString and drawInteger intended for debug output.
  • moveLink() and move(), which just move objects with options to check or ignore solidity and moving off screen.
  • WaitframesNoAction(), which simply combines Waitframes() and WaitNoAction().
  • checkScreenFlag(), which makes it easier to get a screen flag without worrying about bitwise operators.


#19 Saffith

Saffith

    IPv7 user

  • Members

Posted 23 April 2013 - 05:07 PM

Small criticism: the style isn't consistent. Some functions start with capital letters, and some with lowercase. The screen constants aren't all caps like the rest.
Also, there's already a multi-frame version of WaitNoAction(), so that one's superfluous.
Still, useful stuff. Not sure how I didn't see this sooner. :P

#20 Mero

Mero

    Touch Fluffy Tail

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

Posted 23 April 2013 - 05:23 PM

I'm planning on eventually cleaning it up and making the style consistent with std.zh.
Once I finish my other plans that is. :P

#21 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 03 May 2013 - 04:54 AM

I like this. I did note that lines after 345 seem to depend on another header though; I commented them out and it compiled. The problem seems to be this:
FONT_S, COLOR_WHITE, COLOR_BLACK

These aren't defined in the hader, or in any header I use at present. Am I missing a piece of the picture?

I don't recall if it also halted on:
TF_NORMAL or OP_OPAQUE
It may have done so, but as I commented out the debug values, I didn't heed anything beyond the initial few errors.


#22 MoscowModder

MoscowModder

    Sometimes lurking. Rarely posting.

  • Members
  • Location:Wisconsin

Posted 03 May 2013 - 10:04 AM

That's a 'reminder' to uncomment and manually set the values of COLOR_WHITE and COLOR_BLACK at the top.

#23 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 04 May 2013 - 12:32 PM

Ah. I'll re-read the script and see what I missed.

#24 Mitchfork

Mitchfork

    no fun. not ever.

  • Members
  • Real Name:Mitch
  • Location:Alabama

Posted 14 May 2013 - 03:42 PM

A few lines of the OP code are broken because it looks like there's html coding for PureZC emoticons in it. :P



#25 MoscowModder

MoscowModder

    Sometimes lurking. Rarely posting.

  • Members
  • Location:Wisconsin

Posted 14 May 2013 - 03:56 PM

Good old IPB messing up my codes. Ugh. Thanks, EZ.



#26 aaa2

aaa2

    Wizard

  • Banned

Posted 15 May 2013 - 04:23 PM


void real_trigger_secrets(){
if(Screen->Flags[SF_SECRETS]&2){
Screen->TriggerSecrets();
}else{
Screen->TriggerSecrets();
Screen->State[ST_SECRET]=true;
}
}

Triggers secrets the way you choose on screen data permanent or not per choice there

bool Link_on_combo_type(int type){
         bool on=false;
         if(Screen->ComboT[ComboAt(Link->X+8,Link->Y+8)]==type) on =true;
         return on;
 
}
 
bool Link_on_tall_grass(){
return (Link_on_combo_type(CT_TALLGRASS)|Link_on_combo_type(CT_TALLGRASSC)|Link_on_combo_type(CT_TALLGRASSNEXT));
}

checks for combo type under link

void closingwipe(int wipetime){
for(int i=wipetime;i>0;i--){
NoAction();
InvertedCircle(4, 6, CenterLinkX(), CenterLinkY(), Floor(300/wipetime)*i, 1, 15);
Waitframe();
}
}
void openingwipe(int wipetime){
for(int i=0;i<wipetime;i++){
NoAction();
InvertedCircle(4, 6, CenterLinkX(), CenterLinkY(), Floor(300/wipetime)*i, 1, 15);
Waitframe();
}
}
 

Uses the InvertedCircle Method to allow for custom open and close wipes around link.


Edited by aaa2, 15 May 2013 - 04:42 PM.


#27 Gleeok

Gleeok

    It's dangerous to dough alone, bake this.

  • Members
  • Real Name:Pillsbury
  • Location:Magical Land of Dough

Posted 05 July 2013 - 04:26 AM

Hey, some of those first ones look awfully familiar... D: lol. Anyway, here's some utility stuff if someone wants to check them out. (mostly enemy) I don't have the time right now to sort everything but I'm sure we'll get all this figured out. (I have a bunch of stuff to go through) http://filesmelt.com/dl/zc_scripts.zip (I don't know if all of it will fit in one post.)

#28 kurt91

kurt91

    Follower of Destiny

  • Members
  • Real Name:Kurtis
  • Location:Eastern Washington University

Posted 25 January 2014 - 12:42 AM

Um... I think something broke. I downloaded this just now, needing it for some scripts I have, and I'm getting errors regarding undeclared functions in stdextra.zh.



#29 MoscowModder

MoscowModder

    Sometimes lurking. Rarely posting.

  • Members
  • Location:Wisconsin

Posted 25 January 2014 - 12:56 AM

Did you include the three "prerequisite" headers? They're commented out near the top but you need to have them uncommented at least once in your script file.



#30 kurt91

kurt91

    Follower of Destiny

  • Members
  • Real Name:Kurtis
  • Location:Eastern Washington University

Posted 25 January 2014 - 01:02 AM

I see. I didn't have "string.zh" set up. I'll get that one and see if it works.

 

EDIT: Er... I can't find it anywhere, and the forum search bar isn't helping. Mind telling me where to look?


Edited by kurt91, 25 January 2014 - 01:04 AM.




Also tagged with one or more of these keywords: Header

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users