Mobius's Quest Journal
Aktualny czas: 26-05-26, 01:55 Witaj! Przejdź do zakładki Logowanie lub Rejestracja


Wątek zamknięty 
[XP] Mobius's Quest Journal
Ayene Offline
*


Liczba postów: 758
Dołączył: 09-04-13

Pomógł: 112



Post: #2
RE: Mobius's Quest Journal

Dodaj nową zakładkę w nad całym skryptem, nazwij ją sobie, np. QUESTS. Wklej w nią:
QUESTS = <<_QUESTS_

Main Quest

You're off on a new adventure!

You realized you have no idea what you're doing. So you've set about
seeking a trainer.

You found someone willing to train you, but unfortunately you don't
have the money to pay him. You'll need to seek out some job opportunities.

You got a job hunting rats. It's not glamorous, but it'll have to do.

mobius_quest_break

Treasure Hunt

You have collected one of seven plot objects.

You have collected two of seven plot objects.

You have collected three of seven plot objects.

You have collected four of seven plot objects.

You have collected five of seven plot objects.

You have collected six of seven plot objects.

You have collected seven of seven plot objects.

mobius_quest_break

Yellow Cake

A man named Simon asked you to get some yellow cake for him
for his daughter's birthday. He told you the bakery
in Hafsgar has the best cakes.

You purchased a yellow cake for Simon.

mobius_quest_break

Generic Quest Name

Phase 0 info goes here. Whatever the player would have in their
journal immediately after learning about the quest. Note that
there's a blank line above and below this.

Phase 1 info goes here. This can continue for as many phases as you'd like.
Just make sure that after the last phase. You use the special
separator like below

mobius_quest_break

_QUESTS_
Upewnij się, że pierwsza i ostatnia linijka nie kończy się spacją.

Następnie znajdź w skrypcie (lub wejdź w zakładkę 'Game_Quests') fragment w definicji 'def Game_Quests.normal_setup':
quest_array = File.open(Mobius::Quests::QUEST_FILENAME) {|f|
                f.readlines("mobius_quest_break\n\n")}
    # Remove empty last element if necessary
    if quest_array.last.rstrip == ""
      quest_array.pop
    end
zamień go na:
quest_array = QUESTS.split(/mobius_quest_break\n\n/)

[Obrazek: aye_furniture_pres.png]
29-07-14 08:43
Znajdź wszystkie posty użytkownika
"Pomógł" przyznał(a):
Wątek zamknięty 


Wiadomości w tym wątku
Mobius's Quest Journal - Athanor - 29-07-14, 06:07
RE: Mobius's Quest Journal - Ayene - 29-07-14 08:43
RE: Mobius's Quest Journal - Ayene - 30-07-14, 13:16
RE: Mobius's Quest Journal - Gorn5 - 31-07-14, 22:07
RE: Mobius's Quest Journal - Ayene - 01-08-14, 00:18

Skocz do:


Użytkownicy przeglądający ten wątek: 1 gości

Kontakt | Ultima Forum | Wróć do góry | Wróć do forów | Wersja bez grafiki | RSS
Powered By MyBB. © 2013 MyBB Group. All Rights Reserved.
Skórka by Ayene.