devolution

Author Topic: idea of new quest/event/activity  (Read 6376 times)

0 Members and 1 Guest are viewing this topic.

nemojason

  • Guest
idea of new quest/event/activity
« on: November 21, 2018, 01:35:09 AM »
hello,


this night as luther martin king i have a dream xd

seriously, i have (for begining to create event/quest) like simple idea, to create a new activity with an simple event:

"Well, by exploring the hidden village we discover an abandoned mine.This mine shall appear to the North of the hidden village on the map.

A new link apparear, and when we 'll click, we 'll go in the mine where a pnj apparear after a look around.

This pnj sell the mine (price to determinate) and after we obtain a scroll of property of mine.

After, we obtain a new activity like trees cuting : "miner"

This new activity (consomming 50 vitality and 10 health) permit to gain some random items like gold, bad of gold, gemstone,ressources etc... and can get add stat like constitution and/or health which 'll depend of luck of player.

Well, what do u think about this idea?
Plz , can u guide me for create that step by step for i learn how create this sort of event because i think there a lot of thing to change with this "simple" idea  ::)
« Last Edit: November 21, 2018, 01:44:27 AM by nemojason »

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: idea of new quest/event/activity
« Reply #1 on: November 21, 2018, 09:32:13 AM »
It's indeed a simple idea that touches a lot of different areas of the game. You can take a look at the wood chopping code and how that's setup and copy-paste that with changes. There are explanations about events and quests and scripting (frog quest file and idol quest file and one of the events files). Scripting and talking to characters is explained in examples.rpy.

There is also a ton of issues that may be attached to this thing as the hidden village would have to be unlocked in the future instead of being available at all times.

Like what we're doing?

nemojason

  • Guest
Re: idea of new quest/event/activity
« Reply #2 on: November 21, 2018, 12:14:42 PM »
It's indeed a simple idea that touches a lot of different areas of the game. You can take a look at the wood chopping code and how that's setup and copy-paste that with changes. There are explanations about events and quests and scripting (frog quest file and idol quest file and one of the events files). Scripting and talking to characters is explained in examples.rpy.

There is also a ton of issues that may be attached to this thing as the hidden village would have to be unlocked in the future instead of being available at all times.


hello,


i begin to read all this document, i have a question for use function "$ coords", how can i know the geographical position for place an icon on screen? are there a map with this information for better choose a position?

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: idea of new quest/event/activity
« Reply #3 on: November 21, 2018, 02:07:31 PM »

hello,


i begin to read all this document, i have a question for use function "$ coords", how can i know the geographical position for place an icon on screen? are there a map with this information for better choose a position?

You just put the icon where you want it. coords if I read it correctly refers to where the game should portraits of the girls for city interactions. It got nothing to do with icons placement.
Like what we're doing?

nemojason

  • Guest
Re: idea of new quest/event/activity
« Reply #4 on: November 21, 2018, 05:05:34 PM »
You just put the icon where you want it.



hello,
my problem is i don t know how place a new icon/picture at the place where i want on the map.
for examplen I want to place the icon of the mine on the world map, at the north of hidden village... my problem i don t know how work the numbers to use in this functions:
pos(1120, 460)
$ img_deep_forest= ProportionalScale("content/gfx/interface/icons/deep_forest.png", 75, 75)
     
           
« Last Edit: November 21, 2018, 05:22:48 PM by nemojason »

nemojason

  • Guest
Re: idea of new quest/event/activity
« Reply #5 on: November 22, 2018, 02:57:48 AM »
hello i begin to write mine event :



init python


init python:
    register_event("find_the_mine", locations=["hiddenvillage_entrance"], simple_conditions=["hero.luck >= 15"],  priority=100, start_day=1, jump=True, dice=200, max_runs=1)
   
label Helena_meeting:
    $ hm = Character("???", color=red, what_color=red, show_two_window=True)   
   stop world


    hide screen hidden_entrance
    with dissolve
   
show bg hiddenvillage_entrance:
        size (config.screen_width, config.screen_height)
        crop (0, 0, config.screen_width, config.screen_height)
        easein 4.0 crop (100, 100, config.screen_width/4, 200)
      
 if not "village" in ilists.world_music:
        $ ilists.world_music["village"] = [track for track in os.listdir(content_path("sfx/music/world")) if track.startswith("village")]
    if not global_flags.has_flag("keep_playing_music"):
        play world choice(ilists.world_music["village"]) fadein .5
    $ global_flags.del_flag("keep_playing_music")
      
image helena meet = "helena_meet.wepb"      
image helena work = "helena_work.wepb"
image helena sex = "helena_sex.wepb"


label helena_meeting
show helena meet
    with dissolve
   
$ h = hero.say   
$ hm = npcs["Helena_Minecraft"].say   


hm.say "Hello, what are you doing in this lost place?"


if char.charisma>50


     label helena_working
     show helena work


     hm "Oh, not bad!..."


     $ hm = npcs["Helena_Minecraft"].say
     hm "I'm Helena who are you my cuttie?"
     h "i'am" hero.name


else
     jump helena_working
     hm "oh, sorry i must finish my work, come back any time"
   
    hide helena_working
    show hiddenvillage_entrance


Is it correct?
for the green line i'm not sure, i want to give the name of hero, but not sure if it 'll work  like that




   

nemojason

  • Guest
Re: idea of new quest/event/activity
« Reply #6 on: November 22, 2018, 03:00:28 AM »
and i write this for place a new actuvity in new location the mine :



