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
   Immense Events DerVVulfman 17 19,343 10-28-2024, 03:39 AM
Last Post: DerVVulfman
   Refreshable Events XP kyonides 1 1,342 06-03-2023, 08:27 AM
Last Post: kyonides
   Events Always Under DerVVulfman 3 7,572 02-23-2015, 11:06 PM
Last Post: Taylor
Brick  Allow menu during events - for Visual Novels Taylor 2 7,947 08-25-2011, 12:41 PM
Last Post: Taylor



Users browsing this thread: 1 Guest(s)