Jump to content


Multi Floor Dungeons


  • Please log in to reply
4 replies to this topic
krizmn krizmn

Citizen

  • Member
    • Member ID: 14,751
  • 28 posts

Posted 20 February 2015 - 10:17 PM #1 Multi Floor Dungeons

I am having a hard time trying to get this to work.  All I want to do is add stairs that go down deeper into a dungeon.  Do I need to do a floor script for this?  

Thanks

Lilith Lilith

in before the apocalypse

  • Global Moderator
    • Member ID: 669
  • 19,845 posts
  • LocationMelbourne, Australia

Posted 20 February 2015 - 10:28 PM #2 Multi Floor Dungeons

No, there shouldn't be a need for terrain scripting. Just make a new town for the second level of the dungeon, and then place a special rectangle around the stairs in the first town that calls a state with a move_to_new_town() call to move the party to the appropriate location in the second town. Of course, don't forget to create a similar rectangle in the second town that sends the party back to the first town, so that the party can go back upstairs.

krizmn krizmn

Citizen

  • Member
    • Member ID: 14,751
  • 28 posts

Posted 20 February 2015 - 11:53 PM #3 Multi Floor Dungeons

I cant seem to place  a special rectangle in town mode.  It keeps saying for outfdoors only.


beginterrainscript;

variables;

body;


beginstate 10;
  move_to_new_town (1,2,1);
break

I tried to do that for a terrain script......but it says the beginstate is invalid.  Do I put the 10 into the memory cell 0?
What would be a simple terrain script to move the party to a different location?

Dintiradan Dintiradan

Eye of Argon

  • Member
    • Member ID: 4,273
  • 3,697 posts

Posted 21 February 2015 - 12:38 AM #4 Multi Floor Dungeons

Entering a special rectangle calls the specified state in the town script, not a terrain script. Here's what you'll need to do, dunno how many of these steps you've already done:

- Open the town in the editor, place the special rectangle, and choose a special number. I'm going to pick 10, but it can be anything.
- Open the Town Details screen (Town > Town Details) and choose a script name to put in the 'Town script' field. I'm going to pick 't0blah', but it should be something that describes your town.
- In your scenario folder, create a new text file called 't0blah.txt'. Copy the following:

begintownscript;

body;

beginstate INIT_STATE;
break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
break;

beginstate 10;
  move_to_new_town (1,2,1);
break;

Lemme know if you need any more info.
^<@<: Pronounced exactly as it's spelt.
Design Tutorial (incomplete) | The Metagame | AIMhack Crack Pairings
Artemis (Planning Thread)
Last ten games. What have you been playing lately?

krizmn krizmn

Citizen

  • Member
    • Member ID: 14,751
  • 28 posts

Posted 21 February 2015 - 12:54 AM #5 Multi Floor Dungeons

Than you.  I thought the encounter rectangle was for monster fights only.  :/

Spent so many hours trying to master that stupid rectangle.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users