Jump to content

Photo

Getting a Key for a Different Level?


  • Please log in to reply
5 replies to this topic

#1 MarinaraSauce

MarinaraSauce

    Magus

  • Members
  • Real Name:Grant
  • Location:New York

Posted 11 February 2017 - 09:45 AM

In the quest I'm making, I want there to be a special key in each area's main dungeon that allows the player to open a specific door in the overworld. The only problem is if I make it a regular key, they might use it in the dungeon, and if I make it a big key, they might use it to get to the boss early (and the overworld is a different level). Is there a way to make it so that a key picked up in a dungeon only works on a door in the overworld?

 

Also I forgot to mention that the key needs to be one-use, since there will be multiple doors and multiple dungeons that have keys.


  • judasrising likes this

#2 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 11 February 2017 - 10:08 AM

You can do this in one of two ways:

 

1. You can make a screen on another DMap, and sidewarp the player to it. That DMap should be another Level ID where the Level matches the Dungeon level for which you wish the key to work. If this is inside of a dungeon, be aware that it would not properly appear on the minimap. You can fake it, by making another minimap for that one-room DMap with fake rooms marked, but visited rooms would not be displayed properly, and you would need to fake a map item for it somehow. (You can award the map by string, but if the player doesn't have the real dungeon map, it would be sort of glitch-y, as they would gain a map, then lose it.)

 

-- I do not prefer that.

 

2. The alternative, is a simple ffc script to award the key. This is cleaner overall, as you do not need extra DMaps, sidewarps, or any level shenanigans; but if you want to avoid scripts, your only option is what I outlined above.



#3 judasrising

judasrising

    I play guitar

  • Members
  • Location:Sweden but born in Finland

Posted 11 February 2017 - 10:34 AM

You could use this script for that 

http://www.purezc.ne...showtopic=38761

 

i use a little altered one but the same script.



#4 Avaro

Avaro

    o_o

  • Members
  • Real Name:Robin
  • Location:Germany

Posted 11 February 2017 - 11:05 AM

Good thing I made a getting a key for another level script. xD


  • Shane likes this

#5 MarinaraSauce

MarinaraSauce

    Magus

  • Members
  • Real Name:Grant
  • Location:New York

Posted 11 February 2017 - 11:05 AM

You could use this script for that 

http://www.purezc.ne...showtopic=38761

 

i use a little altered one but the same script.

Where in the script exactly do I set the message and combo variables and such?

 

EDIT: Ninja'd with easier script


Edited by GrantGreif, 11 February 2017 - 11:07 AM.


#6 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 12 February 2017 - 01:18 AM

Good thing I made a getting a key for another level script. xD

 

Pretty much. :)

 

This was in ZQuest help, so I sided with 'The user is not making a script request, and may not want to use scripts' logic, so, there you have it. :D

 

I could probably shove some method of placing a key for other levels into ZQuest itself in 2.55 or 2.6. The main issue of course, is that this would involve adding a screen variable for 'Alt Level' to ZQuest; and adding an item class for 'Level item, Alt Level' to the engine, for each: Dungeon Maps, LKeys, Boss Keys, the Compass, and the Triforce fragment. That seems like something that I could add, but I have not even pondered any potential difficulty involved. (It seems easy, but also, not high priority.)


Edited by ZoriaRPG, 12 February 2017 - 01:23 AM.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users