Jump to content

Photo

[2.55] Enemy Sword 3.0 Fix


  • Please log in to reply
3 replies to this topic

#1 GreatValue

GreatValue

    iceman

  • Members

Posted 05 July 2026 - 01:48 PM

[2.55] Enemy Sword by Moosh

The script works great and the enemies functions, but it struggles with ZC 3.0 regions.

 

  • Enemies can only be placed on the Top-Left most screen, and if they were not they would immediately be teleported there.
  • They are capable of moving offscreen with their basic wander AI although they will just wrap around the Top-Left most screen.
  • They can chase the player offscreen but as soon as the aggro ends they are teleported back. 

I know that there are listed ways to port scripts to regions on the Z3 user guide, however I'm very new to scripting and don't know exactly what I need to change in the script inorder to avoid the listed problems.

 

Thank you for your time. 



#2 Twilight Knight

Twilight Knight

    Tell all with glee, Argon's on PureZC

  • Members
  • Real Name:Sven
  • Location:Rotterdam, NL

Posted Yesterday, 02:50 AM

Hey!

 

I'm not experienced with 3.0 yet, but there is this help/overview article for migrating to 3.0 and use regions: https://docs.zquestc.../z3_user_guideĀ 

But I doubt it will be useful if you're a novice at scripting.

 

What would work better is joining the PureZC Discord, the forums are less active than the Discord. It also has a "zc-scripting" channel.

 

Might be someone already ported this script, or did something similar, for their own quest. Or the more experienced 3.0 scripters can give you better directions than I can.

 

Good luck!



#3 Moosh

Moosh

    The Mush

  • Moderators

Posted Yesterday, 06:06 PM

Oh boy! This script is kinda janky and definitely does some stuff I'd handle differently now, but for the moment I just went and updated the script with some bare minimum fixes. Big thing that was broken was I had some lifted ghost.zh code that's now just a part of std and better updated for 3.0. So making that use the GhostBasedMovement version of that walk function should prevent the enemies from teleporting and being bound to the top-left. Hope this helps!

 

https://www.purezc.n...=scripts&id=482



#4 GreatValue

GreatValue

    iceman

  • Members

Posted Yesterday, 07:37 PM

The fix did the trick, the enemies now venture out into the rest of the region 

 

This script definitely compliments regions. There's is a lot more room for these enemies to maneuver alongside the player. 




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users