Jump to content

Photo

Questions of a Newb


  • Please log in to reply
83 replies to this topic

#76 klop422

klop422

    Guess I'm full of monsters and treasure

  • Members
  • Real Name:Not George
  • Location:Planet Earth

Posted 07 June 2018 - 08:18 AM

The issue here is that 'sword' in this case is just a projectile which looks like a sword, like an enemy's version of sword beams (place a lynel or L2 Stalfos down if you need to see it).

You can use this script, however. Haven't tested it, but it's got no reviews saying that it doesn't work etc, so it's probably fine.



#77 Heffernans

Heffernans

    Experienced Forumer

  • Members

Posted 07 June 2018 - 12:55 PM

Thanks, might i ask how to use it? :)



#78 klop422

klop422

    Guess I'm full of monsters and treasure

  • Members
  • Real Name:Not George
  • Location:Planet Earth

Posted 07 June 2018 - 01:11 PM

As I say, I've never used the script before, but I think if you paste it into your script buffer (the file which contains any other scripts you're using - or make a new file if you're not using any yet), it should work alright.

It's an ffc script, so you'll have to put an ffc on the screen where you want the enemy. Then, fill in the D numbers (on the second page of the ffc) with what you want. I think the sprite ID refers to which sprite under Quest->Graphics->Sprites->Weapons/Misc, so look there. The Enemy ID is under the sprite in the enemy list. I think the rest is more or less self-explanatory, but if you have any specific issues, I (and I'm sure anyone else) would be glad to help.



#79 Heffernans

Heffernans

    Experienced Forumer

  • Members

Posted 07 June 2018 - 02:21 PM

holy moly that sounds compilicated for just spawning a npc but ill try

 

downloaded the script, named it 1.txt and

 

49a1fa5099.png

 

but then i get

 

535b59326a.png

 

maybe i could also have the npc have a different weapon thats easier but no clue wich one..


Edited by Heffernans, 07 June 2018 - 02:23 PM.


#80 klop422

klop422

    Guess I'm full of monsters and treasure

  • Members
  • Real Name:Not George
  • Location:Planet Earth

Posted 07 June 2018 - 02:25 PM

Once in Quest->Scripts, you want to click on Compile ZScript, not any of the other options. From there, you click Import and select your script file. Your script file should also be a .z file, not a .txt (which, in notepad, is as easy as clicking All Files under save as type, and then adding .z at the end of your filename).



#81 Heffernans

Heffernans

    Experienced Forumer

  • Members

Posted 07 June 2018 - 02:49 PM

c7c1c858bb.png



#82 klop422

klop422

    Guess I'm full of monsters and treasure

  • Members
  • Real Name:Not George
  • Location:Planet Earth

Posted 07 June 2018 - 03:05 PM

Put this line at the top of your code:

import "std.zh"

 

That imports the header, which declares a bunch of variables and functions. That specific one should be imported by pretty much every quest, because pretty much every script uses it. In any case, it should fix it.

 

EDIT: By the way, didn't you use a script earlier for the npc? Unless you added this script to the same file as that one, the npc won't work anymore.


Edited by klop422, 07 June 2018 - 03:07 PM.


#83 Heffernans

Heffernans

    Experienced Forumer

  • Members

Posted 07 June 2018 - 03:48 PM

Tried

 

272a4ff3c2.png

 

6bc7499efc.png

 

as a test but it does nothing?

 

also nope used no script before.


Edited by Heffernans, 07 June 2018 - 03:48 PM.


#84 klop422

klop422

    Guess I'm full of monsters and treasure

  • Members
  • Real Name:Not George
  • Location:Planet Earth

Posted 07 June 2018 - 04:15 PM

Try changing D0 to 28 (Moblin). I don't know what enemy 1 is - I can't find it on the enemy list.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users