[SoU] Trigger Saferest!

Répondre
Partager Rechercher
Pas besoin de la 1.30, un petit trigger
OnEnter :
SetLocalInt(oPC, "CanRest", TRUE);

OnExit:
DeleteLocalInt(oPC, "CanRest");

OnRest:
if(!GetLocalInt(oPC, "CanRest"))
{
AssignCommand(oPC, ClearAllActions();
}

et voila

Bon, cela dit j'admets que c'est plus pratique avec du official bioware que par la bidouille
Citation :
Provient du message de Le grognon
pas besoin de SoU...



la 1.30 suffit
on y accède comment alors dans ma 1.30 je le trouve pas...
haaaa ce elmo un extrait du lien que tu donnes

Citation :
Use the script below as your module's OnRest event.

For any area where you want resting to be restricted to certain rooms, make the area's tag (found on the Advanced tab in the area's properties) end in _SR. e.g. If you make an area called "Troll Cave", its tag by default will be set to "TrollCave", which you should change to "TrollCave_SR" to restrict resting.

Draw X0_SAFEREST triggers in all the rooms where you want it to be safe to rest. The idea is that the rooms should be able to be sealed off by closed doors--not out in the open. Make sure the room's doors are inside the trigger. If you don't have SoU, this should all still work fine, just make sure your trigger has X0_SAFEREST as its tag. If you do have SoU, you already have a trigger tagged X0_SAFEREST in your palette
Répondre

Connectés sur ce fil

 
1 connecté (0 membre et 1 invité) Afficher la liste détaillée des connectés