Jump to content

Photo

Enemy Appearance on Whistle


  • Please log in to reply
4 replies to this topic

#1 NerdHasGoneAWOL

NerdHasGoneAWOL

    Newbie

  • Members

Posted 27 April 2020 - 06:20 PM

Note: This is my first time posting on the forums, sorry if there are tags or something like that I should have included. 

 

So, in my quest I have a desert, and in one specific screen there's nothing but open sand dune. In a cave nearby, you're supposed to meet an old man who tips you off to use the whistle on that screen. Upon the player doing so, I want an enemy (customized Leever LV.3) to appear, and upon his death I want him to drop an item (the Ladder). 

 

I messed around a bit trying to figure out how to get this to work, but I'm not exactly a ZQuest Editor expert and I know virtually no ZScript whatsoever. I'm not naive or oblivious to how the editor works, but with what I know I haven't found a way to create this scenario. All attempts have resulted in either the whistle doing nothing, the enemy not appearing, the ladder appearing with no enemy, or the enemy appearing normally before the whistle is used. 

 

Any help on how I could get this to work would be appreciated.  :D


  • Lightwulf likes this

#2 Moosh

Moosh

    Tiny Little Questmaker

  • ZC Developers

Posted 27 April 2020 - 11:24 PM

Have you tried warping the player to a duplicate screen with the enemy on it? You can have a whistle trigger turn an FFC on the screen to an Auto Side Warp [A] combo and check the screen flag Auto-Warps Are Direct. This will warp Link to a screen indicated by a side warp at the same location he was at on the previous screen. The new screen would have the enemy and the Enemies->Item screen flag or First Enemy Carries Item.


  • Lightwulf likes this

#3 Jamian

Jamian

    ZC enthusiast

  • Members

Posted 28 April 2020 - 03:29 AM

Making the Leever drop the ladder is easy (screen item carried by the enemy).

 

There is no built-in mechanic to summon an enemy with the whistle, The cleanest way to do it is to use a script, but you can also use Moosh's suggestion, which is more convoluted but does not require you to write code.


Edited by Jamian, 28 April 2020 - 03:31 AM.

  • Lightwulf likes this

#4 Emily

Emily

    Scripter / Dev

  • ZC Developers

Posted 28 April 2020 - 07:34 AM

In 2.55, you actually CAN do this built-in. It'll require using Generic combos to create a combo that becomes triggered when the whistle plays.

'/Docs/combos.txt' included in 2.55 builds has information on how to use these.


  • Lightwulf likes this

#5 NerdHasGoneAWOL

NerdHasGoneAWOL

    Newbie

  • Members

Posted 28 April 2020 - 01:51 PM

Have you tried warping the player to a duplicate screen with the enemy on it? You can have a whistle trigger turn an FFC on the screen to an Auto Side Warp [A] combo and check the screen flag Auto-Warps Are Direct. This will warp Link to a screen indicated by a side warp at the same location he was at on the previous screen. The new screen would have the enemy and the Enemies->Item screen flag or First Enemy Carries Item.

Thank you, this worked well! 


  • Lightwulf likes this


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users