Troll Posted March 17, 2006 Author Share Posted March 17, 2006 In his SCRIPT!? I have to make a script for him. *Faints* Is there a tutorial on that!? Link to comment
Troll Posted March 17, 2006 Author Share Posted March 17, 2006 IF ~AreaCheck("AR0300") Global("LarokCrom","GLOBAL",1)~ THEN Blarok LarokTell ~Ah, Athkatla docks! I have a client here by the name of Cromwell. He is craft-cunning and hammer-handy when dealing with exotic pelts and hides. He can make the most wondrous items from the strangest of things. I would suggest paying him a visit.~ IF ~~ THEN DO ~SetGlobal("LarokCrom","GLOBAL",2)~ EXIT AHHHHHHHHHHHHHHHHHHHHH! Wiedu is saying this is wrong!!!!! Link to comment
Grim Squeaker Posted March 17, 2006 Share Posted March 17, 2006 In his SCRIPT!? I have to make a script for him. *Faints* Is there a tutorial on that!? <{POST_SNAPBACK}> It's piss easy. Just create a new text file called 'LAROK.baf' (assuming thats what you want to call it), paste the code I gave into it and save. Then in your tp2 you'll want a line that compiles it: COMPILE ~foldername/larok.baf~ You'll also need to assign the script to the CRE. This works exactly how you assigned his diialogue file except you put this in the field called 'Override script' rahter than 'Dialogue file'. Link to comment
Grim Squeaker Posted March 17, 2006 Share Posted March 17, 2006 IF ~AreaCheck("AR0300")Global("LarokCrom","GLOBAL",1)~ THEN Blarok LarokTell ~Ah, Athkatla docks! I have a client here by the name of Cromwell. He is craft-cunning and hammer-handy when dealing with exotic pelts and hides. He can make the most wondrous items from the strangest of things. I would suggest paying him a visit.~ IF ~~ THEN DO ~SetGlobal("LarokCrom","GLOBAL",2)~ EXIT AHHHHHHHHHHHHHHHHHHHHH! Wiedu is saying this is wrong!!!!! <{POST_SNAPBACK}> Did you put the END in that I suggested in my edit to my previous post? Also, in future please don't just say 'WeiDU is saying this is wrong'. WeiDU is a decent compiler than will tell you exactly what line is causing the error and to a degree where it is going wrong on that line. That kind of information is extremely useful in debugging code. Link to comment
Troll Posted March 17, 2006 Author Share Posted March 17, 2006 Oh. Well. There you are. Thank you again, Squeaker. Are you a Pratchett fan, by chance? Is your name a reference to "Death of Rats"? Link to comment
Grim Squeaker Posted March 17, 2006 Share Posted March 17, 2006 Are you a Pratchett fan, by chance? Is your name a reference to "Death of Rats"? <{POST_SNAPBACK}> Aye. Link to comment
Troll Posted March 17, 2006 Author Share Posted March 17, 2006 This is getting ridiculous. Weidu is rejecting 'IF'. THis is the problem I had with the append. It was rejecting END. What on earth could be wrong? Link to comment
Grim Squeaker Posted March 17, 2006 Share Posted March 17, 2006 This is getting ridiculous. Weidu is rejecting 'IF'. THis is the problem I had with the append. It was rejecting END. What on earth could be wrong? <{POST_SNAPBACK}> You've missed out the SAY before ~Ah, Athkatla docks!...~. Link to comment
Troll Posted March 17, 2006 Author Share Posted March 17, 2006 No dice. It keeps rejecting IF. Link to comment
Grim Squeaker Posted March 17, 2006 Share Posted March 17, 2006 No dice. It keeps rejecting IF. <{POST_SNAPBACK}> Hang on. I've just reread what you've got there: IF ~AreaCheck("AR0300") Global("LarokCrom","GLOBAL",1)~ THEN Blarok LarokTell ~Ah, Athkatla docks! I have a client here by the name of Cromwell. He is craft-cunning and hammer-handy when dealing with exotic pelts and hides. He can make the most wondrous items from the strangest of things. I would suggest paying him a visit.~ IF ~~ THEN DO ~SetGlobal("LarokCrom","GLOBAL",2)~ EXIT Is this meant to be a CHAIN or an APPEND? If its a CHAIN: CHAIN IF ~AreaCheck("AR0300") Global("LarokCrom","GLOBAL",1)~ THEN Blarok LarokTell ~Ah, Athkatla docks! I have a client here by the name of Cromwell. He is craft-cunning and hammer-handy when dealing with exotic pelts and hides. He can make the most wondrous items from the strangest of things. I would suggest paying him a visit.~ DO ~SetGlobal("LarokCrom","GLOBAL",2)~ EXIT If its an APPEND: APPEND BLAROK IF ~AreaCheck("AR0300") Global("LarokCrom","GLOBAL",1)~ THEN BEGIN LarokTell SAY ~Ah, Athkatla docks! I have a client here by the name of Cromwell. He is craft-cunning and hammer-handy when dealing with exotic pelts and hides. He can make the most wondrous items from the strangest of things. I would suggest paying him a visit.~ IF ~~ THEN DO ~SetGlobal("LarokCrom","GLOBAL",2)~ EXIT END END or I suppose if its just in your BLAROK files after a BEGIN BLAROK: IF ~AreaCheck("AR0300") Global("LarokCrom","GLOBAL",1)~ THEN BEGIN LarokTell SAY ~Ah, Athkatla docks! I have a client here by the name of Cromwell. He is craft-cunning and hammer-handy when dealing with exotic pelts and hides. He can make the most wondrous items from the strangest of things. I would suggest paying him a visit.~ IF ~~ THEN DO ~SetGlobal("LarokCrom","GLOBAL",2)~ EXIT END Link to comment
Troll Posted March 17, 2006 Author Share Posted March 17, 2006 Ok, the CHAIN addition worked, it isn't being rejected, so thanks. BUT! When I test it in-game, nothing is happening. Link to comment
Grim Squeaker Posted March 17, 2006 Share Posted March 17, 2006 Ok, the CHAIN addition worked, it isn't being rejected, so thanks. BUT! When I test it in-game, nothing is happening. <{POST_SNAPBACK}> Did you create, compile and assign the script? If so, are you using a saved game when the CRE has already spawned, if so then your changes aren't going to affect that local copy and you need to start a new game (or at least load a safe before you spawned the CRE). Link to comment
Troll Posted March 17, 2006 Author Share Posted March 17, 2006 What do you mean by spawned? As in before you went to the area where he is? I've done all that but it won't work. Link to comment
Grim Squeaker Posted March 17, 2006 Share Posted March 17, 2006 What do you mean by spawned? As in before you went to the area where he is? <{POST_SNAPBACK}> As in before the creature appeared in game. That's probably when you entered his area, yes. Link to comment
Troll Posted March 17, 2006 Author Share Posted March 17, 2006 CHAIN IF ~AreaCheck("AR0300") Global("LarokCrom","GLOBAL",1)~ THEN Blarok LarokTell SAY ~Ah, Athkatla docks! I have a client here by the name of Cromwell. He is craft-cunning and hammer-handy when dealing with exotic pelts and hides. He can make the most wondrous items from the strangest of things. I would suggest paying him a visit.~ DO ~SetGlobal("LarokCrom","GLOBAL",2)~ EXIT END Now it's rejecting 'SAY' and 'END' again. WHY? Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.