Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
Skripten
scn AddSpell @ Name des Skripts
short doonce @ Definierung von doonce als Variable
begin on activate @ Beim Anklicken beginnen
if doonce == 0 @ Nur einmal ausführen
player.addspell SPELLID @ Den Zauber hinzufügen
set doonce to 1 @ Nur einmal ausfühlen
endif
end
scn AddSpell
short doonce
begin on activate
if doonce == 0
player.addspell SPELLID
set doonce to 1
endif
end
scn AddSpell
short doonce
begin on activate
if doonce == 0
player.addspell [SpellID]
set doonce to 1
endif
end
SCN Zauber^^
Short Doonce
Begin OnActivate
If Doonce==0
Player.Addspell [B]SpellID[/B]
Set Doonce to 1
endif
Activate
end
SCN LOL^^
Begin OnAdd
Player.Addspell [B]SpellID[/B]
end
Begin OnDrop
Player.Removespell [B]SpellID[/B]
end
CS Wiki schrieb:You have to use an ActivatorID when using the RunOnActivateBlock flag.
SCN MySpellBook
Short Doonce
Begin OnActivate
If IsActionRef Player&&Doonce == 0
Player.Addspell [B]Spell ID[/B]
Set Doonce to 1
endif
Activate
end