Aller au contenu

Photo

(RESOLVED)How to "turn off" new area transitions and display a dialogue giving a reason the PC can't use it currently


  • Veuillez vous connecter pour répondre
8 réponses à ce sujet

#1
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
The New Area Transition trigger does not appear to have any scripts attached to it, so I'm not really sure how to get at the insides and do what I want.  Basically I want to be able to turn off access to certain areas at certain times.  I also want to have a brief dialogue explaining to the PC why the area is unavailable at the time.

Modifié par M. Rieder, 14 juillet 2011 - 12:53 .


#2
c i p h e r

c i p h e r
  • Members
  • 261 messages
Just attach your own scripts to a custom trigger.

#3
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
Perhaps make the custom trigger bigger than the area transition, so the PC hits it first? Yeah, that sounds like it would work. Thanks.

#4
PJ156

PJ156
  • Members
  • 2 988 messages
There is a block trigger IIRC that jumps the PC back to a way point and fires a barkstring.

I use sign posts in town, from the convo that fires when you use the sign you can keep close control over where the PC can go at any given time.

PJ

#5
Guest_Chaos Wielder_*

Guest_Chaos Wielder_*
  • Guests
Cipher is right. You can attach your own scripts to the On Area Transition Click part of the trigger and roll from there.

#6
The Fred

The Fred
  • Members
  • 2 516 messages
I thought you couldn't, but you can do this with doors, too. The confusing thing is it's called the OnClicked event, which is a completely different thing for Placeables, but it's essentially the OnAreaTransitionClicked.

#7
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
Here's what I did:

I used the new area transition trigger, but selected no transition for the transition type.

In the OnClick event, I put a script to start a conversation. In that conversation, there are two nodes. One is a single blank NPC node that has the script ga_jump_party_in_formation and it jumps to the next area. The other has a conversation. I use gc_local_int to determine which node fires. Works a treat. Thanks for the help.

#8
Lugaid of the Red Stripes

Lugaid of the Red Stripes
  • Members
  • 955 messages
Don't forget the on-enter script! Some folks just like to walk into transitions.

You can also re-write the ga_jump_party script to work directly from the on-click or on-enter scripts, using a local string for the destination tag. A custom script like that can do things like enabling mapnotes, advancing time, or check for nearby hostiles.

#9
M. Rieder

M. Rieder
  • Members
  • 2 530 messages

Lugaid of the Red Stripes wrote...

Don't forget the on-enter script! Some folks just like to walk into transitions.

You can also re-write the ga_jump_party script to work directly from the on-click or on-enter scripts, using a local string for the destination tag. A custom script like that can do things like enabling mapnotes, advancing time, or check for nearby hostiles.



Ooooh  thanks, Lugaid.  Hadn't thought of that.  Changing it now.