Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

2 scripts if anyone can please!

Status
Not open for further replies.
Can anyone make me 2 scripts please if that can be done.
1~Clan Script-Lets you have like clans in your game and you can join different ones and stuff.
2~Permission Script-Like you can't go into an area unless you got high enough level-Example~Lv1 person Walks up to door clicks enter "Sorry you must be Lv 5 or up to view room" comes back as a level six and the door opens.

Well thanks in advance.
 
You actually don't need scripts for these.

1. Assign each clan a different switch. When you join the clan, flip the corresponding switch On. Then, link everything you want the player to gain from joining a clan to that switch being on.

Example:

Player does not receive clan quests unless he is a member of the Clan.

Set up the clan members (events) that stand around your clan hall and give them two event pages. The first page, have them dismiss your character when he tries to talk to them ("I only deal with clan members!", etc.). Then, on the second page, set the conditions (on the left side of the page) to Switch [XXXX] is On (the switch when your player joins the clan) and have the character give the player a quest.

2. In the door event, use Set Variable and set a variable equal to the player's level. Then, use a Conditional Branch to check the variable.

@Set Variable [XXXX] = Player Level
@If Variable [XXXX] is greater than 5 then:
....<>(Open door)
Else:
....<>Text:You need to be level 5 or higher
 
Status
Not open for further replies.

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top