User Tag List

Results 1 to 10 of 10

Thread: Freeform Combo Scripting System Wishlist

  1. #1
    Developer
    ZC Developer

    Join Date
    Aug 2006
    Location
    Australia
    Age
    37
    Posts
    2,777
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    6,855
    Level
    25
    vBActivity - Bars
    Lv. Percent
    38.33%

    Lightbulb Freeform Combo Scripting System Wishlist

    Current Wishlist:

    Arguments:

    script - the script number of the FFC. When this is changed, flow switches to the first instruction of the newly referenced script.
    strike - this one is 0 unless the FFC is colliding with a weapon, in which case it returns a number corresponding to which weapon it was (wooden sword = 1, boomerang = 5 etc.) With this one, we could conceivably make FFCs into custom enemies.
    button - contains a bitfield corresponding to which buttons (up, down, left, right, A, B) are being pressed by the player.

    Instructions (# denotes a value, R denotes a register.):

    COLLIS - One that sets the TRUEFLAG if the FFC collides with Link.
    LTOGGLE - Toggles the player's ability to control Link on and off. When off, you cannot move Link or use items. Good for cutscenes!
    GOSUB # - Stores the current line number somewhere and goes to line number #.
    RETURN - Goes to the line number stored by GOSUB.
    CD R1,R2 - finds the room combo data number at coordinates (R1,R2), and stores it in R1. Highly sought after!
    MAKEITEM # - Creates item number # at the FFC's X and Y coordinates.
    SND # - Starts playing sound number # from sfx.dat. Extremely sought after!

  2. #2
    Robots in Disguise
    ZC Developer
    Dark Nation's Avatar
    Join Date
    Mar 2000
    Posts
    5,401
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,661
    Level
    26
    vBActivity - Bars
    Lv. Percent
    62.34%

    Re: Freeform Combo Scripting System Wishlist

    Here are the latest new commands for the scripting language:

    MODR
    MODV - These do modulus operations, basically the remainder after a division.
    SINR
    SINV
    COSR
    COSV
    TANR
    TANV - sine, cosine, and tangent trig functions
    ABSR - Sets a register to its absolute value.
    MINR
    MINV - Sets a register to the lower of itself and another number.
    MAXR
    MAXV - Sets a register to the higher of itself and another number.
    RNDR
    RNDV - As stated above, sets a register to a random number between 0 and another number (not including the other number).

  3. #3
    Gibdo Praethus's Avatar
    Join Date
    Apr 2002
    Age
    40
    Posts
    894
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,896
    Level
    14
    vBActivity - Bars
    Lv. Percent
    50.51%

    Re: Freeform Combo Scripting System Wishlist

    w00t! Random number generator and trig functions. So many possibilities... ^_^
    Current Quests in Progress...
    Zelda: Eya's Song

  4. #4
    Wizrobe
    Join Date
    Nov 2002
    Posts
    2,819
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    8,466
    Level
    27
    vBActivity - Bars
    Lv. Percent
    78.51%

    Re: Freeform Combo Scripting System Wishlist

    i haven't even bothered toying around with this feature (FFC scripting) yet. Can anyone list a few examples of what you can do with it that you couldn't do before?
    My Zquest Tutorial
    tutorial document

    Working on a quest, I swear i'll finally finish one, one of these days!

    Status:
    --Overworld: 60% done
    --Dungeons: 0% done
    --Misc: 0% done

  5. #5
    Developer
    ZC Developer
    jman2050's Avatar
    Join Date
    Jun 2001
    Location
    Do you really need to know
    Age
    37
    Posts
    3,883
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    5,713
    Level
    23
    vBActivity - Bars
    Lv. Percent
    46.87%

    Re: Freeform Combo Scripting System Wishlist

    Script: Give a starting radius(X accel), starting angle(Y accel x 90), and starting rotation speed(Y speed), attach it to FFC #1 as a center point, assume the FFCs are 16x16 pixels. Result: Rotation around a central (even moving) point. In my case, I combned it with the moving platform script I made to make two FFCs that rotating around a moving platform.

    Code:
    		SETV a1,1
    		SETR d2,xd2  ; d2 is the radius
    		SETV xd2,0
    		SETR d3,yd2  ; d3 is the current angle
    		SETV yd2,0
    		MULTV d3,90
    		SETR d4,yd  ; d4 is the speed of rotation
    		SETV yd,0
    DoRotation	LOAD1 d0,x  ; d0 is center x based on FFC 1
    		LOAD1 d1,y  ; d1 is center y based on FFC 1
    		LOAD1 d7,xd
    		ADDR d0,d7  ; Since FFC scripts are executed BEFORE the movement variables are applied, apply the movement variables yourself to the center point to ensure perfect rotation
    		LOAD1 d7,yd
    		ADDR d1,d7 ; And do the same with the X position
    		ADDV d0,8  ; Add 8 to the center X/Y point since FFC X/Y is top-left jutified
    		ADDV d1,8
    		COSR d7,d3  ; Calculate final X position FFC
    		MULTR d7,d2
    		ADDR d7,d0
    		SETR x,d7
    		SUBV x,8     ; Subtranct 8 to ensure rotation occurs at center of FFC, not at origin point
    		SINR d7,d3  ; Calculate final Y position of FFC
    		MULTR d7,d2
    		ADDR d7,d1
    		SETR y,d7
    		SUBV y,8    ; Do the same for Y as above
    		ADDR d3,d4     ; Add the rotation speed to the angle
    		COMPAREV d3,360  ; This whole section rolls around the angle value if it's >=360 or <0
    		GOTOLESS DoRotation2
    		SUBV d3,360
    DoRotation2	COMPAREV d3,0
    		GOTOMORE DoRotation3
    		ADDV d3,360
    DoRotation3	WAITFRAME
    		GOTO DoRotation ; Repeat he whole thing
    		QUIT
    AGN's Resident Zelda Classic Developer and Sonic the Hedgehog Fanboy

  6. #6
    Developer
    ZC Developer

    Join Date
    Aug 2006
    Location
    Australia
    Age
    37
    Posts
    2,777
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    6,855
    Level
    25
    vBActivity - Bars
    Lv. Percent
    38.33%

    Re: Freeform Combo Scripting System Wishlist

    I've thought of something else to add:
    * GOSUB and RETURN. GOSUB X would store the current line number somewhere and GOTO X. RETURN would simply GOTO the stored line number. This would be helpful for large scripts.

  7. #7
    Developer
    ZC Developer
    jman2050's Avatar
    Join Date
    Jun 2001
    Location
    Do you really need to know
    Age
    37
    Posts
    3,883
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    5,713
    Level
    23
    vBActivity - Bars
    Lv. Percent
    46.87%

    Re: Freeform Combo Scripting System Wishlist

    Since we plan on implementing a stack, that's certainly not far away at all.
    AGN's Resident Zelda Classic Developer and Sonic the Hedgehog Fanboy

  8. #8
    Developer
    ZC Developer

    Join Date
    Aug 2006
    Location
    Australia
    Age
    37
    Posts
    2,777
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    6,855
    Level
    25
    vBActivity - Bars
    Lv. Percent
    38.33%

    Re: Freeform Combo Scripting System Wishlist

    I've taken to the habit of listing my new wishes in the first post. But here's what the newest ones are:

    Arguments:

    button - contains a bitfield (or whatever it's called) corresponding to which buttons (up, down, left, right, A, B) are being pressed by the player. Combine with LTOGGLE below for unlimited entertainment!

    Instructions:

    COLLIS - One that sets the TRUEFLAG if the FFC collides with Link.
    LTOGGLE - Toggles the player's ability to control Link on and off. When off, you cannot move Link or use items. Good for cutscenes!
    CD R1,R2 - finds the room combo data number at coordinates (R1,R2), and stores it in R1. Highly sought after!
    MAKEITEM # - Creates item number # at the FFC's X and Y coordinates. Useful for ammunition-requiring bosses?
    SND # - Starts playing sound number # from sfx.dat. Extremely sought after!

  9. #9
    Gibdo beefster09's Avatar
    Join Date
    Mar 2006
    Age
    31
    Posts
    699
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,714
    Level
    16
    vBActivity - Bars
    Lv. Percent
    98.49%

    Re: Freeform Combo Scripting System Wishlist

    What about:

    lh ;Link's Health
    lm ;Link's Magic

    As variables?
    Avatar: Just who the SPAAAACE do you think I am?

  10. #10
    Lynel
    Join Date
    Mar 2005
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    3,004
    Level
    17
    vBActivity - Bars
    Lv. Percent
    74.97%

    Re: Freeform Combo Scripting System Wishlist

    These seem like good additions to me.

    HASITEM #; Returns true if the player has a specific item #, false if not (equipment counts as well).
    ONUSE #; When the item equal to number is used (only useable items would be able to trigger this), it'll execute the line below it, otherwise, it'll skip over it. This could be used with a GOTO underneath to achieve the effect of doing something specific on use of an item. Or even better would be if we could use brackets ({}) to designate what should be run when the item is used.

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