User Tag List

Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 32

Thread: Trying to figure out Zscript

  1. #1
    Patra Jigglysaint's Avatar
    Join Date
    Nov 2000
    Location
    Shady Oaks
    Age
    44
    Posts
    7,738
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,884
    Level
    26
    vBActivity - Bars
    Lv. Percent
    95.69%

    Trying to figure out Zscript

    Wow, it must have been a year since I've messed arround with ZC. Just felt bored, so I decided to try my luck at scripting.

    Problem is, I am not quite sure exactly what I am doing. To get the hang of things, I tried to insert two simple scripts, one of them being the display string on item pickup script. For some reason I can't have more than one script activated at at time. When I compile one, the other stops working.

    The other thing is that I am attemping to make a simple weapon. I just want the wand to fire rocks instead of magic. Problem is, it seems that spawning a weapon sprite is limited to NPC actions, and I am really not knowing what's going on.

    Also, as a bit of a rant, they really should organize things and allow for the option to displa and write stuff with bytes. Also a ram editor for ZC would be handy. Heck I'd code stuff in raw hex if I could.

    So I just need a little help on how I would go about coding in a simple new weapon.
    The name might be missleading, I'm not jigglypuff.


    "...A Bible! A Bible! We have got a Bible, and there cannot be any more Bible."
    Second Nephi 29:3

  2. #2
    Wizrobe
    Join Date
    Dec 2006
    Age
    29
    Posts
    3,693
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    8,935
    Level
    28
    vBActivity - Bars
    Lv. Percent
    42.94%

    Re: Trying to figure out Zscript

    Quote Originally Posted by Jigglysaint View Post
    \Problem is, I am not quite sure exactly what I am doing. To get the hang of things, I tried to insert two simple scripts, one of them being the display string on item pickup script. For some reason I can't have more than one script activated at at time. When I compile one, the other stops working.
    You have to have both scripts in the same file.
    Quote Originally Posted by rock_nog View Post
    Well of course eveything's closed for Easter - don't you know of the great Easter tradition of people barricading themselves up to protect themselves from the return of Zombie Christ?


  3. #3
    Patra Jigglysaint's Avatar
    Join Date
    Nov 2000
    Location
    Shady Oaks
    Age
    44
    Posts
    7,738
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,884
    Level
    26
    vBActivity - Bars
    Lv. Percent
    95.69%

    Re: Trying to figure out Zscript

    Ahh, I see. So basically, you need to compile everything at once for it to work. Well that will help when I figure out how to make new weapons. You would think it's as easy as just changing what projectile comes out of where.
    The name might be missleading, I'm not jigglypuff.


    "...A Bible! A Bible! We have got a Bible, and there cannot be any more Bible."
    Second Nephi 29:3

  4. #4
    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.51%

    Re: Trying to figure out Zscript

    Scripting is, no offense everyone, a clusterfuck.

    To make the wand fire rocks, you don't need to use Scripting, you can edit the wand directly. Go to the Action tab of the Wand item, and in the "Magic Sprite" box, choose "Rock". I'm 95% sure that changes both the sprite and the behaviour, but I haven't played around with it much.

    And, making new weapons up entirely is a real pain (right now).
    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!

  5. #5
    Patra Jigglysaint's Avatar
    Join Date
    Nov 2000
    Location
    Shady Oaks
    Age
    44
    Posts
    7,738
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,884
    Level
    26
    vBActivity - Bars
    Lv. Percent
    95.69%

    Re: Trying to figure out Zscript

    I'm pretty sure it only changes the graphics. I tried that with the sword beam and it still acted like a sword beam. I want it to shoot reflected rocks. It's kind of like the homing wand that one alpha had as a joke item.
    The name might be missleading, I'm not jigglypuff.


    "...A Bible! A Bible! We have got a Bible, and there cannot be any more Bible."
    Second Nephi 29:3

  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.71%

    Re: Trying to figure out Zscript

    Quote Originally Posted by pkmnfrk View Post
    Scripting is, no offense everyone, a clusterfuck.
    What is clusterfuck?

  7. #7
    Patra Jigglysaint's Avatar
    Join Date
    Nov 2000
    Location
    Shady Oaks
    Age
    44
    Posts
    7,738
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,884
    Level
    26
    vBActivity - Bars
    Lv. Percent
    95.69%

    Re: Trying to figure out Zscript

    I take it somebody's been watching the Nerd?

    Anyway, so I was right. Sprites are only for the sprite. The projectile will still act like the wand magic. Perhaps if I edit the actual sprite, hmmm. If not, then I'm thinking that if I could spawn an invisible NPC that fires an object when pressed, then goes away, it could work. I just don't know how to define NPC's yet.
    The name might be missleading, I'm not jigglypuff.


    "...A Bible! A Bible! We have got a Bible, and there cannot be any more Bible."
    Second Nephi 29:3

  8. #8
    The Time-Loop Continues ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,826
    Mentioned
    259 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,958
    Level
    33
    vBActivity - Bars
    Lv. Percent
    26.18%

    Re: Trying to figure out Zscript

    Quote Originally Posted by Joe123 View Post
    What is clusterfuck?


    clusterfuck

    Quote Originally Posted by pkmnfrk
    And, making new weapons up entirely is a real pain (right now).

    I ran into all sorts of unexpected stupid shit for months trying to make a global damage script, or even a function similar to ShadowMancers that deals damage. (not recomended) I believe I'm at stage 7-Denial, or is that acceptance... Anyway I take it the path to glory is paved with cussing for you too?
    This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.

  9. #9
    Patra Jigglysaint's Avatar
    Join Date
    Nov 2000
    Location
    Shady Oaks
    Age
    44
    Posts
    7,738
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,884
    Level
    26
    vBActivity - Bars
    Lv. Percent
    95.69%

    Re: Trying to figure out Zscript

    If I understand correctly, certain weapons will only damage Link or enemies. I don't know why it's not possible to edit the sprites directly. If you can give an enemy a sprite to fire, why not a weapon? Also, how come you can only choose certain weapons for enemies to fire? BTW, when I refer to sprite, I mean the script that makes it do it's thing. Like I want to have a weapon with the wand firing attribute, but no wand stab, or arrows that don't decrease ammo.

    But anyway, I know there are limitations and stuff. I just can't seem to get zcript and Zasm down. For some reason I am unsure how to work out all the variables. I know 6502c and a little Z80, but zasm seems to be a low level language aimed at programmers, not rom hackers. If I had an opcode list and a list of ram loations, I could go to town. Oh well, I'll keep trying tonight.
    The name might be missleading, I'm not jigglypuff.


    "...A Bible! A Bible! We have got a Bible, and there cannot be any more Bible."
    Second Nephi 29:3

  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.71%

    Re: Trying to figure out Zscript

    ZASM isn't perhaps as worth worrying about as ZScript, no-one around appears to be interested in it, so you've unlikely to get help so easily.

    And basically, if you want to script items, you have to script them from scratch.
    It is possible, but not very easy.

    You'd be better off with something a bit less extravagent perhaps.
    Try making a boss or something with FFC scripts.

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