News:

Take a look at what's going on, at The Town Crier!

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - COGlory

#1
Tutorials / Sea Battles
February 28, 2011, 03:12:08 AM
Well, for anyone wondering how to do that:


    ("sail_from_port",[(party_slot_eq,"$current_town",slot_party_type, spt_town),
        (store_troop_gold, ":gold_check", "trp_player"),
        (eq, ":gold_check", 2000),      
                       ],
                  "Buy a ship (2000 denars)",


:P

(Good idea, by the way.)
#2
Tutorials / Sea Battles
January 08, 2011, 06:56:40 PM
Since I still actually use this thread for a reference, the module_game_menus.py code should be this:

    ("sail_from_port",[(party_slot_eq,"$current_town",slot_party_type, spt_town),
                       # (party_slot_eq,"$current_town",slot_town_near_shore, 1),  #Should remain commented when code implemented.  ~CO
                       ], "Buy a ship (2000 denars)",  #Note: (--Code needs to be revised to check if player has gold.  ~CO--) <--DONE!  ~CO
     [(store_troop_gold, ":gold", "trp_player"),
  (assign, "$g_player_icon_state", pis_ship),
  (try_begin), #begin check if player has gold
    (ge, ":gold", 2000), #if players gold is 2000 or greater, then give ship
        (party_set_flags, "p_main_party", pf_is_ship, 1),
        (troop_remove_gold, "trp_player", 2000),
        (party_get_position, pos1, "p_main_party"),
(map_get_water_position_around_position, pos2, pos1, 6),
        (party_set_position, "p_main_party", pos2),
        (assign, "$g_main_ship_party", -1),
        (change_screen_return),
  (else_try), #if not, then display message
    (display_message, "@You don't have enough denars!"),  
  (try_end),
      ]),


Otherwise, you can buy the ship even if you don't have 2000 denars.
#3
M&B Mods - The Explorer's Society / Dante's forge
April 26, 2010, 12:35:00 AM
Some real nice models!  Fantastic work.
#4
Tutorials / Sea Battles
January 25, 2010, 12:46:20 AM
Alright, I changed it into a constant, and it still gives me errors, only they say:

"sea_pirate_spawn_point" not defined
#5
Tutorials / Sea Battles
January 04, 2010, 08:21:51 PM
Change into a constant?  How?

Also, has anyone had any problems during a land battle it keeps saying "[Debug Line Reached]
#6
Tutorials / Sea Battles
December 30, 2009, 11:47:36 PM
Sorry for the necro, but....

It keeps saying that (store_random,":spawn_point",num_sea_pirate_spawn_points),

is not defined.  I've gone to party_templates.py and checked, and the spawn points were sea_pirate_spawn_point
and
sea_pirate_spawn_point_2
and
sea_pirate_spawn_point_3

so I tried changing them in the script and it still didn't work.  Any help?  Thanks!