Jump to content


Teleporting the Party with an Item


  • Please log in to reply
18 replies to this topic
Callie Callie

SuperCalliefragilisticexpialidocious

  • Member
    • Member ID: 4,904
  • 4,168 posts
  • LocationNevada, USA

Posted 25 January 2015 - 03:17 PM #1 Teleporting the Party with an Item

I have an item in my scenario that is supposed to teleport the party to a specific town.  I was using the move_to_new_town call, but then realized that it can't be used unless it's activated by a stepped on space.  Is there a conceivable way to have an item teleport the party to a town from either the indoors or outdoors?  Or should I scrap it?
"I'm so glad you mentioned [goat heads] were weeds. I had never heard of them before, and thought maybe Excalibur lived in an area strewn with the heads of slaughtered goats. : p " - Tyranicus
Restless Souls - My first BoA scenario

Callie Callie

SuperCalliefragilisticexpialidocious

  • Member
    • Member ID: 4,904
  • 4,168 posts
  • LocationNevada, USA

Posted 25 January 2015 - 07:09 PM #2 Teleporting the Party with an Item

On second thought, it really doesn't make sense to have such an item in a scenario with only three outdoor sections; however, I'm still curious to know if it's possible.
"I'm so glad you mentioned [goat heads] were weeds. I had never heard of them before, and thought maybe Excalibur lived in an area strewn with the heads of slaughtered goats. : p " - Tyranicus
Restless Souls - My first BoA scenario

BJearles BJearles

Shadowwalker

  • Member
    • Member ID: 7,126
  • 461 posts

Posted 25 January 2015 - 08:11 PM #3 Teleporting the Party with an Item

0.0
Don't want much, do you?

Well, since move_to_new_town doesn't work unless you move onto it and as far as I know there's no way to place special nodes or terrain scripts from within the game, you'd have to have a space set up where the party could step to activate the move_to_new_town function in advance.  You *could* set up a place in each town in the scenario where you can teleport the party upon using your special item, then have that place move them to the new town when they move.  It would probably work okay, but I don't think it would be easy to set up or very smooth looking.

As far as teleporting directly into a town from the outdoors, I don't believe it's possible.  You *could* do something like what I mentioned above using town entrances instead of the move_to_new_town function, but it still wouldn't look very good.

My advice: just scrap it.
-Benjamin

Callie Callie

SuperCalliefragilisticexpialidocious

  • Member
    • Member ID: 4,904
  • 4,168 posts
  • LocationNevada, USA

Posted 25 January 2015 - 08:15 PM #4 Teleporting the Party with an Item

Thanks, I see that my hypothetical item was just a pipe dream.  Oh well.
"I'm so glad you mentioned [goat heads] were weeds. I had never heard of them before, and thought maybe Excalibur lived in an area strewn with the heads of slaughtered goats. : p " - Tyranicus
Restless Souls - My first BoA scenario

Enraged Slith Enraged Slith

Revenge of the Slith

  • Member
    • Member ID: 27
  • 2,634 posts

Posted 25 January 2015 - 08:28 PM #5 Teleporting the Party with an Item

Probably one of the more frustrating limitations of the game.

Ishad Nha Ishad Nha

Hand of Avadon

  • Member
    • Member ID: 4,773
  • 2,366 posts

Posted 26 January 2015 - 11:22 PM #6 Teleporting the Party with an Item

You could have them use the item and then walk onto a placed special. Have the item set a sdf by calling a state in the scenario script.
If the flag is not set the special ends immediately, otherwise the move to new town happens. I don't know if this works in practice or not.

BJearles BJearles

Shadowwalker

  • Member
    • Member ID: 7,126
  • 461 posts

Posted 27 January 2015 - 03:00 AM #7 Teleporting the Party with an Item

View PostIshad Nha, on 26 January 2015 - 11:22 PM, said:

