RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Moving Event Over Hero For RPGM2k3 (RESOLVED)

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 87
Language Teacher/translator
This is crazy i just add the exact same problem ^-^Of course me it's for RPGM2k3.

My problem is that i have made a "Filling up Bar" kind that fill up each time the player input a specific key.

Once this key is pressed, the hero change sprite and some timer variable calculate the time he is doing this then store this into another variable.This new variable Value is divided and after reaching a selected amount of time passed doing this, add 1 into another new variable(let's call it the "DUMMY" Variable.

The Event that is used to make the bar filling(change the sprite using 12 diffrent page on the event for the 12 difrent filling level of this bar) so let each page switch depending the variable of the Dummy value that can be set from 1 to 12 with the Timer thing said earlier. once the dummy is at LV12 it gives a new level to another Variable(A skill) then take the value of dummy -12(so that if someone do it for like a full day and that there is a huge amount stored in the Dummy that for each 12 value on the dummy,will raise 1 level in the skill(so if you have let say 30 stored in the dummy it will gives 2 level then put the Bar metter up to 6.

 :tpg: Ok that may sounds hard to understand if you have no clue how the variable are working but anyways let's get to my main question (I just wanted to put you guys in the idea of what i'M working on)

-QUESTION: The bar Sprite is stored on an Event that i just explain you earlier. What would be the best way to make this even Appear over the hero considering you can use this special Keypress from anyware in the game(or so). That mean that i want that each time i press the button this Event to appear, chow the progress, display leveling progress if so then disapear back.

Any idea how can this be done (always considering the player can be anywere in the map and that once this button is pressed, the caracter change sprite, and then is not moving till another keypress is done(using arrow so once the Hero move, he get back his old sprite, this process stop, you see the improvement on the bar and the Bar Event will need to disapear)

I just need to know how to move an event to the hero regardless on where he is and i'll take care to incorporate it to my main codes ^-^ v

Thanks for your help in advance!

Elistios
« Last Edit: February 25, 2007, 09:20:36 PM by Elistios »

***
Rep:
Level 88
have you tried setting variables that correspond to the x/y coordinates of the hero? that's how i got it to work a slightly different way in XP :)
"Facts are useless. You could use facts to prove anything that's even remotely true." Homer Jay Simpson

"I do not know what weapons WWIII will be fought with but i know WWIV will be fought with sticks and stones" Albert Einstein

"It's better to have loved and lost than never to have loved at all." from In Memoriam, by Alfred, Lord Tennyson.

"all your base are belonging to us!" awful fantasy 3

"the grapes damb it, it's alway's the grapes!"

Funny anagrams:
Desperation=A rope ends it
Mother in law=Woman hitler
Lottery machine=Money lost in 'em
Election results=Lies lets recount
Dormitory=Dirty room
Snooze alarms=Alas! No more Z's
Eleven plus two=Twelve plus one
Cosmetic surgery="Yes, I correct mugs."
The IRS=Theirs!
Public relations=Crap, built on lies
Astronomer=Moon starer
Dementia="Detain me."
Internet chat rooms=The moron interacts
The eyes!=They see!

Currently making:
http://rmrk.net/index.php/topic,13132.0.html

**
Rep:
Level 87
Language Teacher/translator
Yeah--- that sounds like a way of doing it i'll go have some test and try and see what can be done about this thanks for the idea. ^-^ v

Elistios

**
Rep:
Level 87
Language Teacher/translator
SOLVED!!

Thanks Atracious !

Guess the both of use will be a great help to each other ^-^ finaly some RPGM2k3 adept lol

Thanks Again!

Elistios
« Last Edit: February 25, 2007, 07:20:48 AM by Elistios »

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
Hey Elistios, can you please add [RESOLVED] to topic title so people like me know this question has been solved. Thanks.
Watch out for: HaloOfTheSun

**
Rep:
Level 87
Language Teacher/translator
Well I'm back again, the first problem to move the event to the Hero is solved but, not i would like this event to move to the hero from anywere (like from any maps) to my Hero.

Any idea? I've already try to copy and past my event to a new map and rename it the same name as the original Event but sadly it's not working.

Basicaly i imput a Key(stored in Common Event Paralelle process)that make this even come to the Hero location. It works just perfect when on the same map as this specific event put once i switch map, the original event is not comming from a map to another.

Your Help and sugestion will be grantly apreciated!

Thanks!

Elistios

***
Rep:
Level 88
that's trang for mine when i went to a different room i used a copy....i'll check mine and see what i did.

[edit:]i checked my code and both are exactly the same....maybe post your code so i can check it.
« Last Edit: February 25, 2007, 07:04:47 PM by atracious »
"Facts are useless. You could use facts to prove anything that's even remotely true." Homer Jay Simpson

"I do not know what weapons WWIII will be fought with but i know WWIV will be fought with sticks and stones" Albert Einstein

"It's better to have loved and lost than never to have loved at all." from In Memoriam, by Alfred, Lord Tennyson.

"all your base are belonging to us!" awful fantasy 3

"the grapes damb it, it's alway's the grapes!"

Funny anagrams:
Desperation=A rope ends it
Mother in law=Woman hitler
Lottery machine=Money lost in 'em
Election results=Lies lets recount
Dormitory=Dirty room
Snooze alarms=Alas! No more Z's
Eleven plus two=Twelve plus one
Cosmetic surgery="Yes, I correct mugs."
The IRS=Theirs!
Public relations=Crap, built on lies
Astronomer=Moon starer
Dementia="Detain me."
Internet chat rooms=The moron interacts
The eyes!=They see!

Currently making:
http://rmrk.net/index.php/topic,13132.0.html

**
Rep:
Level 87
Language Teacher/translator
Thanks dude! By tring and make you a demo of what i was talking about i just figured out what went wrong.

I have just understand that in each map, Event# restart from 0 and goes up again for each individual map.

In my project, i have about 20 diffrent maps already filled with event. Here where i was wrong, i have a "TEST LAB" or so i call it. This is a map where i do my test and tryout for some new coding that i'm making or where i want to do Variable test and make sure everything is doing fine.

So here is the point, i had 6 event in this "TEST LAB" map whitch where i have put
a new event (Event #0003) then i have done some test with this event to move it to my hero than i have coded my Key input so that EVENT #0003 would come to my hero by pressing a key.

The Heck is that i copied and pasted this Event #0003 to a diffrent map(where i already have tones of Event setted up. So the new Event# on this other map was #0045 that i have renamed Event #0003 but without success. Then i have realise that it's as simple as i need to take my real Event #0003 that was already used in this map, delete it, then past my original Event from the "TEST LAB" and as the Event #0003 was deleted it then comes first on the next Event distribution partern so now i have put my Event #0003 from the "TEST LAB" and store it back in the real Event #0003 of the other map and now it works just perfect!

So if i want this Key input to bring up my event back to my hero from anywhere in the maps, i simply have to make sure that the Event used for my "To be moved Event on keypress" got stored in the same one as in my code so in this case Event#0003 and have to make sure to store it there for each and every map i want this to be working and simply leave the map without any Event #0003 if i dont want it to be done. ^-^ v

Thanks again!

Elistios