Bloklu expi gosterir / Bloksuz

  • Konbuyu başlatan Konbuyu başlatan Admin
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 0
  • Görüntüleme Görüntüleme 35

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
--** Bloklu expi gosterir
function PetSystem.BlockExp()
pc.setqf(PetSystem.ExpFlag, 1)
end


--** Bloksuz expi gosterir
function PetSystem.UnblockExp()
pc.setqf(PetSystem.ExpFlag, 0)
end
Metin2'de Quest Sistemi: Bloklu Expi Gösterim ve Bloksuz Versiyonlar Arasındaki Farklar

Metin2 oyununda quest sistemleri, oyuncuların ilerlemesini ve deneyim kazanmasını sağlayan temel yapı taşlarından biridir. Bu sistemler genellikle Lua dili kullanılarak geliştirilir ve Metin2 sunucularında özel görevlerin tanımlanmasını sağlar. Bu yazıda, bloklu expi gösterimi ile bloksuz quest yapıları arasındaki farklara değinecek, bu yapıların nasıl çalıştığını ve hangi durumlarda tercih edilmesi gerektiğini detaylı olarak ele alacağız.

Quest Sistemine Genel Bakış

Metin2 quest sistemi, oyuncuların belirli görevleri tamamlayarak ödüller kazandığı, oyun içi hikâyeyi geliştiren veya ekstra kazanç sağlayabilen yapılardır. Quest sistemleri genellikle NPC'ler üzerinden başlatılır ve Lua script dili kullanılarak geliştirilir. Bu scriptler, görevin başlangıcı, ilerleyişi ve bitişini kontrol eder. Quest sistemlerinde kullanılan anahtar kavramlardan bazıları şunlardır:

- Quest Trigger: Görevin ne zaman başlayacağına karar verir.
- Quest Timer: Görevin zaman sınırlarını belirler.
- Quest Flag: Oyuncunun görev durumunu takip eder.
- Quest State: Görevin mevcut aşamasını gösterir.
- Quest Reward: Görev tamamlandığında verilecek ödülleri tanımlar.

Bloklu Expi Gösterimi Nedir?

Bloklu expi gösterimi, bir quest'in tamamlanmasıyla elde edilen deneyim puanlarının belirli bloklar halinde oyuncuya aktarılmasıdır. Bu sistemde, görevin her aşamasında farklı miktarda exp verilebilir. Örneğin, bir quest iki aşamadan oluşuyorsa ve her aşamada farklı exp veriliyorsa, bu bloklu yapı sayesinde oyuncu hangi adımda ne kadar exp kazandığını görebilir. Bu yapı, quest geliştiricilerin daha fazla kontrol sahibi olmasını sağlar.

Örnek olarak, bir Metin2 quest scriptinde bloklu expi şu şekilde tanımlanabilir:

quest example_quest begin
state start begin
when login with pc.level >= 30 begin
say('Görev başladı!')
set_state(accept)
end
end

state accept begin
when letter begin
say_title('Görev')
say('İlk görevi tamamla ve 50 exp kazan!')
end
when kill with npc.is_pc() == 0 begin
clear_letter()
exp(50)
set_state(reward)
end
end

state reward begin
when button begin
say('Tebrikler! 50 exp kazandınız.')
clear_letter()
end
end
end


Bloksuz Quest Yapısı Nedir?

Bloksuz quest yapıları ise, görevin tamamı bittiğinde tüm exp puanlarının tek seferde verildiği sistemlerdir. Bu tür questlerde, görevin herhangi bir adımında exp verilmez; tüm ödül görevin sonunda sunulur. Bu sistem, oyuncuların görevi baştan sona tamamlamasını teşvik eder ve daha basit bir yapı sunar. Bloksuz quest'ler genellikle günlük görevlerde veya kısa görev zincirlerinde tercih edilir.

Bloksuz bir örnek:

quest simple_quest begin
state start begin
when login with pc.level >= 20 begin
say('Görev başladı.')
end
end

state complete begin
when kill with npc.is_pc() == 0 begin
say('Görev tamamlandı!')
exp(100) -- Tüm exp tek seferde veriliyor
end
end
end


Bloklular Arasında Seçim Kriterleri