You could have them use the item and then walk onto a placed special. Have the item set a sdf by calling a state in the scenario script.
If the flag is not set the special ends immediately, otherwise the move to new town happens. I don't know if this works in practice or not.
If you wanted to make it so the item worked everywhere in the scenario, doing it this way would require filling nearly every space in the scenario with such specials.  I'm not even sure if BoA will let you place that many.
-Benjamin

Ishad Nha Ishad Nha

Hand of Avadon

  • Member
    • Member ID: 4,773
  • 2,366 posts

Posted 27 January 2015 - 03:43 AM #8 Teleporting the Party with an Item

It does work in practice.
Placed special for enacting this move to new town must be marked by a unique floor or terrain type. In the town concerned the floor/terrain must only occur where the given placed special occurs. (Or you could use a unique location that is easy to describe.)

Here is a specimen item:
begindefineitem 471;
clear;
it_name = "Crystal";
it_full_name = "Teleport Crystal";
it_variety = 21;
it_floor_which_sheet = 1017;
it_floor_which_icon = 9;
it_inventory_icon = 8;
it_ability_1 = 207;
it_ability_str_1 = 30;
it_value = 50;
it_weight = 5;
it_magic = 1;

A specimen scenario state:
beginstate 30;
set_flag(200,0,50);
print_str_color("Now go walk onto the purple carpet.",2);
break;
(The purple carpet covers the area of the placed special.)

The placed special from the town script:
beginstate 16;
if (get_flag(200,0) == 0) {
block_entry(1);
end();
}
move_to_new_town (13,17,17);
break;

BJearles BJearles

Shadowwalker

  • Member
    • Member ID: 7,126
  • 461 posts

Posted 27 January 2015 - 04:01 AM #9 Teleporting the Party with an Item

That still requires the party to travel to a set location to activate the move_to_new_town special.  I can't be sure exactly what Excalibur wanted, but I don't think that was it.  Yes, you could do things that way.  It's still not something I would recommend.
-Benjamin

Ishad Nha Ishad Nha

Hand of Avadon

  • Member
    • Member ID: 4,773
  • 2,366 posts

Posted 27 January 2015 - 04:39 AM #10 Teleporting the Party with an Item

BoA is very limited in some areas, this is a shining example. I can't get any closer than that, he will have to settle for that or drop the whole idea.

Lilith Lilith

in before the apocalypse

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

Posted 27 January 2015 - 04:44 AM #11 Teleporting the Party with an Item

View PostBJearles, on 27 January 2015 - 04:01 AM, said:

That still requires the party to travel to a set location to activate the move_to_new_town special.  I can't be sure exactly what Excalibur wanted, but I don't think that was it.  Yes, you could do things that way.  It's still not something I would recommend.

Also, if you have to put in specific teleport spots anyway, at that point it's probably more user-friendly to just have the special rectangle check for the item and ask if the player wants to teleport rather than make the player use the item.

Callie Callie

SuperCalliefragilisticexpialidocious

  • Member
    • Member ID: 4,904
  • 4,168 posts
  • LocationNevada, USA

Posted 27 January 2015 - 09:16 AM #12 Teleporting the Party with an Item

Thanks for the input.  I've decided that going to such effort for the teleport isn't really necessary because there are only three outdoor sections in the scenario.  

Wasn't there an item in E3/A3 that teleported the party back to Fort Emergence?
"I'm so glad you mentioned [goat heads] were weeds. I had never heard of them before, and thought maybe Excalibur lived in an area strewn with the heads of slaughtered goats. : p " - Tyranicus
Restless Souls - My first BoA scenario

Celtic Minstrel Celtic Minstrel

Eye of Avadon

  • Global Moderator
    • Member ID: 5,296
  • 3,891 posts

Posted 27 January 2015 - 10:54 AM #13 Teleporting the Party with an Item

