thebigba Posted December 31, 2008 Share Posted December 31, 2008 I summon my companion from the underworld and she follows me everywhere I go , she has no dialog yet :-) I'll work on that its her quiet time right now though. problem is she is too quiet , I don't have the foggiest idea why the script isnt working, But I cannot activate her to bring up the messagebox with her commands here is the script scn baRaewynFriendScript ref meshort followshort findshort sneakshort fightersshort magesshort DBshort joinshort Commandshort bladesshort button Begin OnLoad me.setignorefriendlyhits 1me.setav speed 100if me.getdisposition player < 100me.moddisposition player 100endif if getincellparam AnvilFightersGuild me == 1 || getincellparam ChorrolFightersGuild me == 1 || getincellparam BrumaFightersGuild me == 1if me.getinfaction fightersguild == 0 && player.getinfaction fightersguild == 1MessageBox "Raewyn is not a member of the Fighters Guild. Would you like to admit her for 50 gold?" "Yes" "No"set fighters to 1set join to 1endifendif if getincellparam CheydinhalFightersGuild me == 1 || getincellparam BravilFightersGuild me == 1 || getincellparam LeyawiinFightersGuild me == 1if me.getinfaction fightersguild == 0 && player.getinfaction fightersguild == 1MessageBox "Raewyn is not a member of the Fighters Guild. Would you like to admit her for 50 gold?" "Yes" "No"set FIGHTERS to 1set join to 1endifendif if getincellparam AnvilMagesGuild me == 1 || getincellparam ChorrolMagesGuild me == 1 || getincellparam BrumaMagesGuild me == 1if me.getinfaction magesguild == 0 && player.getinfaction magesguild == 1MessageBox "Raewyn is not a member of the Mages Guild. Would you like to admit her for 50 gold?" "Yes" "No"set mages to 1set join to 1endifendif if getincellparam CheydinhalMagesGuild me == 1 || getincellparam BravilMagesGuild me == 1 || getincellparam LeyawiinMagesGuild me == 1if me.getinfaction magesguild == 0 && player.getinfaction magesguild == 1MessageBox "Raewyn is not a member of the Mages Guild. Would you like to admit her for 50 gold?" "Yes" "No"set mages to 1set join to 1endifendif if getincellparam CloudRulerTemple me == 1if me.getinfaction Blades == 0 && player.getinfaction Blades == 1MessageBox "Raewyn is not a member of the Blades Faction. Would you like to admit her for 50 gold?" "Yes" "No"set blades to 1set join to 1endifendif if getincellparam CheydinhalSanctuary me == 1if me.getinfaction DarkBrotherhood == 0 && player.getinfaction DarkBrotherhood == 1MessageBox "Raewyn is not a member of the Dark Brotherhood. Would you like to admit her for 50 gold?" "Yes" "No"set DB to 1set join to 1endifendif End Begin OnActivate If isactionref player == 1 && Player.issneaking == 0MessageBox " What is your command? " "Follow" "Wait" "Unequip Items" "Pickup Armor and Weapons" "Equip Items" "Mount Horse" "Dismount Horse" "Summon/Dismiss Chest" "Summon/Dismiss Horse" "Access Inventory" Elseif isactionref player == 1 && Player.issneaking == 1activateendifEnd Begin GameMode set me to getself sms effectSummonMythicDawn if join == 1 set button to getbuttonpressedendif if join == 1if fighters == 1if button == 0If player.getitemcount gold001 >= 50me.setfactionrank fightersguild 0set fighters to 0player.removeitem gold001 50set join to 0elseif Player.getitemcount gold001 < 50Messagebox "You can't afford to add Raewyn at this time."endif endifendifendif if join == 1if mages == 1if button == 0If player.getitemcount gold001 >= 50me.setfactionrank magesguild 0set mages to 0player.removeitem gold001 50set join to 0elseif Player.getitemcount gold001 < 50Messagebox "You can't afford to add Raewyn at this time."endif endifendifendif if join == 1if DB == 1if button == 0If player.getitemcount gold001 >= 50me.setfactionrank darkbrotherhood 0set DB to 0player.removeitem gold001 50set join to 0elseif Player.getitemcount gold001 < 50Messagebox "You can't afford to add Raewyn at this time."endif endifendifendif if join == 1if blades == 1if button == 0If player.getitemcount gold001 >= 50me.setfactionrank blades 0set blades to 0player.removeitem gold001 50set join to 0elseif Player.getitemcount gold001 < 50Messagebox "You can't afford to add Raewyn at this time."endif endifendifendif if join == 1if button== 1set join to 0set DB to 0set fighters to 0set mages to 0set blades to 0endifendif if sneak == 0if player.issneaking == 1me.setforcesneak 1set sneak to 1endifendif if sneak == 1if player.issneaking == 0me.setforcesneak 0set sneak to 0endifendif if me.getcrimegold > 0me.setcrimegold 0endif Set Command to GetButtonPressed if follow == 1if me.isridinghorse == 1me.addscriptpackage aaaaFollowMeset follow to 0endifendif if join == 0If command == 0me.addscriptpackage aaaaFollowMe elseIf command == 1me.addscriptpackage aaaDefaultStayAtCurrentLocation elseIf command == 2 && me.isridinghorse == 0me.removeallitems RaeChestRef elseIf command == 3 && me.isridinghorse == 0me.addscriptpackage aaaaAddItemsme.evp elseIf command == 4 && me.isridinghorse == 0me.MoveTo RaeMoveToRefme.MoveTo Player elseIf command == 5me.addscriptpackage aaaaRideHorseset follow to 1me.evp elseIf command == 6me.evp elseIf command == 7me.cast baSummonRaeChest me elseIf command == 8 && me.isridinghorse == 0me.cast badrakerefsummon me elseIf command == 9 && me.isridinghorse == 0RaeInventoryRef.Activate Playerendifendif if find == 0if getstage aaDremComp == 80 && me.getincell BARaewynDummyCell == 0me.evpset find to 1endifendif End Begin MenuMode 1008 InventoryRef.RemoveAllItems RaeRef 1 End Can someone look through and give me an possible reason why my message box isn't coming up when i click my companion? I have tried everything I can think of to get it to work, but im just a noob. In the meantime I do have an equippable ring that works really well in commanding her so I can still make her do everything i need her to do . only its aggravating me as to why this script isnt working. Help please :-) Link to comment Share on other sites More sharing options...
LoginToDownload Posted January 1, 2009 Share Posted January 1, 2009 I can't really think why activating it wouldn't work... Have you done any bugtesting? If you put a message at the beginning of the OnActivate block, does it play? If you put it right before the messagebox, does it play? Link to comment Share on other sites More sharing options...
thebigba Posted January 1, 2009 Author Share Posted January 1, 2009 I can't really think why activating it wouldn't work... Have you done any bugtesting? If you put a message at the beginning of the OnActivate block, does it play? If you put it right before the messagebox, does it play? I have not tried that yet, been preoccupied. I wonder though if maybe wll the faction stuff set before the message box command has anything to do with it. While I am thinking about it I think maybe the isactionref player == 1 might have a role to play in it.... just tried it with this script here... scn testdummy short button Begin Onactivate Messagebox " Can you activate me?" "yes" "no" end begin gamemodeset button to get button pressed if button == 0Raeinventoryref.activate playerelseif button == 1Message" goodbye"endifend worked fine ....I think its the isactionref function will test more into that. Edit:I am stumped then, I just tried it again with changing the script to "if isactionref player == 1MessageBox "samething as above example"elseif isactionref player == 0" and it worked fine I then changed it to " if is actionref player == 1messagebox "mymessage"elseif isactionref player == 1" and it still worked fine... I will try to rewrite the original and sort of rearrange it and see if It plays fine after. Link to comment Share on other sites More sharing options...
thebigba Posted January 1, 2009 Author Share Posted January 1, 2009 well, I am done with this one I am canning it, going to uninstall alot of mods and start from scratch. Create my own companion using my own scripts and my own ai packages and what not... This script here is so screwy I have no idea whats going on with it. I got the script to work except for the spells part / On button 7 and 8 its supposed to cast the spell to retrieve its chest or its horse but it doesnt do anything. although on the ring it does. I'll take what I learned from it and build my own. Link to comment Share on other sites More sharing options...
LoginToDownload Posted January 1, 2009 Share Posted January 1, 2009 You usually want to bugtest with the rest of your old script intact. Sometimes the script will be getting stalled if you have a syntax error instead of giving it a CS error. Best of luck with your new project. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.