User Tag List

Page 1 of 9 1 2 3 ... LastLast
Results 1 to 10 of 90

Thread: newww questions

  1. #1
    Gibdo Master Maniac's Avatar
    Join Date
    Aug 2007
    Location
    umm in a house
    Age
    32
    Posts
    646
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,533
    Level
    16
    vBActivity - Bars
    Lv. Percent
    47.1%

    newww questions

    ok i kno i seem a little... beggy [for lack of a better word] but im in the process of finding these things on my own.

    ok so im looking at the variables and functions list on the wiki. the only problem is that it doesent seem like all of them are there. is this all of the variables and functions one could possibly need to put things in a script?

    im going to write the script on my own i just need to translate all i need to CPU language first. Thanks
    ... i just died a little inside...

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    "this time, of this sixteenth of a thousand lives will be my last, and this curse will be broken. though my fate is to burn in hell, it is worse to live among the thousand lifetimes that i have been sentenced to, than it would be to have satan tear the flesh from my body repeatedly for an eternity"

    --Andross Maximillion Remedy
    (otherwise known as Rem)

  2. #2
    Lynel
    ZC Developer
    pkmnfrk's Avatar
    Join Date
    Jan 2004
    Location
    Toronto
    Age
    37
    Posts
    1,248
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    3,142
    Level
    18
    vBActivity - Bars
    Lv. Percent
    10.56%

    Re: newww questions

    No, this is not all we might need. However, that's all there is for now.

    That said, many things are possible. We can help you figure out what you need if it's not obvious.
    Tale of the Cave - a web comic - Updates Monday, Wednesday, Friday
    ZC Tutorials - Tutorials and Script Library - Updated July 30, 2008
    ZeldaGuard - Corruption in my save files? It's more likely than you think!
    I do script requests!

  3. #3
    Gibdo Master Maniac's Avatar
    Join Date
    Aug 2007
    Location
    umm in a house
    Age
    32
    Posts
    646
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,533
    Level
    16
    vBActivity - Bars
    Lv. Percent
    47.1%

    Re: newww questions

    lol im kinda trying to stop bugging everyone here and finally do something myself for once. actually all i really need to do so is an accurate list of variables and functions and i would be set. then i could write my own scripts and stop begging others to do so for me XD

    i already understand how to set up a script. i get the layout, and the use tab instead of randomly placed space bar strikes and i understand simple things like an if() function. I understand also, that the scripts have to be set up PRECISELY to work perfectly right, which means no gaps, no flaws, no holes, no errors.

    so basically all i need is to write one. the tutorials help, but they dont give variable and function lists so its not the best...

    thanks for the help XD and sorry for bugging everyone so much.

    and i agree with joe.
    looks reeeally creepy. like its hiding something. or it could be the look someone gives after farting in an elevator. either way works.
    ... i just died a little inside...

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    "this time, of this sixteenth of a thousand lives will be my last, and this curse will be broken. though my fate is to burn in hell, it is worse to live among the thousand lifetimes that i have been sentenced to, than it would be to have satan tear the flesh from my body repeatedly for an eternity"

    --Andross Maximillion Remedy
    (otherwise known as Rem)

  4. #4
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    32
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,303
    Level
    26
    vBActivity - Bars
    Lv. Percent
    8.74%

    Re: newww questions

    You agree with me about what?
    I haven't posted here...


    Don't worry about bugging if you're asking for help, you'll never learn if you don't ask.
    I had to bug for weeks before I could do anything.

    What specific things do you need to know about this time?

    Learning by reading other scripts and copying other syntax/functions is how I did it.

  5. #5
    Keese ScaryBinary's Avatar
    Join Date
    Dec 2006
    Age
    49
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    916
    Level
    10
    vBActivity - Bars
    Lv. Percent
    51.79%

    Re: newww questions

    ZScript gives you some built in variables and functions, but you can also create your own.

    Some of the built-in things you can mess around with include enemies, Link, Freeform Combos, various Screen settings, etc. Keep in mind that scripting doesn't give you full control of every aspect of the game, so you might be expecting more than there really is as far as functions and so on.

    The Script Showcase is a good spot to look around, but admittedly some of the scripts are confusing if you don't know what the scripts are trying to do in the first place.

    The Wiki is a good starting point, but yes, there probably are some things missing here and there. I've tried to update it, but in some cases I lack the time to do a decent job, and in other cases I lack the knowledge......the more questions we ask here, the more answers we'll get, and it will allow us to improve the Wiki. So ask away!

    PS: For the record, I prefer spaces over tabs when indenting. I've been bitten by tabs too often....

  6. #6
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    32
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,303
    Level
    26
    vBActivity - Bars
    Lv. Percent
    8.74%

    Re: newww questions

    Nooo, space bar is evil.
    Tab does nice sized indents.

  7. #7
    Gibdo Master Maniac's Avatar
    Join Date
    Aug 2007
    Location
    umm in a house
    Age
    32
    Posts
    646
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,533
    Level
    16
    vBActivity - Bars
    Lv. Percent
    47.1%

    Re: newww questions

    lol i kno it wasnt a post here but i remember reading a post where you said the guy looks creepy and i agree so i figured id say something about it XD

    ok... so basically what i need... for now... is variables to describe an FFc movement, to check link's position on the screen, and some to describe the ffc taking damage like flashing and being knocked back when the ghosted enemy is hit.

    then im not sure how i would set it up but i need to make the ffc pullable via hookshot. but idk the slightest thing about bringing items into ffc scripts so... yea...

    ill check out the script showcase and see if they help though. thanks!
    ... i just died a little inside...

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    "this time, of this sixteenth of a thousand lives will be my last, and this curse will be broken. though my fate is to burn in hell, it is worse to live among the thousand lifetimes that i have been sentenced to, than it would be to have satan tear the flesh from my body repeatedly for an eternity"

    --Andross Maximillion Remedy
    (otherwise known as Rem)

  8. #8
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    32
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,303
    Level
    26
    vBActivity - Bars
    Lv. Percent
    8.74%

    Re: newww questions

    That was Matthew, not me...

    Right, well.
    Checking Link's position on the screen is as easy as:
    Code:
    Link->X
    Link->Y
    Putting that command returns the value of the top-left pixel of Link's current location, as an integer that you can use for whatever purpose.
    You can also set it to move Link.

    FFC movement:
    You can either:
    Code:
    this->X
    this->Y
    Acces the ffc's coordinates directly the same way as you did with Link's, or:
    Code:
    this->Vx = whatever;
    this->Vy = googol;
    Set the vertical and horizontal component's of the ffc's velocity, a bit like that.
    A googol is probably a bad idea though.

    Please note that there is an important discretion between:
    Code:
    this->Vx = 20;
    this->Vx == 20
    Note how I finished the first line with a semi colon, but not the second.
    '=' means 'is set to'
    '==' means 'is equal to'
    All functions finish with a semi-colon, so the first line is a function, setting the Vx to 20.
    The second line you would use as the requirements for an if or while, to check whether the ffc the script is attached to's horizontal velocity is equal to 20.

    [EDIT:] Aswell as the discretion between:
    Code:
     this->Vy = foo;
    foo = this->Vy;
    The first will set foo to the script's ffcs speed, while the second will set the ffc's speed to foo.
    That's probably obvious, but important to note nonetheless.
    [/EDIT]

    On a(further)n aside, declaration and manipulation of different ffcs:
    If you just put 'this', it's pointer is already loaded as the ffc the script is attached to, but if you want to reference another ffc, you must load it like this:
    Code:
    ffc foo = Screen->LoadFFC(5);
    Then you can reference foo and tell it what to do:
    Code:
     foo->Vx = 5;
    this->Vx = 98.7
    In the same way as you can set the ffc that the script is attached to's info.

    To change the ffc to make it flash, you want:
    Code:
    this->Data = ????;
    Which will set the combo attacked to the ffc to the combo ID you give it.

    Anything you don't understand, feel free to ask away to your heart's content.

  9. #9
    Gibdo Master Maniac's Avatar
    Join Date
    Aug 2007
    Location
    umm in a house
    Age
    32
    Posts
    646
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,533
    Level
    16
    vBActivity - Bars
    Lv. Percent
    47.1%

    Re: newww questions

    ok i understand most of this... just a few questions

    so i get the check link position variables.
    and to make the FFC check link's position, wait, then move i would...

    Code:
    Link->X(Waitframe(30))->this->X
    Link->Y(Waitframe(30))->this->Y
    right?... but no... it would be un-organized as that and move toward the X before the Y... so this is the wrong way to do it i would guess. they just need to be seperated and re-organized... would it be better as

    Code:
    (waitframe(30))this->X==Link->X
    and then do the same for the Y?this seems to make a slight bit more sense to me, but it would wait, then go to the link position after 30 frames... so the link would be directly targeted instead of his position targeted and then sent to that... ugh this is confusing.

    also, how would i set the velocity of the movement to the checked position? would i set the velovity variables at the end using parentheses?
    ... i just died a little inside...

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    "this time, of this sixteenth of a thousand lives will be my last, and this curse will be broken. though my fate is to burn in hell, it is worse to live among the thousand lifetimes that i have been sentenced to, than it would be to have satan tear the flesh from my body repeatedly for an eternity"

    --Andross Maximillion Remedy
    (otherwise known as Rem)

  10. #10
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    32
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,303
    Level
    26
    vBActivity - Bars
    Lv. Percent
    8.74%

    Re: newww questions

    *sigh*
    If only it were that simple.

    What you just put makes absolutely no scripting sense whatsoever.
    I can see what you're getting at, but it won't work.

    so i get the check link position variables.
    and to make the FFC check link's position, wait, then move i would...

    Code:
    Link->X(Waitframe(30))->this->X
    Link->Y(Waitframe(30))->this->Y
    right?
    Wrong.

    What you'd do is:
    Code:
    int x; int y; // declare some integers to store coordinates in
    int xdistance; int ydistance; // declare some integers to store distances in
    int time = 10; // this is the number of pixels per frame your ffc will move at (I think)
    x = Link->X; // set them to Link's current coordinates
    y = Link->Y; 
    Waitframes(30); //Wait for 30 frames (although I don't advise doing it like this, then your script will stop all other functions for 30 frames)
    xdistance = Abs(this->X - x); //set the distance between the values you took and the ffc's coordinates.
    			      //Abs takes the absolute value of the parameter, so if the value is negative it will be set positive
    ydistance = Abs(this->Y - y);
    
    //Speed == distance / time, so:
    this->Vx = (xdistance / time); // set the vertical and horizontal speeds of the ffc by dividing their distances from x and y
    this->Vy = (ydistance / time); // by a time constant.
    And you'd have that within a loop, and with probably some sort of:
    Code:
    if(this->X == x && this->Y == y){whatever}
    at the end.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social