Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Copy Events XP
#11
Code:
  def command_end
    # Clear list of event commands
    @list = nil
    # If main map event and event ID are valid
    if @main and @event_id > 0
      # Unlock event
      $game_map.events[@event_id].unlock
    end
  end

OK, that means the event ID got copied by an internal variable but the event itself got... Skull deleted? Confused
Why it happened [some time] before reaching that point, remains a mystery. Detective
That's the only explanation I can think off the top of my head without getting more information on the issue.
Anyway, let Dog Wulfo help you fix it. Tongue sticking out
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply }
#12
BUMP
to version 1.4

Okay...

Well, I looked into it further.  The command_end method in the Interpreter class contains the 'unlock' parameter, but more was that kyonides made mention of an internal variable.  A clue?  Indeed.

The events that were copied were very much exact copies of the original event.  Unfortunately, that was the problem.  The copies were TOO exact.  The duplicates themselves contained data claiming to reside at the x/y coordinates of the original event.  But moreso, they still retained within them the original ID.   If there were fifteen events on the current map, and you created a duplicate, this 16th event should have an ID of 16 within. 

This was sadly not the case... at that time. Events need that internal ID value to function. While messages worked, event erasure, custom graphic changes for a specific 'copy' event would not take place, or anything specific to the event as an individual was non-functional

But now, the new code re-defines the ID of the event as well as its x/y coordinates within its structure before it is actively created and placed upon the map.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png] [Image: liM4ikn.png] [Image: fdzKgZA.png] [Image: sj0H81z.png]
[Image: QL7oRau.png] [Image: uSqjY09.png] [Image: GAA3qE9.png] [Image: 2Hmnx1G.png] [Image: BwtNdKw.png%5B]
Above are clickable links

Reply }
#13
Everything seems to work fine now. :)
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Choices Change Events kyonides 1 805 02-21-2024, 09:16 PM
Last Post: kyonides
   Refreshable Events kyonides 1 985 06-03-2023, 08:27 AM
Last Post: kyonides
   Immense Events DerVVulfman 11 17,701 06-07-2020, 03:45 AM
Last Post: DerVVulfman
   Events Always Under DerVVulfman 3 7,074 02-23-2015, 11:06 PM
Last Post: Taylor
   Victor Engine - Events Conditions Victor Sant 0 4,138 01-15-2012, 11:43 PM
Last Post: Victor Sant
Brick  Allow menu during events - for Visual Novels Taylor 2 7,480 08-25-2011, 12:41 PM
Last Post: Taylor



Users browsing this thread: