Salk Posted June 22, 2015 Share Posted June 22, 2015 Hello! In the mod I am working on the original author coded this to make the creature refresh its spells and be cured completely: ////////////////////////////////////////////////////// ///Rest if 8hrs since last Rest and not in backpack/// ////////////////////////////////////////////////////// IF HaveAnySpells() Global("WTPFAMTimer","LOCALS",0) THEN RESPONSE #100 SetGlobalTimer("WTPFAMINGAME","GLOBAL",2400) SetGlobal("WTPFAMTimer","LOCALS",1) END IF Exists(Myself) GlobalTimerExpired("WTPFAMINGAME","GLOBAL") THEN RESPONSE #100 Rest() ReallyForceSpellRES("WTPFCon4",Myself) SetGlobalTimer("WTPFAMINGAME","GLOBAL",2400) END The problem with this is that it happens every 8 hours no matter whether or not the party has been resting. When I checked IESDP, I found the PartyRested() trigger so I thought it was just possible to swap all the above and use this instead: IF Exists(Myself) PartyRested() THEN RESPONSE #100 Rest() ReallyForceSpellRES("WTPFCon4",Myself) END but it doesn't work. The PartyRested() condition does not return true somehow. Can anyone help me understand why? Thanks a lot! Link to comment
Magus Posted June 22, 2015 Share Posted June 22, 2015 http://gibberlings3.net/forums/index.php?showtopic=25001 Link to comment
Salk Posted June 22, 2015 Author Share Posted June 22, 2015 Thanks for the link, qwerty1234567. I searched but not well enough, obviously. I guess the only solution is to add the script block on top of baldur.bcs and then hope that no other script will interfere... Doesn't seem so good... Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.