Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Apr 2015
C
stranger
OP Offline
stranger
C
Joined: Apr 2015
Hello.
Could someone make a tutorial how to bring waypointshrines to work?

Iエve already tried it but when I click on it nothing happens. :/
I know the basics about scripting so you dont need to tell me to set it global ;)

Greets

Joined: Jun 2013
old hand
Offline
old hand
Joined: Jun 2013
Been kinda busy lately so a full blown tutorial I can't do.

But here's a basic setup:
Code
INIT:
DB_WaypointInfo(ITEM_Hum_Waypointshrine_A_001,TRIGGER_BoxTrigger_001,"NAME YOUR WAYPOINT1");
DB_WaypointInfo(ITEM_Hum_Waypointshrine_A_000,TRIGGER_BoxTrigger_000,"NAME YOUR WAYPOINT2");

KB:
IF
CharacterRequestsHomestead(_Player)
AND
NOT TeleportingRegionBlock(1)
THEN
//PROC_CheckPlayTut(_Player,"TUT_HomesteadWaypointMenu");
OpenWaypointUI(_Player,"",ITEM_NULL);


IF
ItemEvent(_Item,"WaypointDiscovered")
AND
DB_WaypointInfo(_Item,_,_)
THEN
ProcDoWaypointUnlock(_Item);

IF
CharacterUsedItem(_Player,_Item)
AND
DB_WaypointInfo(_Item,_Trigger,_CurrentWP)
THEN
ProcDoWaypointUnlock(_Item);
OpenWaypointUI(_Player,_CurrentWP,_Item);

PROC
ProcDoWaypointUnlock((ITEM)_Item)
AND
DB_WaypointInfo(_Item,_Trigger,_CurrentWP)
AND
NOT _Item.isunlocked()
THEN
_Item.isunlocked();
Proc_AddExplorationEvent("GLO_Waypoint");
ShowNotification("GLO_WaypointDiscovered");
UnlockWaypoint(_CurrentWP,_Trigger);


This is all pulled from the files HOM_key, HOM_Waypoints.

Also a critical point, you need to add SEND USE EVENT TO OSIRIS to each of your waypoints or they won't do anything.


For rift travel (using the UI button) you need to add SetHomesteadKeyState(1); somewhere. The lazy way would be to add it to INIT. If you want to "discover" rift travel liek when ZixZax talks to you you can have it trigger from a conditional statement somewhere.

Last edited by SniperHF; 18/04/15 10:40 PM.
Joined: Jun 2013
old hand
Offline
old hand
Joined: Jun 2013
One other note I forgot before. You need to create a translated string key called Waypoints.

That is what will generate the menu for the list. It corresponds to what you place in DB_WaypointInfo


Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5