I know there was such an item in E3 (and I think E2 as well). Not sure about A3 though. Maybe?
Exile 2 Book of Items (I didn't create it, I just converted it to HTML.)

"Man, I know how you feel. I once spent an hour playing WordPad before realising that it was a text editor." – Thuryl

"Dikiyoba just hopes no one ever blows up Saturn. Getting those rings back into their proper position would take hours."

"—Alorael, who spells phoenetically. No matter how much his orthography is a wreck, intelligibility rises from the ashes."

"I've never played a Spiderweb game. I didn't even know SW made games until I saw this thread." —Nikki

Ishad Nha Ishad Nha

Hand of Avadon

  • Member
    • Member ID: 4,773
  • 2,366 posts

Posted 27 January 2015 - 08:51 PM #14 Teleporting the Party with an Item

In E2 and E3 you had a spell: Word of Recall.
In the first Avernum trilogy you had an expendable Recall Crystal.
In A3 you eventually get a permament item, the Jewel of Return, that returns you to the start, if you are not too far from the start.
I tried to replicate the Return to Start function in my Avernum Templates, see:
http://thelyceum.yuk...ecall-spell-v10

You could only recreate the Return to Start function if there was viable A3 legacy code found in the BoA engine. I don't know if there is.

Edited by Ishad Nha, 27 January 2015 - 10:28 PM.


Grail Shadowblade Grail Shadowblade

Mercenary

  • Member
    • Member ID: 4,668
  • 92 posts

Posted 08 June 2016 - 04:06 AM #15 Teleporting the Party with an Item

Bit of a necro but interesting concept so... Shouldn't it be possible to rig up a script that makes using the item place and activate a temporary special or activate via a dialogue window/cutscene?

Lilith Lilith

in before the apocalypse

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

Posted 08 June 2016 - 04:15 AM #16 Teleporting the Party with an Item

move_to_new_town only works if activated by stepping on a special encounter rectangle, not through dialogue, and you can't place special encounter rectangles through scripts.

Kelandon Kelandon

!!!

  • Global Moderator
    • Member ID: 2,682
  • 9,815 posts

Posted 08 June 2016 - 07:49 AM #17 Teleporting the Party with an Item

One of the original suggestions — have the item teleport the party to a specific part of town where the party can only step in one direction, and have the move_to_new_town() special there — would work. This is how I dealt with the move_to_new_town() limitation in Thanopolen Tower in Exodus, where a town change needed to be triggered by a combat death.
VCH: I believe we settled this way back when: Kelandon was the most attractive.
SoT: You'd be happy, too, if you were such a clever spider.
Ephesos: In conclusion, yarr.

Kelandon's Pink and Pretty Page!!

Grail Shadowblade Grail Shadowblade

Mercenary

  • Member
    • Member ID: 4,668
  • 92 posts

Posted 08 June 2016 - 04:27 PM #18 Teleporting the Party with an Item

Wouldn't that mean basically hiding a tile somewhere inaccessible in every town and having the item script call it depending on the town? Probably via SDF setting upon town entry.

Kelandon Kelandon

!!!

  • Global Moderator
    • Member ID: 2,682
  • 9,815 posts

Posted 09 June 2016 - 04:32 AM #19 Teleporting the Party with an Item

View PostGrail Shadowblade, on 08 June 2016 - 04:27 PM, said:

Wouldn't that mean basically hiding a tile somewhere inaccessible in every town and having the item script call it depending on the town? Probably via SDF setting upon town entry.
I did hide a portion of the town, yes. You move the party there via march_party() or the like, and then let the party take a step. Once the party steps on the special rectangle, move_to_new_town() can be activated.

Because you can read the town number using current_town(), you can send the party to wherever you want in that town; it doesn't have to be the same coordinates in each town.
VCH: I believe we settled this way back when: Kelandon was the most attractive.
SoT: You'd be happy, too, if you were such a clever spider.
Ephesos: In conclusion, yarr.

Kelandon's Pink and Pretty Page!!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users