Date: 2020/05/28 03:21:56 UTC-07:00
Type: Denizen Script
level_up:
type: assignment
actions:
on assignment:
- trigger name:click state:true
on click:
- chat "<&c>So you want to become a guild master? &e(Anwser yes or no)"
1:
trigger: /yes/
script:
- chat "Well lets see then..."
- if <player.groups.contains[guildmaster]>:
- narrate "<&c>But you are already a GuildMaster you fool!"
- stop
- if <player.money> > 500:
- chat "Ah, exactly 500 Gold Coins. You know, Payment always puts a smile on my face."
- group set GuildMaster
- wait 2
- narrate "and its done! Everything is in order and you can now start your own Guild!"
- else:
- narrate "<&c>Are you taking me for a fool?, This is not enough! You need 500Gc"
2:
trigger: /no/
script:
- chat "<&c>Why are you talking to me then!"
- stop
interact scripts:
- level_up