Quest geliştiricilerin hangi yapıyı seçeceği, oyun içi hedeflere ve oyuncu deneyimine bağlıdır. Bloklu sistem, oyuncuların motivasyonunu sürdürebilmeleri için daha iyi olabilir çünkü görevin her aşamasında ödül alırlar. Bloksuz sistem ise daha az karmaşık ve yönetilebilir olabilir. Daily quest gibi kısa görevlerde bloksuz yapı daha uygundur.

Sonuç

Metin2 quest sistemleri, oyunun içeriğini zenginleştirmek ve oyuncuların ilgisini çekmek için güçlü araçlardır. Bloklu ve bloksuz yapıların her ikisi de farklı avantajlar sunar. Geliştiriciler, amacına göre doğru yapıyı seçerek oyuncular için daha keyifli ve dengeli bir deneyim yaratabilirler. Metin2lobby.com olarak,.quest sistemlerine dair daha fazla kaynak ve script paylaşımı yapmaya devam edeceğiz.


Metin2 Quest System: Displaying Exp with Blocks vs Without Blocks

In Metin2, quest systems are one of the fundamental structures that allow players to progress and gain experience. These systems are typically developed using the Lua language and enable the definition of special tasks on Metin2 servers. In this article, we will examine the differences between displaying experience points in blocks versus non-blocked versions, explain how these structures work, and discuss when each should be preferred.

Overview of the Quest System

The Metin2 quest system allows players to earn rewards by completing specific tasks, advancing the in-game story or providing additional gains. These systems usually start via NPCs and are developed using Lua scripting. The scripts control the beginning, progression, and ending of quests. Some of the key concepts used in quest systems include:

- Quest Trigger: Determines when the quest starts.
- Quest Timer: Defines time limits for the quest.
- Quest Flag: Tracks the player's quest status.
- Quest State: Shows the current phase of the quest.
- Quest Reward: Defines rewards given upon completion of the quest.

What is Block-based Experience Display?

Block-based experience display refers to the distribution of experience points earned from completing a quest in specific blocks to the player. In this system, different amounts of experience can be awarded at each stage of the quest. For example, if a quest consists of two stages and each gives different experience, the player can see how much exp they gained at each step thanks to the block-based structure. This system allows quest developers greater control over the flow of experience rewards.

As an example, a block-based exp quest in a Metin2 script might look like this:

quest example_quest begin
state start begin
when login with pc.level >= 30 begin
say('Quest started!')
set_state(accept)
end
end

state accept begin
when letter begin
say_title('Quest')
say('Complete the first task and earn 50 exp!')
end
when kill with npc.is_pc() == 0 begin
clear_letter()
exp(50)
set_state(reward)
end
end

state reward begin
when button begin
say('Congratulations! You have earned 50 exp.')
clear_letter()
end
end
end


What is Non-Blocked Quest Structure?

Non-blocked quest structures award all experience points at once only after the entire quest is completed. In these types of quests, no experience is given during any of the steps; instead, the full reward is presented at the end. This system encourages players to complete the quest from start to finish and offers a simpler structure. Non-blocked quests are often preferred in daily quests or short quest chains.

An example of a non-blocked structure:

quest simple_quest begin
state start begin
when login with pc.level >= 20 begin
say('Quest started.')
end
end

state complete begin
when kill with npc.is_pc() == 0 begin
say('Quest completed!')
exp(100) -- All exp awarded at once
end
end
end


Selection Criteria Between Both Types

The choice between blocked and non-blocked structures depends on in-game goals and player experience. The blocked system may be better for maintaining player motivation since they receive rewards at each stage. The non-blocked system is simpler and more manageable. It is more suitable for short quests like daily quests.

Conclusion

Metin2 quest systems are powerful tools to enrich game content and engage players. Both blocked and non-blocked structures offer unique advantages. Developers can choose the appropriate structure according to their objectives to create a more enjoyable and balanced experience for players. At Metin2lobby.com, we will continue to share more resources and scripts related to quest systems.
 

Şuan Bu Konuyu Görüntüleyen Kullanıcılar (Toplam : 0, Üye : 0, Misafir : 0)

Benzer konular

Geri
Üst Alt