label mc_action_mine_working:
    if not has_items("Mine Scroll", [hero], equipped=True):
        "You need the Mine Scroll before doing anything."
    elif hero.AP <= 0:
        "You don't have Action Points left. Try again tomorrow."
    elif hero.vitality < 50:
        "You are too tired for that."
    elif hero.health < 10:
        "You can't work to the mine, your health is too low"


    else:
        $ hero.AP -= 1
        $ hero.vitality -= 50
        $ hero.health -= 10
        "You enter to the mine, and you start to work."
        $ mine = (hero.constitution+hero.health) // 10 + randint(1, 3)
        if dice(50):
            $ hero.health += randint(-1, 3)
        if dice(50):
            $ hero.constitution += randint(1, 2)
        $ hero.add_item("Bricks","Stone","Green Marble", mine)
        $ gfx_overlay.random_find(items["Bricks","Stone","Green Marble","Amethyst","Topaz","Apatite","Sapphire","Emerald","Ruby","Diamond","Gold Ingots"], 'items', mine)
        $ del mine


$ img_mine_work = ProportionalScale("content/gfx/interface/icons/Pick_Axe.png", 90, 90)
        imagebutton:
            pos(1120, 460)
            idle (img_mine_work)
            hover (im.MatrixColor(img_mine_work, im.matrix.brightness(.15)))
            action [Hide("mine_entrance"), Jump("mc_action_mine_working"), With(dissolve)]
            tooltip "Mine Working"

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: idea of new quest/event/activity
« Reply #7 on: November 22, 2018, 07:03:29 AM »
Like what we're doing?

nemojason

  • Guest
Re: idea of new quest/event/activity
« Reply #8 on: November 22, 2018, 12:47:47 PM »
hello, i continue my little event xd


hmm, i'm not sure for do a thing...  well i want to buy just 1 item quest from Helena... and after when i get this item, a new location 'll appear on the world map.


how can i do?


this is where i am :



init python:
    register_event("find_the_mine", locations=["hiddenvillage_entrance"], simple_conditions=["hero.luck >= 15"],  priority=100, start_day=1, jump=True, dice=200, max_runs=1)
   
label Helena_meeting:
    $ hm=Character(" ??? ",color=red,what_color=red,show_two_window=True)   
   stop world


    hide screen hidden_entrance
    with dissolve
   
show bg hiddenvillage_entrance:
        size(config.screen_width, config.screen_height)
        crop(0,0,config.screen_width,config.screen_height)
        easein 4.0 crop (100,100,config.screen_width/4, 200)
     
 if not "village" in ilists.world_music:
        $ ilists.world_music["village"] = [track for track in os.listdir(content_path("sfx/music/world")) if track.startswith("village")]
    if not global_flags.has_flag("keep_playing_music"):
        play world choice(ilists.world_music["village"]) fadein .5
    $ global_flags.del_flag("keep_playing_music")
     
image helena meet = "helena_meet.wepb"     
image helena work = "helena_work.wepb"
image helena sex = "helena_sex.wepb"


label helena_meeting
show helena work
    with dissolve
   
$ h = hero.say   
$ hm = npcs["Helena_Minecraft"].say   


hm.say "Hello, what are you doing in this lost place?"


if char.charisma>50


     label helena_working
     
    hide helena work
    with dissolve
   
    show helena meet


     hm "Oh, not bad!..."


    $ global_flags.set_flag("helena_meeting")
   
     $ hm = npcs["Helena_Minecraft"].say
     hm "I'm Helena who are you my cuttie?"
     h "i'am" hero.name
     h "I'm walking in the village and i saw this place"
     h "Do you know about this place?"
     hm "It was my father's mine."
     hm   "After his death, dad give me the scroll for i continue his work"
    h "And are you alone for continue this business?"
     hm "Yes, i am... During all this time, i work everyday at the memory of daddy.."
    h "May be i can help you for you change of life and enjoy it?"
    hm "I'm not sure... You see it's all that remains of my father's memory."
    if hero.gold>= 10 000
            h "I can buy your mine and you 'll continue to work here if you wish."
         
          else
         
          h "I come back later Helena, i'll find any soluce at your problem"
          hm "I'm waiting you my swetty!"
          hide helena meet with dissolve
         
    $ global_flags.set_flag("keep_playing_music")
    jump hiddenvillage_entrance
   
   
else
     jump helena_working
     hm "oh, sorry i must finish my work, come back any time"
   
    hide helena_working
    show hiddenvillage_entrance
   
For the red line, is it correct for ask if the hero have enough money for buy item?
I continue to read your link for learn more but in english it's not very easy for me xd, i find a translate of this site, but it's not complete...
Do you have a site for search error in the code, it's hard to see all error?
Is in the file : city_map.rpy that i can insert the new location which start hide (modify in maps.jason) ?
After i think that the new location show in the map when the hero get the quest item... but xwhat files must i write that?
« Last Edit: November 23, 2018, 01:14:30 PM by nemojason »

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: idea of new quest/event/activity
« Reply #9 on: November 26, 2018, 08:31:31 AM »
Looks ok.
Like what we're doing?

nemojason

  • Guest
Re: idea of new quest/event/activity
« Reply #10 on: November 26, 2018, 01:04:30 PM »
Looks ok.


Hello,
i need help for :
-Do you have a online site for search error in the code, (because it's hard to see all error)?
Is in this file : city_map.rpy that i must insert the new location which start hide (thing i modify at the loading of game in maps.jason) and after  the new location 'll show in the map only when the hero get the quest item... but  my problème is i don't know what files i must write the change?

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: idea of new quest/event/activity
« Reply #11 on: December 02, 2018, 11:56:52 AM »
Not really, the engine should do this for you at least partly. Download the renpy devkit, don't do complex mods on the game itself I guess.
Like what we're doing?