StrongArmand Posted April 4, 2012 Share Posted April 4, 2012 I'm trying to remodel irenicus dungeon and I've edit rielev dlg file and I've confronted to one problem with DO command. Here my code : EXTEND_BOTTOM RIELEV 13 IF ~~ THEN EXTERN RIELEV allusion END EXTEND_BOTTOM RIELEV 14 IF ~~ THEN EXTERN RIELEV allusion01 END APPEND RIELEV IF ~Global("#VRielevSaySomeThings","GLOBAL",0)~ THEN BEGIN allusion SAY @22001 COPY_TRANS RIELEV 13 IF ~~ THEN DO ~SetGlobal("#VRielevSaySomeThings","GLOBAL",1)~ GOTO 14 END IF ~Global("#VRielevSaySomeThings","GLOBAL",1)~ THEN BEGIN allusion01 SAY @22002 COPY_TRANS RIELEV 14 IF ~!IsValidForPartyDialog("Jaheira")~ THEN DO ~SetGlobal("#VRielevSaySomeThings","GLOBAL",2)AddJournalEntry(@455,QUEST) GiveItemCreate("Misc4e",LastTalkedToBy,1,0,0)AddexperienceParty(4000)TriggerActivation("Rielevdeadtrigger",TRUE)DestroySelf()~ SOLVED_JOURNAL #47517 EXIT IF ~IsValidForPartyDialog("Jaheira")~ THEN DO ~SetGlobal("#VRielevSaySomeThings","GLOBAL",2)AddJournalEntry(@455,QUEST) GiveItemCreate("Misc4e",LastTalkedToBy,1,0,0)AddexperienceParty(1000)TriggerActivation("Rielevdeadtrigger",TRUE)DestroySelf()~ SOLVED_JOURNAL #47517 EXTERN ~JAHEIRAJ~ 308 END END All it workable but I must add these action at the end of my EXTEND (as above) : GiveItemCreate("Misc4e",LastTalkedToBy,1,0,0)AddexperienceParty(1000)TriggerActivation("Rielevdeadtrigger",TRUE)DestroySelf()~ SOLVED_JOURNAL #47517 Because with my EXTEND BOTOM, I've erased them. Are there any way for write a simpler code according to you ? Link to comment
Miloch Posted April 4, 2012 Share Posted April 4, 2012 I'm not sure what you're trying to do or why you'd do both an EXTEND_BOTTOM and APPEND. Did you check into ALTER_TRANS, REPLACE_ACTION_TEXT, REPLACE_SAY etc.? Link to comment
Kaeloree Posted April 4, 2012 Share Posted April 4, 2012 The APPEND is just to append the dialogue to Rielev's dialogue file, otherwise you'd need to use CHAIN. Because you're adding an entirely new transition, you have to add those actions, yes. Link to comment
StrongArmand Posted April 17, 2012 Author Share Posted April 17, 2012 Ok thanks for your advice. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.