Activator? was für einen Activator? Ich hatte das ungefär so geschrieben glaub ich Code: If Player.get in Cell <CellID> Begin Gamemode if ( Player.IsInFaction <Fraktion> ) Return endif if ( bQuestion ) set iButton to GetButtonPressed if ( iButton == 0 ) Player.SetFactionRank Ritterorden, 0 endif Return elseif ( GetInSameCell PlayerRef ) set bQuestion to 1 set iButton to GetButtonPressed MessageBox "Willst du Großmeister des Ritterordens werden?", "Ja", "Nein" endif End Das war das errste script überhaupt gemacht hab und das ich aus verschiedenen anderen scripts zusammengestückelt habe.
If Player.get in Cell <CellID> Begin Gamemode if ( Player.IsInFaction <Fraktion> ) Return endif if ( bQuestion ) set iButton to GetButtonPressed if ( iButton == 0 ) Player.SetFactionRank Ritterorden, 0 endif Return elseif ( GetInSameCell PlayerRef ) set bQuestion to 1 set iButton to GetButtonPressed MessageBox "Willst du Großmeister des Ritterordens werden?", "Ja", "Nein" endif End
Zitat von TiberSeptim Activator? was für einen Activator?... Ein selbst erstellter, dem du das Skript verpasst und von dem du eine Referenz in der betreffenden Zelle plazierst. Was du hast wäre für ein QuestScript, nur dass du deinen ersten if-Befehl in das Script anstelle des GetInSameCell schieben musst: Code: scn QuestScript short bQuestion int iButon Begin Gamemode if ( bQuestion ) set iButton to GetButtonPressed if ( iButton == 0 ) Player.SetFactionRank <Fraktion>, 0 StopQuest <QuestID> elseif ( iButton == 1 ) StopQuest <QuestID> endif elseif ( PlayerRef.GetInCell <CellID> ) set bQuestion to 1 set iButton to GetButtonPressed MessageBox "Willst du Großmeister des Ritterordens werden?", "Ja", "Nein" endif End
scn QuestScript short bQuestion int iButon Begin Gamemode if ( bQuestion ) set iButton to GetButtonPressed if ( iButton == 0 ) Player.SetFactionRank <Fraktion>, 0 StopQuest <QuestID> elseif ( iButton == 1 ) StopQuest <QuestID> endif elseif ( PlayerRef.GetInCell <CellID> ) set bQuestion to 1 set iButton to GetButtonPressed MessageBox "Willst du Großmeister des Ritterordens werden?", "Ja", "Nein" endif End
-- Ich kam, sah, und konnte meinen Augen nicht trauen
Geändert von Low Post (12.03.2011 um 21:56 Uhr)
Foren-Regeln