Date: 2014/07/04 15:17:24 UTC-07:00
Type: Denizen Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
"KlassenFaehigkeitenScript":
type: world
events:
on player stops sneaking:
- invisible player state:false
on player starts sneaking:
- if <player.flag[InvisibleActive]> == Ein if <player.flag[Klasse]> == Schleicher {
- if <player.has_flag[CDBool]> {
- narrate "<red>Dein Skill ist noch nicht Bereit!"
- invisible player state:false
- queue clear }
- run script:SchleicherSkillCooldown }
on player damages entity:
- invisible player state:false
on player damaged:
- invisible player state:false
on player right clicks with i@UnsichtbarkeitsSkill:
- if <player.flag[InvisibleActive]> == Ein run "script:InvisibleToggleOff" - queue clear
- if <player.flag[InvisibleActive]> == Aus run "script:InvisibleToggleOn"
"Invisible":
type: task
script:
- invisible player state:true
- playeffect <player.location> effect:LARGE_SMOKE visibility:20 qty:20 offset:1
- wait 7
- invisible player state:false
"SchleicherSkillCooldown":
type: task
script:
- ^if <player.has_flag[CDBool]> {
- queue clear
}
- ^run "script:Invisible"
- flag player CDBool duration:10
"InvisibleToggleOff":
type: task
script:
- define InvisibleSlot <player.inventory.find[UnsichtbarkeitsSkill]>
- take UnsichtbarkeitsSkill
- flag player InvisibleActive:Aus
- inventory add origin:UnsichtbarkeitsSkill slot:%InvisibleSlot%
"InvisibleToggleOn":
type: task
script:
- define InvisibleSlot <player.inventory.find[UnsichtbarkeitsSkill]>
- take UnsichtbarkeitsSkill
- flag player InvisibleActive:Ein
- inventory add origin:UnsichtbarkeitsSkill slot:%InvisibleSlot%