Saxxon91 Posted January 24, 2016 Share Posted January 24, 2016 So basically the story is I have a quest where the player must examine an npc who's in a coma and use their medical knowledge (If they have any) to help them, the problem is, no matter what I do it doesn't seem to work. I've attached an object script to the npc so instead of talking to him a message pops up saying he's in a coma (except sometimes it doesn't) On one quest stage there's a different message that gives three options but only some of them seem to work, and only some of the time, so I really don't know what's going on. Here's the script attached to the guy at the moment, I've tried a bunch of other ones too though and none have worked. scn aaaWHSQSickMinerScript Short Button Begin OnActivate If Getstage aaaWHSQ02 != 10 Showmessage aaaWHSQ02MinerMessage0 ElseIf Getstage aaaWHSQ02 == 10 Showmessage aaaWHSQ02MinerMessage1 Endif End Begin Gamemode If Getstage aaaWHSQ02 == 10 set Button to GetButtonPressed if Button == -1 Return elseif Button == 0 Setstage aaaWHSQ02 20 Return elseif Button == 1 If player.GetActorValue Medicine >= 80 showmessage aaaWHSQ02MinerMessage2 set aaaWHSQ02.bAlanLives to 1 Setstage aaaWHSQ02 15 ElseIf player.GetActorValue Medicine >= 60 && player.GetActorValue Medicine << 80 showmessage aaaWHSQ02MinerMessage3 set aaaWHSQ02.bAlanDies to 1 Setstage aaaWHSQ02 15 ElseIf player.GetActorValue Medicine << 60 showmessage aaaWHSQ02MinerMessage4 WHSQSickMinerREF.Kill Setstage aaaWHSQ02 90 elseif Button == 2 showmessage aaaWHSQ02MinerMessage5 WHSQSickMinerREF.Kill DismemberLimb.4 Setstage aaaWHSQ02 90 EndIf endif end What I want is for the normal message; when not on stage 10 of the quest, to not have any options and prevent the player from speaking to him. On stage 10 of the quest the message gives the three options:1. Do nothing to the NPC, quest stage advances to 202. Operate on the NPC, if the players medicine skill is over 80 they survive and make a full recovery. If the players medicine skill is between 60 and 80 they survive but will die later on and if the players skill is lower than 60 they will die during the operation and the quest fails.3. Cut off the patient's arm and kill him. (then fail the quest) I really can't figure out where I'm going wrong with this, I've done something pretty similar in a quest before and I never had any trouble with that so if anyone can help figure this out I would really appreciate this. Link to comment Share on other sites More sharing options...
DoctaSax Posted January 27, 2016 Share Posted January 27, 2016 You're missing an endif between SetStage aaaWHSQ02 90 and elseif Button == 2 Link to comment Share on other sites More sharing options...
Saxxon91 Posted January 27, 2016 Author Share Posted January 27, 2016 Okay so I've changed that and now some of it works. Do nothing works, having 80+ medicine works and cutting off the arm kills the patient but doesn't remove his arm.Having between 80 and 60 medicine, and having less than 60 medicine still don't work at all. Link to comment Share on other sites More sharing options...
DoctaSax Posted January 28, 2016 Share Posted January 28, 2016 You should have a < instead of << in both lines you use them Link to comment Share on other sites More sharing options...
Recommended Posts