P3D-Legacy/P3D/Content/Data/Scripts/powerplant/manager.dat

30 lines
2.4 KiB
Plaintext

version=2
:if:<register.registered(powerplantmanager1)>=False
@text.show(Manager: I, I, I~am ready to blast someone!*Who would dare ruin~my generator?*I spent so much time on it!*If I catch him, he is going to~get a taste of my Zap Cannon!)
@register.register(powerplantmanager1)
:end
:else
:if:<register.registered(powerplanton)>=False
:if:<inventory.countitem(128)>>0
@text.show(Ah!~Yeah!*That's the missing Part~from my beloved generator!*You found it?~Wahah!)
@item.remove(128,1)
@text.show(Thanks!~Here!*Take this TM as a reward!)
@item.give(197,1)
@item.messagegive(197,1)
@text.show(TM07 is my Zap Cannon.*It's a powerful technique!*It's not what anyone~would consider accurate,~but it packs a wallop!)
@register.register(powerplanton)
@npc.register(routes\route25.dat|9|position|44,1,9)
@npc.register(routes\route25.dat|10|position|44,1,10)
@npc.register(routes\route10.dat|0|remove|0)
:end
:else
@text.show(I won't forgive him!*The culprit can~cry and apologize,~but I will still hammer him!*Muahahahahahah!)
:end
:endif
:else
@text.show(Manager: My beloved generator!*Keep pumping eletricity out!)
:end
:endif
:endif
:end