RMX-OS Re-spawning Events (resolved)

Started by ojp2010, September 05, 2010, 08:34:48 pm

Previous topic - Next topic

ojp2010

September 05, 2010, 08:34:48 pm Last Edit: September 07, 2010, 09:33:46 am by ojp2010
I am using RMX-OS, for several quest players will need to find items on the map and bring them back to the quest giver. I am trying to make the item events re-spawn after two minutes. I.E. A player will see a flower pick it up, the flower will disappear for two minutes, then reappear so that a player can again pick up the flower. Wash and repeat. I can't seem to get it to function right can anyone help me?

ShadowPierce

->I don't use RMX-OS, but since it uses a server, I hope this works:

Make 3 pages on 1 event:

Page1
Set its Self switch to A
@>Change Items: [item] +1
@>Control Self Switch: B=ON

Page2
Set its Self switch to B
@>Wait: 999 frame(s)
@>Wait: 999 frame(s)
@>Wait: 402 frame(s)
@>Control Self Switch: A=ON

Page3
Make it an autorun event
@>Control Self Switch: A=ON
@>Erase Event

I'm kinda in a hurry right now... I'll just troubleshoot it later... Hope it works! :D




Spoiler: ShowHide
Quote from: Blizzard on February 16, 2011, 03:44:48 pmThere you go. It's the proof that SDK is crap. It's incompatible with itself.
3DS Friend Code: ShowHide
1161-0627-9890

ojp2010

September 05, 2010, 09:08:09 pm #2 Last Edit: September 05, 2010, 09:11:04 pm by ojp2010
Does the third page need a graphic?

edit: nvm for some reason the event isn't even showing up on the map. I don't know, I am testing more.

Aqua

Page1
@>Change Items: [item] +1
@>Control Self Switch: A=ON

Page2
Set its Self switch to A
@>Wait: 999 frame(s)
@>Wait: 999 frame(s)
@>Wait: 402 frame(s)
@>Control Self Switch: A=OFF

Though... using wait frames for that long isn't recommended.

ShadowPierce

September 05, 2010, 09:14:55 pm #4 Last Edit: September 05, 2010, 09:16:16 pm by ShadowPierce
->Forgot to tell you that page1 is action button, page2 is parallel & page3 is autorun... If it doesn't show, experiment on it a bit... I'll try to help later... :haha:



EDIT:
->Aqua's looks better... Her page1 should be action button, & the second one is parallel... :haha:



Spoiler: ShowHide
Quote from: Blizzard on February 16, 2011, 03:44:48 pmThere you go. It's the proof that SDK is crap. It's incompatible with itself.
3DS Friend Code: ShowHide
1161-0627-9890

Aqua

Thanks for being unlazy for me, Shadow XD

ShadowPierce

->Haha, sure NP... :haha: @Aqua

Post here bugs & I'll try to fix it later, in about 10-12 hours... :P @ojp



Spoiler: ShowHide
Quote from: Blizzard on February 16, 2011, 03:44:48 pmThere you go. It's the proof that SDK is crap. It's incompatible with itself.
3DS Friend Code: ShowHide
1161-0627-9890

ojp2010

I got it working, but the problem is I need to do it with control switches, not self switches, when I can do. However, the second page isn't resetting without player interaction. I figure this is either RMX-OS or enhance mouse controller script that is causing the control switch parallel event not to work.

Aqua

Did you set it to parallel and wait the time?

ojp2010

September 05, 2010, 09:45:53 pm #9 Last Edit: September 05, 2010, 09:47:10 pm by ojp2010
Quote from: Aqua on September 05, 2010, 09:42:53 pm
Did you set it to parallel and wait the time?


Page 1  Action button
change items: Potion +1
control switch 0001 chest on

page 2 switch control 0001 chest on > parallel
wait 20
control 0001 chest off


I can see in my server that it is getting set to true, but after 20 it isn't setting to false.

ShadowPierce

Quote from: ojp2010 on September 05, 2010, 09:36:37 pm
I got it working, but the problem is I need to do it with control switches, not self switches, when I can do. However, the second page isn't resetting without player interaction. I figure this is either RMX-OS or enhance mouse controller script that is causing the control switch parallel event not to work.
->If it's gonna be a gathering system, each event would need a switch to match... EACH... That would take forever... It would be much better to use Self switches... And the 2nd page should be a parallel process... Try it by making the wait time about 5-10frames each...



EDIT:
->You need to set the whole page to Parallel, not the switch (I don't even know how that was possible)... Look at the lower left of the event editing box...



Spoiler: ShowHide
Quote from: Blizzard on February 16, 2011, 03:44:48 pmThere you go. It's the proof that SDK is crap. It's incompatible with itself.
3DS Friend Code: ShowHide
1161-0627-9890

ojp2010

Well I am using RMX-OS so if a one player picks up a flower then other players would see the flower still if I using self switches, where control switches if one player picks it up then other players will have to wait til it "spawns" back in to pick it up. Gives the world a more real effect. I don't know maybe there is a better way to do this? I am going to use it for a gather quest.

ShadowPierce

->Is that so? Never knew that feature from RMX-OS... Well, good luck on that... Just ask again & I'll try to answer later... :haha:



Spoiler: ShowHide
Quote from: Blizzard on February 16, 2011, 03:44:48 pmThere you go. It's the proof that SDK is crap. It's incompatible with itself.
3DS Friend Code: ShowHide
1161-0627-9890

ojp2010

It is a addon called Global Switches and Variables. Which makes that effect there is also another addon that shows server side what players are doing. Like using an event with a control switch would be showed as 'actor' set blah to true. Anyways, I don't think it will change back automatically with a parallel process with this script. I don't know though it could be another script called enhance mouse menu.

Aqua

Then get a global self-switch script? :D

ojp2010

I don't even know if such a script is out there, but the reason for global switches/variables is to gain such effect which is what I want. My only problem is that the event isn't turning back to false without help. I may post in the script topic to see if someone can help from there.