Jump to content
Rpg²S Forum

tidus26

Utenti
  • Posts

    1,055
  • Joined

  • Last visited

1 Follower

About tidus26

  • Birthday 05/26/1991

Contact Methods

  • Website URL
    http://
  • ICQ
    69

Profile Information

  • Sesso
    Maschio
  • Provenienza
    Tokyo

Previous Fields

  • Abilità
    Adepto

tidus26's Achievements

Alex (Rm2k)

Alex (Rm2k) (5/7)

  1. E' un bug noto anche da altre persone che hanno provato lo script, tranquillo, chiedevo se qualcuno riusciva a risolverlo :)
  2. Riesci a convertirlo per rpg maker vx ace? sarebbe utile :)
  3. Hei ciao! puoi dare un'occhiata a questo mio topic? http://www.rpg2s.net/forum/index.php/topic/18928-bug-event-chase-player-yanfly/?do=findComment&comment=358317 Leggilo, se riesci a risolvere questo piccolo problema ti pago in rens ^^
  4. #============================================================================== # # ▼ Yanfly Engine Ace - Event Chase Player v1.00 # -- Last Updated: 2012.01.05 # -- Level: Normal # -- Requires: n/a # #============================================================================== $imported = {} if $imported.nil? $imported["YEA-EventChasePlayer"] = true #============================================================================== # ▼ Updates # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # 2012.01.05 - Started Script and Finished. # #============================================================================== # ▼ Introduction # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # This script allows you to make events that will chase the player or flee from # the player when the player enters within range of the event or when the event # sees the player. # #============================================================================== # ▼ Instructions # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # To install this script, open up your script editor and copy/paste this script # to an open slot below ▼ Materials/素材 but above ▼ Main. Remember to save. # # ----------------------------------------------------------------------------- # Move Script Call - Open up the script call in the event move menu and use: # ----------------------------------------------------------------------------- # Add these variable changes to an event's move route to use them. # # @chase_range = x # Event will chase the player after reaching x range. # # @flee_range = x # Event will flee from player after reaching x range. # # @chase_speed = x # Event will move at x speed when chasing. # # @flee_speed = x # Event will move at x speed when fleeing. # # @sight_lock = x # Event will chase/flee from player for x frames. # # @alert_balloon = x # Event will show ballon ID x when chasing or fleeing. # # @see_player = true # For events that require them to see the player first, use this script call # inside the movement boxes. This does not follow line of sight rules, which # means if there's a rock blocking you and the event, it will still see you. # #============================================================================== # ▼ Compatibility # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # This script is made strictly for RPG Maker VX Ace. It is highly unlikely that # it will run with RPG Maker VX without adjusting. # #============================================================================== module YEA module EVENT_CHASE #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # - General Settings - #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # These settings adjust some general settings regarding chasing and fleeing # events. Adjust them as you see fit. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # The number of frames before a balloon can show up again on the same # event. This is to prevent a massive balloon spamming. 60 frames = 1 sec. # By default, 120 frames is 2 seconds. ALERT_TIMER = 120 # This is the default number of frames for how long the event will chase or # flee from the player if used with @see_player = true. To change the amount # individually for each event, use @sight_lock = x where x is a number. # By default, 300 frames is 5 seconds. SIGHT_LOCK = 300 end # EVENT_CHASE end # YEA #============================================================================== # ▼ Editting anything past this point may potentially result in causing # computer damage, incontinence, explosion of user's head, coma, death, and/or # halitosis so edit at your own risk. #============================================================================== #============================================================================== # ■ Game_Event #============================================================================== class Game_Event < Game_Character #-------------------------------------------------------------------------- # alias method: update_self_movement #-------------------------------------------------------------------------- alias game_event_update_self_movement_ecp update_self_movement def update_self_movement return if $imported["YEA-StopAllMovement"] && Switch.stop_npc_movement update_chase_distance update_flee_distance if @stop_count > 0 && @chase_player move_type_toward_player elsif @stop_count > 0 && @flee_player move_type_away_player else game_event_update_self_movement_ecp end update_alert_balloon end #-------------------------------------------------------------------------- # new method: update_chase_distance #-------------------------------------------------------------------------- def update_chase_distance return if @erased return if @chase_range.nil? dis = distance_x_from($game_player.x).abs dis += distance_y_from($game_player.y).abs if chase_conditions @chase_player = true @move_speed = @chase_speed unless @chase_speed.nil? else @chase_player = false @move_speed = @page.move_speed @alert_player = false if @alert_timer <= 0 end end #-------------------------------------------------------------------------- # new method: chase_conditions #-------------------------------------------------------------------------- def chase_conditions dis = distance_x_from($game_player.x).abs dis += distance_y_from($game_player.y).abs return true if @alert_lock > 0 return true if dis <= @chase_range and see_player? if dis <= @chase_range && @see_player != true @alert_lock = @sight_lock if @sight_lock != nil && @sight_lock > 0 return true end return false end #-------------------------------------------------------------------------- # new method: update_flee_distance #-------------------------------------------------------------------------- def update_flee_distance return if @erased return if @flee_range.nil? dis = distance_x_from($game_player.x).abs dis += distance_y_from($game_player.y).abs if flee_conditions @flee_player = true @move_speed = @flee_speed unless @flee_speed.nil? else @flee_player = false @move_speed = @page.move_speed @alert_player = false if @alert_timer <= 0 end end #-------------------------------------------------------------------------- # new method: flee_conditions #-------------------------------------------------------------------------- def flee_conditions dis = distance_x_from($game_player.x).abs dis += distance_y_from($game_player.y).abs return true if @alert_lock > 0 return true if dis <= @flee_range and see_player? if dis <= @flee_range && @see_player != true @alert_lock = @sight_lock if @sight_lock != nil && @sight_lock > 0 return true end return false end #-------------------------------------------------------------------------- # new method: update_alert_balloon #-------------------------------------------------------------------------- def update_alert_balloon return if @erased @alert_timer = 0 if @alert_timer.nil? @alert_lock = 0 if @alert_lock.nil? @alert_lock -= 1 if @alert_lock >= 0 return if @alert_balloon == nil || @alert_balloon == 0 if (@chase_player || @flee_player) && !@alert_player @balloon_id = @alert_balloon @alert_player = true @alert_timer = YEA::EVENT_CHASE::ALERT_TIMER end @alert_timer -= 1 if @alert_player end #-------------------------------------------------------------------------- # new method: see_player? #-------------------------------------------------------------------------- def see_player? return false if @see_player != true sx = distance_x_from($game_player.x) sy = distance_y_from($game_player.y) if sx.abs > sy.abs direction = sx > 0 ? 4 : 6 else direction = sy > 0 ? 8 : 2 end if direction == @direction if @sight_lock == nil || @sight_lock <= 0 @sight_lock = YEA::EVENT_CHASE::SIGHT_LOCK end @alert_lock = @sight_lock return true end return false end #-------------------------------------------------------------------------- # new method: move_type_away_player #-------------------------------------------------------------------------- def move_type_away_player sx = @x - $game_player.x sy = @y - $game_player.y if sx.abs + sy.abs >= 20 move_random else case rand(6) when 0..3; move_away_from_player when 4; move_random when 5; move_forward end end end end # Game_Event #============================================================================== # # ▼ End of File # #============================================================================== Il bug è che se l'evento una volta che ti ha raggiunto e come attivazione dell'evento stesso metti tocco con evento (o gli altri, è uguale) non è possibile disattivare lo script ne disattivando la switch della pagina stessa o cambiando pagina tramite switch (insomma continua a seguirti all'infinito senza smettere), se possibile, non penso sia difficile, qualcuno potrebbe che al cambiar pagina evento o disattivando la pagina stessa o con un call script sia possibile disattivare lo script per l'id dell'evento desiderato?
  5. Non l'ho abbandonato ma è fermo da tanti mesi, visto che attualmente il tool (XP) non mi permette di fare quello che volevo, lagga tutto ed è ingiocabile, ma la struttura c'è. Sono passato al vx ace e sto lavorando a qualcosa che renderò commerciale.
  6. Chi se lo ricorda ancora? :) http://www.rpg2s.net/forum/index.php/topic/10786-lands-siege-epic-game/
  7. Certo che no, come ho detto ancora non ho scritto tutte le leggi, ne devo aggiungere altre, come alcune di queste che hai appena elencato. In alcune tipo "stupro, pedofilia" è inutile mettercele visto che non si potrà fare nel gioco, non è un simulatore di vita Lands Siege xD.
  8. Spiego meglio: Se uccidiamo un nostro compagno abbiamo un mese di carcere, se li tradiamo, invece, vai in carcere per 2 giorni. Se li uccidiamo + tradiamo = 1 mese e 2 giorni. Quindi: No, non lo è e non ci sta scritto da nessuna parte. La pena potrà aumentare di qualche giorno, ma raramente supera la pena del "uccidere i propri compagni" Ogni volta che uccide qualcuno di innocente un mese va ad aggiungersi, esempio: ne uccido 1 = un mese di carcere, ne uccido 5 = 5 mesi di carcere. Quindi dipende da quanti ne uccidete e da chi uccidete, ci sono moltissime variazioni...
  9. Nella legge: "Non tradire i proprio compagni", la pena può variare, anche se non è scritta, dipende sempre da come li tradisci, perchè se di mezzo ci sono morti allora si applica la legge "non uccidere i proprio compagni", se commetti più pene, esse si sommano. Se invece li tradiamo in un certo modo, scatenando casini e frustrazioni allora la pena può anche aumentare considerevolmente. Comunque, dite che la grandezza del font è troppo piccolo? è leggibile la parte scritta in nero?
  10. Io la vedevo troppo cubettosa, non mi piace molto come era prima, almeno così è più naturale. E' da cambiare, infatti per ora ho lasciato quello di default. Edit: http://i46.tinypic.com/2heagp3.png E' lo stesso font che uso per i messaggi.
  11. Alcune news: Aggiornata la mappa della stanza del protagonista: http://i48.tinypic.com/mm7m1v.png Nuove sezione che metterò in prima pagina: Le 10 leggi fondamentali di Zokh (per ora sono 10, poi forse ne metterò altre, le leggi saranno scritte in un libro che si potrà portare con se) http://i46.tinypic.com/spbtvl.png
  12. Stile Zokh, pure la locanda è così, lo screen lo trovate nei vecchi screen contest. Nelle altre terre sarà più classica, ma in ogni terra lo stile cambia.
  13. Qualche news, nuova mappa: Stanza del protagonista assegnata automaticamente (dopo essere entrato nella città imperiale) se si sceglie la terra di Zokh http://i49.tinypic.com/2ebheac.png - Aggiunta la possibilità che gli npc passino da una mappa all'altra (non tutti) - Risolto il bug: le finestre non si aggiornavano correttamente a seconda dell'orario. (notte: finestre con sfondo notturno, giorno: etc... - Risolto il bug: le luci non si aggiornavano correttamente a seconda dell'orario.
  14. Si, sono tornato, dopo mesi e mesi di assenza posso dirvi che sono ufficialmente tornato tra di voi, perchè questa lunga assenza? Estate/impegni/problemi di connessione e molto altro, ho avuto poco tempo di lavorare su questo fantastico gioco, Lands Siege, se in questi giorni non vedete mie nuove risposte significa che ho problemi di connessione, per cui non potrò aggiornarvi immediatamente. Tornando a parlare di Lands Siege, durante il mio periodo di assenza dal forum ho lavorato molto poco sul progetto, però ho risolto bug e aggiunto qualche nuova mappa, nulla di speciale. Spero di continuarlo trovando anche aiuti esterni, sopratutto scripter, il lavoro da svolgere è molto, spero di riuscire a finirlo prima o poi.
  15. Guardate questo mini fumetto comico: http://comic.naver.com/webtoon/detail.nhn?...o=31&weekda Per leggerlo basta che scorrete lentamente in giù la pagina. Mi raccomando leggetelo tutto, è corto.
×
×
  • Create New...