Construction Set Skriptthread zum Construction Set

Yuhu es hat geklappt.

Es lag an Disable und Enable. Man müsste die 2 vertauschen. Dank dir SirTroy, natürlich auch euch anderen, die versucht haben zu Helfen^^
SirTroy, komisch, dass du den Fehler nicht früher bemerkt hast. Schließlich hast du das Script für mein Anliegen so umgeändert=)
 
Zuletzt bearbeitet:
  • Like
Reaktionen: SirTroy
Ich habe ein ziemlich großes Problem. Ich habe für mein Modprojekt ein Script geschrieben, mit dem man Anvil einnehmen kann. Nach einem Dialog mit der Gräfin wird die Variable Anvil auf 1 gesetzt, aber die eigenen Wachen erscheinen nicht. Ich habe das Script mal hier reinkopiert, vielleicht findet ja einer einen Fehler. Habe es schon tausendmal kontrolliert und konnte keinen Fehler entdecken :(

Code:
scn bStaedteeroberungBesitz

short Anvil
short doOnce0
short doOnce1
short doOnce2

Begin GameMode
If doOnce0 <= 0
bAnvilGuard1.disable
bAnvilGuard2.disable
bAnvilGuard3.disable
bAnvilGuard4.disable
bAnvilGuard5.disable
bAnvilGuard6.disable
bAnvilGuard7.disable
bAnvilGuard8.disable
bAnvilGuard9.disable
bAnvilGuard10.disable
bAnvilGuard11.disable
bAnvilGuard12.disable
bAnvilGuard13.disable
bAnvilGuard14.disable
bAnvilGuard15.disable
bAnvilGuard16.disable
bAnvilGuard17.disable
bAnvilGuard18.disable
bAnvilGuard19.disable
bAnvilGuard20.disable
bAnvilGuard21.disable
bAnvilStadthalter.disable

addtopic bStaedteeroberungDieStadtistmein
addtopic bStaedteeroberungKriegerklren
set doOnce0 to 1


ElseIf Anvil == 1
If doOnce1 <= 0
bAnvilGuard1.enable
bAnvilGuard2.enable
bAnvilGuard3.enable
bAnvilGuard4.enable
bAnvilGuard5.enable
bAnvilGuard6.enable
bAnvilGuard7.enable
bAnvilGuard8.enable
bAnvilGuard9.enable
bAnvilGuard10.enable
bAnvilGuard11.enable
bAnvilGuard12.enable
bAnvilGuard13.enable
bAnvilGuard14.enable
bAnvilGuard15.enable
bAnvilGuard16.enable
bAnvilGuard17.enable
bAnvilGuard18.enable
bAnvilGuard19.enable
bAnvilGuard20.enable
bAnvilGuard21.enable
bAnvilStadthalter.enable

bAnvilNativeGuard1.removeitem ChainmailBoots 1
bAnvilNativeGuard1.removeitem ChainmailGauntlets 1
bAnvilNativeGuard1.removeitem ChainmailGreaves 1
bAnvilNativeGuard1.removeitem TownguardAnShield 1
bAnvilNativeGuard1.removeitem TownguardCuirassAn 1
bAnvilNativeGuard1.removeitem TownguardHelmet 1
bAnvilNativeGuard2.removeitem ChainmailBoots 1
bAnvilNativeGuard2.removeitem ChainmailGauntlets 1
bAnvilNativeGuard2.removeitem ChainmailGreaves 1
bAnvilNativeGuard2.removeitem TownguardAnShield 1
bAnvilNativeGuard2.removeitem TownguardCuirassAn 1
bAnvilNativeGuard2.removeitem TownguardHelmet 1
bAnvilNativeGuard3.removeitem ChainmailBoots 1
bAnvilNativeGuard3.removeitem ChainmailGauntlets 1
bAnvilNativeGuard3.removeitem ChainmailGreaves 1
bAnvilNativeGuard3.removeitem TownguardAnShield 1
bAnvilNativeGuard3.removeitem TownguardCuirassAn 1
bAnvilNativeGuard3.removeitem TownguardHelmet 1
AnvilGuardCastlePostDay02Ref.removeitem ChainmailBoots 1
AnvilGuardCastlePostDay02Ref.removeitem ChainmailGauntlets 1
AnvilGuardCastlePostDay02Ref.removeitem ChainmailGreaves 1
AnvilGuardCastlePostDay02Ref.removeitem TownguardAnShield 1
AnvilGuardCastlePostDay02Ref.removeitem TownguardCuirassAn 1
AnvilGuardCastlePostDay02Ref.removeitem TownguardHelmet 1
bAnvilNativeGuard4.removeitem ChainmailBoots 1
bAnvilNativeGuard4.removeitem ChainmailGauntlets 1
bAnvilNativeGuard4.removeitem ChainmailGreaves 1
bAnvilNativeGuard4.removeitem TownguardAnShield 1
bAnvilNativeGuard4.removeitem TownguardCuirassAn 1
bAnvilNativeGuard4.removeitem TownguardHelmet 1
AnvilGuardCastlePostNight01Ref.removeitem ChainmailBoots 1
AnvilGuardCastlePostNight01Ref.removeitem ChainmailGauntlets 1
AnvilGuardCastlePostNight01Ref.removeitem ChainmailGreaves 1
AnvilGuardCastlePostNight01Ref.removeitem TownguardAnShield 1
AnvilGuardCastlePostNight01Ref.removeitem TownguardCuirassAn 1
AnvilGuardCastlePostNight01Ref.removeitem TownguardHelmet 1
AnvilGuardCastlePostNight02Ref.removeitem ChainmailBoots 1
AnvilGuardCastlePostNight02Ref.removeitem ChainmailGauntlets 1
AnvilGuardCastlePostNight02Ref.removeitem ChainmailGreaves 1
AnvilGuardCastlePostNight02Ref.removeitem TownguardAnShield 1
AnvilGuardCastlePostNight02Ref.removeitem TownguardCuirassAn 1
AnvilGuardCastlePostNight02Ref.removeitem TownguardHelmet 1
bAnvilNativeGuard5.removeitem ChainmailBoots 1
bAnvilNativeGuard5.removeitem ChainmailGauntlets 1
bAnvilNativeGuard5.removeitem ChainmailGreaves 1
bAnvilNativeGuard5.removeitem TownguardAnShield 1
bAnvilNativeGuard5.removeitem TownguardCuirassAn 1
bAnvilNativeGuard5.removeitem TownguardHelmet 1
bAnvilNativeGuard6.removeitem ChainmailBoots 1
bAnvilNativeGuard6.removeitem ChainmailGauntlets 1
bAnvilNativeGuard6.removeitem ChainmailGreaves 1
bAnvilNativeGuard6.removeitem TownguardAnShield 1
bAnvilNativeGuard6.removeitem TownguardCuirassAn 1
bAnvilNativeGuard6.removeitem TownguardHelmet 1
AnvilGuardCityPatrolDay02Ref.removeitem ChainmailBoots 1
AnvilGuardCityPatrolDay02Ref.removeitem ChainmailGauntlets 1
AnvilGuardCityPatrolDay02Ref.removeitem ChainmailGreaves 1
AnvilGuardCityPatrolDay02Ref.removeitem TownguardAnShield 1
AnvilGuardCityPatrolDay02Ref.removeitem TownguardCuirassAn 1
AnvilGuardCityPatrolDay02Ref.removeitem TownguardHelmet 1
bAnvilNativeGuard7.removeitem ChainmailBoots 1
bAnvilNativeGuard7.removeitem ChainmailGauntlets 1
bAnvilNativeGuard7.removeitem ChainmailGreaves 1
bAnvilNativeGuard7.removeitem TownguardAnShield 1
bAnvilNativeGuard7.removeitem TownguardCuirassAn 1
bAnvilNativeGuard7.removeitem TownguardHelmet 1
AnvilGuardCityPatrolNight02Ref.removeitem ChainmailBoots 1
AnvilGuardCityPatrolNight02Ref.removeitem ChainmailGauntlets 1
AnvilGuardCityPatrolNight02Ref.removeitem ChainmailGreaves 1
AnvilGuardCityPatrolNight02Ref.removeitem TownguardAnShield 1
AnvilGuardCityPatrolNight02Ref.removeitem TownguardCuirassAn 1
AnvilGuardCityPatrolNight02Ref.removeitem TownguardHelmet 1
bAnvilNativeGuard8.removeitem ChainmailBoots 1
bAnvilNativeGuard8.removeitem ChainmailGauntlets 1
bAnvilNativeGuard8.removeitem ChainmailGreaves 1
bAnvilNativeGuard8.removeitem TownguardAnShield 1
bAnvilNativeGuard8.removeitem TownguardCuirassAn 1
bAnvilNativeGuard8.removeitem TownguardHelmet 1
bAnvilNativeGuard9.removeitem ChainmailBoots 1
bAnvilNativeGuard9.removeitem ChainmailGauntlets 1
bAnvilNativeGuard9.removeitem ChainmailGreaves 1
bAnvilNativeGuard9.removeitem TownguardAnShield 1
bAnvilNativeGuard9.removeitem TownguardCuirassAn 1
bAnvilNativeGuard9.removeitem TownguardHelmet 1
bAnvilNativeGuard10.removeitem ChainmailBoots 1
bAnvilNativeGuard10.removeitem ChainmailGauntlets 1
bAnvilNativeGuard10.removeitem ChainmailGreaves 1
bAnvilNativeGuard10.removeitem TownguardAnShield 1
bAnvilNativeGuard10.removeitem TownguardCuirassAn 1
bAnvilNativeGuard10.removeitem TownguardHelmet 1
bAnvilNativeGuard11.removeitem ChainmailBoots 1
bAnvilNativeGuard11.removeitem ChainmailGauntlets 1
bAnvilNativeGuard11.removeitem ChainmailGreaves 1
bAnvilNativeGuard11.removeitem TownguardAnShield 1
bAnvilNativeGuard11.removeitem TownguardCuirassAn 1
bAnvilNativeGuard11.removeitem TownguardHelmet 1
bAnvilNativeGuard12.removeitem ChainmailBoots 1
bAnvilNativeGuard12.removeitem ChainmailGauntlets 1
bAnvilNativeGuard12.removeitem ChainmailGreaves 1
bAnvilNativeGuard12.removeitem TownguardAnShield 1
bAnvilNativeGuard12.removeitem TownguardCuirassAn 1
bAnvilNativeGuard12.removeitem TownguardHelmet 1
bAnvilNativeGuard13.removeitem ChainmailBoots 1
bAnvilNativeGuard13.removeitem ChainmailGauntlets 1
bAnvilNativeGuard13.removeitem ChainmailGreaves 1
bAnvilNativeGuard13.removeitem TownguardAnShield 1
bAnvilNativeGuard13.removeitem TownguardCuirassAn 1
bAnvilNativeGuard13.removeitem TownguardHelmet 1
AnvilGuardEscortCountessRef.removeitem ChainmailBoots 1
AnvilGuardEscortCountessRef.removeitem ChainmailGauntlets 1
AnvilGuardEscortCountessRef.removeitem ChainmailGreaves 1
AnvilGuardEscortCountessRef.removeitem TownguardAnShield 1
AnvilGuardEscortCountessRef.removeitem TownguardCuirassAn 1
AnvilGuardEscortCountessRef.removeitem TownguardHelmet 1
AnvilGuardJailorDayRef.removeitem ChainmailBoots 1
AnvilGuardJailorDayRef.removeitem ChainmailGauntlets 1
AnvilGuardJailorDayRef.removeitem ChainmailGreaves 1
AnvilGuardJailorDayRef.removeitem TownguardAnShield 1
AnvilGuardJailorDayRef.removeitem TownguardCuirassAn 1
AnvilGuardJailorDayRef.removeitem TownguardHelmet 1
AnvilGuardJailorNightRef.removeitem ChainmailBoots 1
AnvilGuardJailorNightRef.removeitem ChainmailGauntlets 1
AnvilGuardJailorNightRef.removeitem ChainmailGreaves 1
AnvilGuardJailorNightRef.removeitem TownguardAnShield 1
AnvilGuardJailorNightRef.removeitem TownguardCuirassAn 1
AnvilGuardJailorNightRef.removeitem TownguardHelmet 1

bAnvilNativeGuard1.additem LegionBoots 1
bAnvilNativeGuard1.additem LegionCuirass 1
bAnvilNativeGuard1.additem LegionGauntlets 1
bAnvilNativeGuard1.additem LegionGreaves 1
bAnvilNativeGuard1.additem LegionHelmet 1
bAnvilNativeGuard1.additem LegionShield 1
bAnvilNativeGuard2.additem LegionBoots 1
bAnvilNativeGuard2.additem LegionCuirass 1
bAnvilNativeGuard2.additem LegionGauntlets 1
bAnvilNativeGuard2.additem LegionGreaves 1
bAnvilNativeGuard2.additem LegionHelmet 1
bAnvilNativeGuard2.additem LegionShield 1
bAnvilNativeGuard3.additem LegionBoots 1
bAnvilNativeGuard3.additem LegionCuirass 1
bAnvilNativeGuard3.additem LegionGauntlets 1
bAnvilNativeGuard3.additem LegionGreaves 1
bAnvilNativeGuard3.additem LegionHelmet 1
bAnvilNativeGuard3.additem LegionShield 1
AnvilGuardCastlePostDay02Ref.additem LegionBoots 1
AnvilGuardCastlePostDay02Ref.additem LegionCuirass 1
AnvilGuardCastlePostDay02Ref.additem LegionGauntlets 1
AnvilGuardCastlePostDay02Ref.additem LegionGreaves 1
AnvilGuardCastlePostDay02Ref.additem LegionHelmet 1
AnvilGuardCastlePostDay02Ref.additem LegionShield 1
bAnvilNativeGuard4.additem LegionBoots 1
bAnvilNativeGuard4.additem LegionCuirass 1
bAnvilNativeGuard4.additem LegionGauntlets 1
bAnvilNativeGuard4.additem LegionGreaves 1
bAnvilNativeGuard4.additem LegionHelmet 1
bAnvilNativeGuard4.additem LegionShield 1
AnvilGuardCastlePostNight01Ref.additem LegionBoots 1
AnvilGuardCastlePostNight01Ref.additem LegionCuirass 1
AnvilGuardCastlePostNight01Ref.additem LegionGauntlets 1
AnvilGuardCastlePostNight01Ref.additem LegionGreaves 1
AnvilGuardCastlePostNight01Ref.additem LegionHelmet 1
AnvilGuardCastlePostNight01Ref.additem LegionShield 1
AnvilGuardCastlePostNight02Ref.additem LegionBoots 1
AnvilGuardCastlePostNight02Ref.additem LegionCuirass 1
AnvilGuardCastlePostNight02Ref.additem LegionGauntlets 1
AnvilGuardCastlePostNight02Ref.additem LegionGreaves 1
AnvilGuardCastlePostNight02Ref.additem LegionHelmet 1
AnvilGuardCastlePostNight02Ref.additem LegionShield 1
bAnvilNativeGuard5.additem LegionBoots 1
bAnvilNativeGuard5.additem LegionCuirass 1
bAnvilNativeGuard5.additem LegionGauntlets 1
bAnvilNativeGuard5.additem LegionGreaves 1
bAnvilNativeGuard5.additem LegionHelmet 1
bAnvilNativeGuard5.additem LegionShield 1
bAnvilNativeGuard6.additem LegionBoots 1
bAnvilNativeGuard6.additem LegionCuirass 1
bAnvilNativeGuard6.additem LegionGauntlets 1
bAnvilNativeGuard6.additem LegionGreaves 1
bAnvilNativeGuard6.additem LegionHelmet 1
AnvilGuardCityPatrolDay02Ref.additem LegionBoots 1
AnvilGuardCityPatrolDay02Ref.additem LegionCuirass 1
AnvilGuardCityPatrolDay02Ref.additem LegionGauntlets 1
AnvilGuardCityPatrolDay02Ref.additem LegionGreaves 1
AnvilGuardCityPatrolDay02Ref.additem LegionHelmet 1
AnvilGuardCityPatrolDay02Ref.additem LegionShield 1
bAnvilNativeGuard7.additem LegionBoots 1
bAnvilNativeGuard7.additem LegionCuirass 1
bAnvilNativeGuard7.additem LegionGauntlets 1
bAnvilNativeGuard7.additem LegionGreaves 1
bAnvilNativeGuard7.additem LegionHelmet 1
bAnvilNativeGuard7.additem LegionShield 1
AnvilGuardCityPatrolNight02Ref.additem LegionBoots 1
AnvilGuardCityPatrolNight02Ref.additem LegionCuirass 1
AnvilGuardCityPatrolNight02Ref.additem LegionGauntlets 1
AnvilGuardCityPatrolNight02Ref.additem LegionGreaves 1
AnvilGuardCityPatrolNight02Ref.additem LegionHelmet 1
AnvilGuardCityPatrolNight02Ref.additem LegionShield 1
bAnvilNativeGuard8.additem LegionBoots 1
bAnvilNativeGuard8.additem LegionCuirass 1
bAnvilNativeGuard8.additem LegionGauntlets 1
bAnvilNativeGuard8.additem LegionGreaves 1
bAnvilNativeGuard8.additem LegionHelmet 1
bAnvilNativeGuard8.additem LegionShield 1
bAnvilNativeGuard9.additem LegionBoots 1
bAnvilNativeGuard9.additem LegionCuirass 1
bAnvilNativeGuard9.additem LegionGauntlets 1
bAnvilNativeGuard9.additem LegionGreaves 1
bAnvilNativeGuard9.additem LegionHelmet 1
bAnvilNativeGuard9.additem LegionShield 1
bAnvilNativeGuard10.additem LegionBoots 1
bAnvilNativeGuard10.additem LegionCuirass 1
bAnvilNativeGuard10.additem LegionGauntlets 1
bAnvilNativeGuard10.additem LegionGreaves 1
bAnvilNativeGuard10.additem LegionHelmet 1
bAnvilNativeGuard10.additem LegionShield 1
bAnvilNativeGuard11.additem LegionBoots 1
bAnvilNativeGuard11.additem LegionCuirass 1
bAnvilNativeGuard11.additem LegionGauntlets 1
bAnvilNativeGuard11.additem LegionGreaves 1
bAnvilNativeGuard11.additem LegionHelmet 1
bAnvilNativeGuard11.additem LegionShield 1
bAnvilNativeGuard12.additem LegionBoots 1
bAnvilNativeGuard12.additem LegionCuirass 1
bAnvilNativeGuard12.additem LegionGauntlets 1
bAnvilNativeGuard12.additem LegionGreaves 1
bAnvilNativeGuard12.additem LegionHelmet 1
bAnvilNativeGuard12.additem LegionShield 1
bAnvilNativeGuard13.additem LegionBoots 1
bAnvilNativeGuard13.additem LegionCuirass 1
bAnvilNativeGuard13.additem LegionGauntlets 1
bAnvilNativeGuard13.additem LegionGreaves 1
bAnvilNativeGuard13.additem LegionHelmet 1
bAnvilNativeGuard13.additem LegionShield 1
AnvilGuardEscortCountessRef.additem LegionBoots 1
AnvilGuardEscortCountessRef.additem LegionCuirass 1
AnvilGuardEscortCountessRef.additem LegionGauntlets 1
AnvilGuardEscortCountessRef.additem LegionGreaves 1
AnvilGuardEscortCountessRef.additem LegionHelmet 1
AnvilGuardEscortCountessRef.additem LegionShield 1
AnvilGuardJailorDayRef.additem LegionBoots 1
AnvilGuardJailorDayRef.additem LegionCuirass 1
AnvilGuardJailorDayRef.additem LegionGauntlets 1
AnvilGuardJailorDayRef.additem LegionGreaves 1
AnvilGuardJailorDayRef.additem LegionHelmet 1
AnvilGuardJailorDayRef.additem LegionShield 1
AnvilGuardJailorNightRef.additem LegionBoots 1
AnvilGuardJailorNightRef.additem LegionCuirass 1
AnvilGuardJailorNightRef.additem LegionGauntlets 1
AnvilGuardJailorNightRef.additem LegionGreaves 1
AnvilGuardJailorNightRef.additem LegionHelmet 1
AnvilGuardJailorNightRef.additem LegionShield 1

bAnvilNativeGuard1.setActorFullName "Legions-Soldat"
bAnvilNativeGuard2.setActorFullName "Legions-Soldat"
bAnvilNativeGuard3.setActorFullName "Legions-Soldat"
AnvilGuardCastlePostDay02Ref.setActorFullName "Legions-Soldat"
bAnvilNativeGuard4.setActorFullName "Legions-Soldat"
AnvilGuardCastlePostNight01Ref.setActorFullName "Legions-Soldat"
AnvilGuardCastlePostNight02Ref.setActorFullName "Legions-Soldat"
bAnvilNativeGuard5.setActorFullName "Legions-Soldat"
bAnvilNativeGuard6.setActorFullName "Legions-Soldat"
AnvilGuardCityPatrolDay02Ref.setActorFullName "Legions-Soldat"
bAnvilNativeGuard7.setActorFullName "Legions-Soldat"
AnvilGuardCityPatrolNight02Ref.setActorFullName "Legions-Soldat"
bAnvilNativeGuard8.setActorFullName "Legions-Soldat"
bAnvilNativeGuard9.setActorFullName "Legions-Soldat"
bAnvilNativeGuard10.setActorFullName "Legions-Soldat"
bAnvilNativeGuard11.setActorFullName "Legions-Soldat"
bAnvilNativeGuard12.setActorFullName "Legions-Soldat"
bAnvilNativeGuard13.setActorFullName "Legions-Soldat"
AnvilGuardEscortCountessRef.setActorFullName "Legions-Soldat"
AnvilGuardJailorDayRef.setActorFullName "Legions-Soldat"
AnvilGuardJailorNightRef.setActorFullName "Legions-Soldat"

set doOnce1 to 1
endif

ElseIf Anvil == 2
If doOnce2 <= 0
;disabeln der Eigenen Wachen
bAnvilGuard1.disable
bAnvilGuard2.disable
bAnvilGuard3.disable
bAnvilGuard4.disable
bAnvilGuard5.disable
bAnvilGuard6.disable
bAnvilGuard7.disable
bAnvilGuard8.disable
bAnvilGuard9.disable
bAnvilGuard10.disable
bAnvilGuard11.disable
bAnvilGuard12.disable
bAnvilGuard13.disable
bAnvilGuard14.disable
bAnvilGuard15.disable
bAnvilGuard16.disable
bAnvilGuard17.disable
bAnvilGuard18.disable
bAnvilGuard19.disable
bAnvilGuard20.disable
bAnvilGuard21.disable
bAnvilStadthalter.disable

bAnvilGuard1.setActorRespawns 0
bAnvilGuard2.setActorRespawns 0
bAnvilGuard3.setActorRespawns 0
bAnvilGuard4.setActorRespawns 0
bAnvilGuard5.setActorRespawns 0
bAnvilGuard6.setActorRespawns 0
bAnvilGuard7.setActorRespawns 0
bAnvilGuard8.setActorRespawns 0
bAnvilGuard9.setActorRespawns 0
bAnvilGuard10.setActorRespawns 0
bAnvilGuard11.setActorRespawns 0
bAnvilGuard12.setActorRespawns 0
bAnvilGuard13.setActorRespawns 0
bAnvilGuard14.setActorRespawns 0
bAnvilGuard15.setActorRespawns 0
bAnvilGuard16.setActorRespawns 0
bAnvilGuard17.setActorRespawns 0
bAnvilGuard18.setActorRespawns 0
bAnvilGuard19.setActorRespawns 0
bAnvilGuard20.setActorRespawns 0
bAnvilGuard21.setActorRespawns 0
bAnvilStadthalter.setActorRespawns 0

bAnvilNativeGuard1.removeitem LegionBoots 1
bAnvilNativeGuard1.removeitem LegionCuirass 1
bAnvilNativeGuard1.removeitem LegionGauntlets 1
bAnvilNativeGuard1.removeitem LegionGreaves 1
bAnvilNativeGuard1.removeitem LegionHelmet 1
bAnvilNativeGuard1.removeitem LegionShield 1
bAnvilNativeGuard2.removeitem LegionBoots 1
bAnvilNativeGuard2.removeitem LegionCuirass 1
bAnvilNativeGuard2.removeitem LegionGauntlets 1
bAnvilNativeGuard2.removeitem LegionGreaves 1
bAnvilNativeGuard2.removeitem LegionHelmet 1
bAnvilNativeGuard2.removeitem LegionShield 1
bAnvilNativeGuard3.removeitem LegionBoots 1
bAnvilNativeGuard3.removeitem LegionCuirass 1
bAnvilNativeGuard3.removeitem LegionGauntlets 1
bAnvilNativeGuard3.removeitem LegionGreaves 1
bAnvilNativeGuard3.removeitem LegionHelmet 1
bAnvilNativeGuard3.removeitem LegionShield 1
AnvilGuardCastlePostDay02Ref.removeitem LegionBoots 1
AnvilGuardCastlePostDay02Ref.removeitem LegionCuirass 1
AnvilGuardCastlePostDay02Ref.removeitem LegionGauntlets 1
AnvilGuardCastlePostDay02Ref.removeitem LegionGreaves 1
AnvilGuardCastlePostDay02Ref.removeitem LegionHelmet 1
AnvilGuardCastlePostDay02Ref.removeitem LegionShield 1
bAnvilNativeGuard4.removeitem LegionBoots 1
bAnvilNativeGuard4.removeitem LegionCuirass 1
bAnvilNativeGuard4.removeitem LegionGauntlets 1
bAnvilNativeGuard4.removeitem LegionGreaves 1
bAnvilNativeGuard4.removeitem LegionHelmet 1
bAnvilNativeGuard4.removeitem LegionShield 1
AnvilGuardCastlePostNight01Ref.removeitem LegionBoots 1
AnvilGuardCastlePostNight01Ref.removeitem LegionCuirass 1
AnvilGuardCastlePostNight01Ref.removeitem LegionGauntlets 1
AnvilGuardCastlePostNight01Ref.removeitem LegionGreaves 1
AnvilGuardCastlePostNight01Ref.removeitem LegionHelmet 1
AnvilGuardCastlePostNight01Ref.removeitem LegionShield 1
AnvilGuardCastlePostNight02Ref.removeitem LegionBoots 1
AnvilGuardCastlePostNight02Ref.removeitem LegionCuirass 1
AnvilGuardCastlePostNight02Ref.removeitem LegionGauntlets 1
AnvilGuardCastlePostNight02Ref.removeitem LegionGreaves 1
AnvilGuardCastlePostNight02Ref.removeitem LegionHelmet 1
AnvilGuardCastlePostNight02Ref.removeitem LegionShield 1
bAnvilNativeGuard5.removeitem LegionBoots 1
bAnvilNativeGuard5.removeitem LegionCuirass 1
bAnvilNativeGuard5.removeitem LegionGauntlets 1
bAnvilNativeGuard5.removeitem LegionGreaves 1
bAnvilNativeGuard5.removeitem LegionHelmet 1
bAnvilNativeGuard5.removeitem LegionShield 1
bAnvilNativeGuard6.removeitem LegionBoots 1
bAnvilNativeGuard6.removeitem LegionCuirass 1
bAnvilNativeGuard6.removeitem LegionGauntlets 1
bAnvilNativeGuard6.removeitem LegionGreaves 1
bAnvilNativeGuard6.removeitem LegionHelmet 1
AnvilGuardCityPatrolDay02Ref.removeitem LegionBoots 1
AnvilGuardCityPatrolDay02Ref.removeitem LegionCuirass 1
AnvilGuardCityPatrolDay02Ref.removeitem LegionGauntlets 1
AnvilGuardCityPatrolDay02Ref.removeitem LegionGreaves 1
AnvilGuardCityPatrolDay02Ref.removeitem LegionHelmet 1
AnvilGuardCityPatrolDay02Ref.removeitem LegionShield 1
bAnvilNativeGuard7.removeitem LegionBoots 1
bAnvilNativeGuard7.removeitem LegionCuirass 1
bAnvilNativeGuard7.removeitem LegionGauntlets 1
bAnvilNativeGuard7.removeitem LegionGreaves 1
bAnvilNativeGuard7.removeitem LegionHelmet 1
bAnvilNativeGuard7.removeitem LegionShield 1
AnvilGuardCityPatrolNight02Ref.removeitem LegionBoots 1
AnvilGuardCityPatrolNight02Ref.removeitem LegionCuirass 1
AnvilGuardCityPatrolNight02Ref.removeitem LegionGauntlets 1
AnvilGuardCityPatrolNight02Ref.removeitem LegionGreaves 1
AnvilGuardCityPatrolNight02Ref.removeitem LegionHelmet 1
AnvilGuardCityPatrolNight02Ref.removeitem LegionShield 1
bAnvilNativeGuard8.removeitem LegionBoots 1
bAnvilNativeGuard8.removeitem LegionCuirass 1
bAnvilNativeGuard8.removeitem LegionGauntlets 1
bAnvilNativeGuard8.removeitem LegionGreaves 1
bAnvilNativeGuard8.removeitem LegionHelmet 1
bAnvilNativeGuard8.removeitem LegionShield 1
bAnvilNativeGuard9.removeitem LegionBoots 1
bAnvilNativeGuard9.removeitem LegionCuirass 1
bAnvilNativeGuard9.removeitem LegionGauntlets 1
bAnvilNativeGuard9.removeitem LegionGreaves 1
bAnvilNativeGuard9.removeitem LegionHelmet 1
bAnvilNativeGuard9.removeitem LegionShield 1
bAnvilNativeGuard10.removeitem LegionBoots 1
bAnvilNativeGuard10.removeitem LegionCuirass 1
bAnvilNativeGuard10.removeitem LegionGauntlets 1
bAnvilNativeGuard10.removeitem LegionGreaves 1
bAnvilNativeGuard10.removeitem LegionHelmet 1
bAnvilNativeGuard10.removeitem LegionShield 1
bAnvilNativeGuard11.removeitem LegionBoots 1
bAnvilNativeGuard11.removeitem LegionCuirass 1
bAnvilNativeGuard11.removeitem LegionGauntlets 1
bAnvilNativeGuard11.removeitem LegionGreaves 1
bAnvilNativeGuard11.removeitem LegionHelmet 1
bAnvilNativeGuard11.removeitem LegionShield 1
bAnvilNativeGuard12.removeitem LegionBoots 1
bAnvilNativeGuard12.removeitem LegionCuirass 1
bAnvilNativeGuard12.removeitem LegionGauntlets 1
bAnvilNativeGuard12.removeitem LegionGreaves 1
bAnvilNativeGuard12.removeitem LegionHelmet 1
bAnvilNativeGuard12.removeitem LegionShield 1
bAnvilNativeGuard13.removeitem LegionBoots 1
bAnvilNativeGuard13.removeitem LegionCuirass 1
bAnvilNativeGuard13.removeitem LegionGauntlets 1
bAnvilNativeGuard13.removeitem LegionGreaves 1
bAnvilNativeGuard13.removeitem LegionHelmet 1
bAnvilNativeGuard13.removeitem LegionShield 1
AnvilGuardEscortCountessRef.removeitem LegionBoots 1
AnvilGuardEscortCountessRef.removeitem LegionCuirass 1
AnvilGuardEscortCountessRef.removeitem LegionGauntlets 1
AnvilGuardEscortCountessRef.removeitem LegionGreaves 1
AnvilGuardEscortCountessRef.removeitem LegionHelmet 1
AnvilGuardEscortCountessRef.removeitem LegionShield 1
AnvilGuardJailorDayRef.removeitem LegionBoots 1
AnvilGuardJailorDayRef.removeitem LegionCuirass 1
AnvilGuardJailorDayRef.removeitem LegionGauntlets 1
AnvilGuardJailorDayRef.removeitem LegionGreaves 1
AnvilGuardJailorDayRef.removeitem LegionHelmet 1
AnvilGuardJailorDayRef.removeitem LegionShield 1
AnvilGuardJailorNightRef.removeitem LegionBoots 1
AnvilGuardJailorNightRef.removeitem LegionCuirass 1
AnvilGuardJailorNightRef.removeitem LegionGauntlets 1
AnvilGuardJailorNightRef.removeitem LegionGreaves 1
AnvilGuardJailorNightRef.removeitem LegionHelmet 1
AnvilGuardJailorNightRef.removeitem LegionShield 1

bAnvilNativeGuard1.additem ChainmailBoots 1
bAnvilNativeGuard1.additem ChainmailGauntlets 1
bAnvilNativeGuard1.additem ChainmailGreaves 1
bAnvilNativeGuard1.additem TownguardAnShield 1
bAnvilNativeGuard1.additem TownguardCuirassAn 1
bAnvilNativeGuard1.additem TownguardHelmet 1
bAnvilNativeGuard2.additem ChainmailBoots 1
bAnvilNativeGuard2.additem ChainmailGauntlets 1
bAnvilNativeGuard2.additem ChainmailGreaves 1
bAnvilNativeGuard2.additem TownguardAnShield 1
bAnvilNativeGuard2.additem TownguardCuirassAn 1
bAnvilNativeGuard2.additem TownguardHelmet 1
bAnvilNativeGuard3.additem ChainmailBoots 1
bAnvilNativeGuard3.additem ChainmailGauntlets 1
bAnvilNativeGuard3.additem ChainmailGreaves 1
bAnvilNativeGuard3.additem TownguardAnShield 1
bAnvilNativeGuard3.additem TownguardCuirassAn 1
bAnvilNativeGuard3.additem TownguardHelmet 1
AnvilGuardCastlePostDay02Ref.additem ChainmailBoots 1
AnvilGuardCastlePostDay02Ref.additem ChainmailGauntlets 1
AnvilGuardCastlePostDay02Ref.additem ChainmailGreaves 1
AnvilGuardCastlePostDay02Ref.additem TownguardAnShield 1
AnvilGuardCastlePostDay02Ref.additem TownguardCuirassAn 1
AnvilGuardCastlePostDay02Ref.additem TownguardHelmet 1
bAnvilNativeGuard4.additem ChainmailBoots 1
bAnvilNativeGuard4.additem ChainmailGauntlets 1
bAnvilNativeGuard4.additem ChainmailGreaves 1
bAnvilNativeGuard4.additem TownguardAnShield 1
bAnvilNativeGuard4.additem TownguardCuirassAn 1
bAnvilNativeGuard4.additem TownguardHelmet 1
AnvilGuardCastlePostNight01Ref.additem ChainmailBoots 1
AnvilGuardCastlePostNight01Ref.additem ChainmailGauntlets 1
AnvilGuardCastlePostNight01Ref.additem ChainmailGreaves 1
AnvilGuardCastlePostNight01Ref.additem TownguardAnShield 1
AnvilGuardCastlePostNight01Ref.additem TownguardCuirassAn 1
AnvilGuardCastlePostNight01Ref.additem TownguardHelmet 1
AnvilGuardCastlePostNight02Ref.additem ChainmailBoots 1
AnvilGuardCastlePostNight02Ref.additem ChainmailGauntlets 1
AnvilGuardCastlePostNight02Ref.additem ChainmailGreaves 1
AnvilGuardCastlePostNight02Ref.additem TownguardAnShield 1
AnvilGuardCastlePostNight02Ref.additem TownguardCuirassAn 1
AnvilGuardCastlePostNight02Ref.additem TownguardHelmet 1
bAnvilNativeGuard5.additem ChainmailBoots 1
bAnvilNativeGuard5.additem ChainmailGauntlets 1
bAnvilNativeGuard5.additem ChainmailGreaves 1
bAnvilNativeGuard5.additem TownguardAnShield 1
bAnvilNativeGuard5.additem TownguardCuirassAn 1
bAnvilNativeGuard5.additem TownguardHelmet 1
bAnvilNativeGuard6.additem ChainmailBoots 1
bAnvilNativeGuard6.additem ChainmailGauntlets 1
bAnvilNativeGuard6.additem ChainmailGreaves 1
bAnvilNativeGuard6.additem TownguardAnShield 1
bAnvilNativeGuard6.additem TownguardCuirassAn 1
bAnvilNativeGuard6.additem TownguardHelmet 1
AnvilGuardCityPatrolDay02Ref.additem ChainmailBoots 1
AnvilGuardCityPatrolDay02Ref.additem ChainmailGauntlets 1
AnvilGuardCityPatrolDay02Ref.additem ChainmailGreaves 1
AnvilGuardCityPatrolDay02Ref.additem TownguardAnShield 1
AnvilGuardCityPatrolDay02Ref.additem TownguardCuirassAn 1
AnvilGuardCityPatrolDay02Ref.additem TownguardHelmet 1
bAnvilNativeGuard7.additem ChainmailBoots 1
bAnvilNativeGuard7.additem ChainmailGauntlets 1
bAnvilNativeGuard7.additem ChainmailGreaves 1
bAnvilNativeGuard7.additem TownguardAnShield 1
bAnvilNativeGuard7.additem TownguardCuirassAn 1
bAnvilNativeGuard7.additem TownguardHelmet 1
AnvilGuardCityPatrolNight02Ref.additem ChainmailBoots 1
AnvilGuardCityPatrolNight02Ref.additem ChainmailGauntlets 1
AnvilGuardCityPatrolNight02Ref.additem ChainmailGreaves 1
AnvilGuardCityPatrolNight02Ref.additem TownguardAnShield 1
AnvilGuardCityPatrolNight02Ref.additem TownguardCuirassAn 1
AnvilGuardCityPatrolNight02Ref.additem TownguardHelmet 1
bAnvilNativeGuard8.additem ChainmailBoots 1
bAnvilNativeGuard8.additem ChainmailGauntlets 1
bAnvilNativeGuard8.additem ChainmailGreaves 1
bAnvilNativeGuard8.additem TownguardAnShield 1
bAnvilNativeGuard8.additem TownguardCuirassAn 1
bAnvilNativeGuard8.additem TownguardHelmet 1
bAnvilNativeGuard9.additem ChainmailBoots 1
bAnvilNativeGuard9.additem ChainmailGauntlets 1
bAnvilNativeGuard9.additem ChainmailGreaves 1
bAnvilNativeGuard9.additem TownguardAnShield 1
bAnvilNativeGuard9.additem TownguardCuirassAn 1
bAnvilNativeGuard9.additem TownguardHelmet 1
bAnvilNativeGuard10.additem ChainmailBoots 1
bAnvilNativeGuard10.additem ChainmailGauntlets 1
bAnvilNativeGuard10.additem ChainmailGreaves 1
bAnvilNativeGuard10.additem TownguardAnShield 1
bAnvilNativeGuard10.additem TownguardCuirassAn 1
bAnvilNativeGuard10.additem TownguardHelmet 1
bAnvilNativeGuard11.additem ChainmailBoots 1
bAnvilNativeGuard11.additem ChainmailGauntlets 1
bAnvilNativeGuard11.additem ChainmailGreaves 1
bAnvilNativeGuard11.additem TownguardAnShield 1
bAnvilNativeGuard11.additem TownguardCuirassAn 1
bAnvilNativeGuard11.additem TownguardHelmet 1
bAnvilNativeGuard12.additem ChainmailBoots 1
bAnvilNativeGuard12.additem ChainmailGauntlets 1
bAnvilNativeGuard12.additem ChainmailGreaves 1
bAnvilNativeGuard12.additem TownguardAnShield 1
bAnvilNativeGuard12.additem TownguardCuirassAn 1
bAnvilNativeGuard12.additem TownguardHelmet 1
bAnvilNativeGuard13.additem ChainmailBoots 1
bAnvilNativeGuard13.additem ChainmailGauntlets 1
bAnvilNativeGuard13.additem ChainmailGreaves 1
bAnvilNativeGuard13.additem TownguardAnShield 1
bAnvilNativeGuard13.additem TownguardCuirassAn 1
bAnvilNativeGuard13.additem TownguardHelmet 1
AnvilGuardEscortCountessRef.additem ChainmailBoots 1
AnvilGuardEscortCountessRef.additem ChainmailGauntlets 1
AnvilGuardEscortCountessRef.additem ChainmailGreaves 1
AnvilGuardEscortCountessRef.additem TownguardAnShield 1
AnvilGuardEscortCountessRef.additem TownguardCuirassAn 1
AnvilGuardEscortCountessRef.additem TownguardHelmet 1
AnvilGuardJailorDayRef.additem ChainmailBoots 1
AnvilGuardJailorDayRef.additem ChainmailGauntlets 1
AnvilGuardJailorDayRef.additem ChainmailGreaves 1
AnvilGuardJailorDayRef.additem TownguardAnShield 1
AnvilGuardJailorDayRef.additem TownguardCuirassAn 1
AnvilGuardJailorDayRef.additem TownguardHelmet 1
AnvilGuardJailorNightRef.additem ChainmailBoots 1
AnvilGuardJailorNightRef.additem ChainmailGauntlets 1
AnvilGuardJailorNightRef.additem ChainmailGreaves 1
AnvilGuardJailorNightRef.additem TownguardAnShield 1
AnvilGuardJailorNightRef.additem TownguardCuirassAn 1
AnvilGuardJailorNightRef.additem TownguardHelmet 1

bAnvilNativeGuard1.setActorFullName "Anvil-Wache"
bAnvilNativeGuard2.setActorFullName "Anvil-Wache"
bAnvilNativeGuard3.setActorFullName "Anvil-Wache"
AnvilGuardCastlePostDay02Ref.setActorFullName "Anvil-Wache"
bAnvilNativeGuard4.setActorFullName "Anvil-Wache"
AnvilGuardCastlePostNight01Ref.setActorFullName "Anvil-Wache"
AnvilGuardCastlePostNight02Ref.setActorFullName "Anvil-Wache"
bAnvilNativeGuard5.setActorFullName "Anvil-Wache"
bAnvilNativeGuard6.setActorFullName "Anvil-Wache"
AnvilGuardCityPatrolDay02Ref.setActorFullName "Anvil-Wache"
bAnvilNativeGuard7.setActorFullName "Anvil-Wache"
AnvilGuardCityPatrolNight02Ref.setActorFullName "Anvil-Wache"
bAnvilNativeGuard8.setActorFullName "Anvil-Wache"
bAnvilNativeGuard9.setActorFullName "Anvil-Wache"
bAnvilNativeGuard10.setActorFullName "Anvil-Wache"
bAnvilNativeGuard11.setActorFullName "Anvil-Wache"
bAnvilNativeGuard12.setActorFullName "Anvil-Wache"
bAnvilNativeGuard13.setActorFullName "Anvil-Wache"
AnvilGuardEscortCountessRef.setActorFullName "Leibwächter der Gräfin"
AnvilGuardJailorDayRef.setActorFullName "Anvil-Kerkermeister"
AnvilGuardJailorNightRef.setActorFullName "Anvil-Kerkermeister"

set doOnce2 to 1
endif


ElseIf Anvil == 3
bAnvilGuard1.enable
bAnvilGuard2.enable
bAnvilGuard3.enable
bAnvilGuard4.enable
bAnvilGuard5.enable
bAnvilGuard6.enable
bAnvilGuard7.enable
bAnvilGuard8.enable
bAnvilGuard9.enable
bAnvilGuard10.enable
bAnvilGuard11.enable
bAnvilGuard12.enable
bAnvilGuard13.enable
bAnvilGuard14.enable
bAnvilGuard15.enable
bAnvilGuard16.enable
bAnvilGuard17.enable
bAnvilGuard18.enable
bAnvilGuard19.enable
bAnvilGuard20.enable
bAnvilGuard21.enable

set Anvil to 0
endif
end
 
direkt helfen kann ich dir da nicht. nur mal kurz: ist die Variable Anvil eine Globale Variable? weil dann musst du die nicht deklarieren.
 
Eine Global erstellst du oben unter Gameplay>Globals. Dort in die Liste Rechtsklick>New. Short, 0.
Die kannst du dann im Script wie eine normale Variable verwenden, brauchst aber in jedem Script nur den Namen der Variable benutzen und musst sie nicht deklarieren.

ansonsten ist mir aber auch kein Fehler aufgefallen:?
Verschwinden die normalen Wachen und erscheinen wieder, wenn jeweils die Bedingung erfüllt ist?
 
  • Like
Reaktionen: bjoernret
Die normalen Wachen sollen eigentlich nicht verschwinden, die sollen nur die Ausrüstung wechseln. Ich werde es morgen mal mit der Globalen Variabel probieren.

bAnvilGuard = Eigene Wache
bAnvilNativeGuard = Normale Wache
 
Hab mal ne Frage: ich möchte, dass, wenn man das Spiel neu anföngt oder läd, eine schriftrolle bzw. ein buch in den Inventar kommt und dann soll eine Messagebox erscheinen. aber bei mir funktioniert gar ncihtts!

Code:
scn BuildyourGuild
ref ByGAnfangsBox
short Gildenministerium
Begin OnLoad
player.additem ByGAnfangsBox 1
End
Begin onActivate ByGAnfangsBox

MessageBox "Ich habe gehört, dass es ein neues Gildenministerium im Palastbezirk der Kaiserstadt gibt, in dem Man seine eigene Gilde Gründen kann. Ich sollte mal dort hingehen, um mir das genauer anzugucken."
End
ich bin eigentlich kein skripter, aber ich wollte im projekt weiter kommen :oops:
 
Zuletzt bearbeitet:
Soll das ein Script oder zwei sein?

Ansonsten würde ich dir das vorschlagen:

Code:
scn ...

short once

begin GameMode
if (once == 0)
    player.additem [buch ID]
    Messagebox "[Dein Text]"
    set once to 1
endif
end

Das als Questscript speichern und dann noch eine Quest erstellen, auf die du das Script legst. Ansonsten brauchst du bei der Quest nicht mehr machen.
 
  • Like
Reaktionen: Maxo
danke, aber.. was soll das set once to 1 und so bedeuten??^^

Edit: Das funktioniert leider auch nich :( und das sollte der anfang einer "quest" sein... also ich habs auf ein buch gelegt und wenn ich es lese, krieg ich diese MB...
 
Zuletzt bearbeitet:
Du musst vorgehen wie Knochenkeule es beschrieb. Wenn das Script nicht auf einer Quest liegt wird nichts geschehen. Um das Script auf eine Quest zu legen, öffne es noch einmal. Wenn Du es dann vor Dir hast, siehst Du über dem Textfenster halb rechts ein Pulldownmenu, in dem jetzt höchstwahrscheinlich "OBJECT" steht. Ändere das auf "QUEST" und speicher das Script ab. Erstelle nun eine neue Quest und wähle bei Questscript Dein Script aus.

gruß,
N.
 
  • Like
Reaktionen: Maxo
Hey, ich habe einige Stunden in eine kleine Questmod investiert und bin fast fertig, aber eins stört mich noch, das ich allein nciht beheben kann.
Die Mod enthält einige Streammusic Skripts und spielt in der Langustenhöhle (Crayfish cave). Für einige Abschnitte dieser Höhle wollte ich Musik spielen, nach dem altbewährten Script.
Aber ingame ist es seltsam: der Script für "crayfishcave" scheint auch in den anderen Höhlenteilen (crayfishcave02; crayfishcave04) anzuspringen. Plötzlich spielt im Abschnitt 02 die Musik aus crayfishcave oder sie beginnt plötzlich neu.
Liegt das etwa daran, dass mein erster Script (siehe Spoiler) einen Cellnamen anspricht, den andere Cells enthalten? Also weil "Crayfish" ja auch in "Crayfish02" enthalten ist. Fehler in dne Scripts sehe ich nicht.

scn crayfishmusik01script

short kampf
short doonce

begin gamemode

If (player.getincell crayfishcave && doonce == 0)
Streammusic "data\music\special\01 - certain place.mp3"
Set doonce to 1
Endif

if (kampf == 0 && player.isincombat == 1)
set kampf to 1
elseif (kampf == 1 && player.isincombat == 0)
set kampf to 0
set doonce to 0
endif

If (player.getincell crayfishcave == 0 && doonce == 1)
Set doonce to 0
endif

end

---------------

scn crayfishmusik2script

short doonce
short kampf

begin gamemode

If (player.getincell crayfishcave02 && doonce == 0)
Streammusic "data\music\special\21 - story.mp3"
Set doonce to 1
endif

If (player.getincell crayfishcave02 == 0 && doonce == 1)
Set doonce to 0
Endif

if (kampf == 0 && player.isincombat == 1)
set kampf to 1
elseif (kampf == 1 && player.isincombat == 0)
set kampf to 0
set doonce to 0
endif

end

----------------

scn crayfishmusik04script

short kampf
short doonce

begin gamemode

if (kampf == 0 && player.isincombat == 1)
set kampf to 1
elseif (kampf == 1 && player.isincombat == 0)
set kampf to 0
set doonce to 0
endif

If (player.getincell crayfishcave04 && doonce == 0)
Streammusic "data\music\special\07 - surviving.mp3"
Set doonce to 1
endif

If (player.getincell crayfishcave04 == 0 && doonce == 1)
Set doonce to 0
endif

end