Jump to content

Photo

Kodongo Script Technical Difficulties


  • Please log in to reply
2 replies to this topic

#1 Hari

Hari

    Snivy Gang

  • Members
  • Pronouns:She / Her
  • Location:Idaho

Posted 03 August 2017 - 06:32 PM

What have I done?  :wow:

UwdiV38.gif

 

I wrote a script for the Kodongo enemy from ALttP using ghost.zh. However, it went horribly wrong, as seen above. For some reason, AutoGhost spawned multiple Kodongos, when I only put one on the screen. I have no idea what I did wrong since this is my time using ghost.zh. Here is my code:

Spoiler

 

Here are screenshots of the enemy editor settings for this enemy, if needed:

Spoiler

 

I have no idea what I did, but hopefully you guys do.  :)



#2 Deedee

Deedee

    Bug Frog Dragon Girl

  • Moderators
  • Real Name:Deedee
  • Pronouns:She / Her, They / Them
  • Location:Canada

Posted 03 August 2017 - 06:37 PM

You're using an autoghosted enemy, yet your initialization is using InitCreate, which is creating more kodongos which each call InitCreate and so on. Try using InitAutoghost.

EDIT: Autoghosted enemies are enemies you place down and the script is attached to it automatically. 


Edited by Dimentio, 03 August 2017 - 06:39 PM.

  • Hari likes this

#3 Hari

Hari

    Snivy Gang

  • Members
  • Pronouns:She / Her
  • Location:Idaho

Posted 03 August 2017 - 06:49 PM

Well then.  :doh: I thought it was going to be something obvious. Thanks for the help.  :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users