Page 1 of 1

Stop the Party and Using the Rest function

Posted: Sat Aug 24, 2013 6:28 am
by Eleven Warrior
hi guys..

I have a problem (LOL)

1 - I want to stop the party moving for a period of time then after say 1 Minute they can move again.
this connected to a Pressure Plate and a Timer I assume.. (This code by it's self)..

2 How do I use: (rest function activates, via a Pressure Plate like in the Dream of the original game) Text appears like (where are we etc....) + sound Effects.
After say (1 mins) a teleporter sends them to a new room on the same level. And the Party wakes up...

I have no idea how to code the 2 scripts above.. I have checked the routine in the Wine Merchants Script, but I don't understand how to use the Coding..
I have noticed in the the Sunset scripting the person uses coding to mahe the party rest and go into a Dream world..(awesome coding), but again I don't how to implement it..

Pls help (Eleven Warrior)
Thank You

Re: Stop the Party and Using the Rest function

Posted: Sat Aug 24, 2013 7:15 am
by msyblade
I can solve # 1 for you tomorrow or the next day. A script, courtesy of Mahric, many months ago. Very easy to implement. Trust me, you will be impressed by the pure simplicity of the vision he can summon regularly. #2 is literally 10 times more difficult. You would need the exclusive help of maybe 3 or 4 people that could pull that off in a convincing way. It is FAR more difficult than you imagine. Not trying to discourage you, but if it were me, I would attempt to find an alternative narrative. It has been done (and you could find it in Komag's "Master Quest" source files.) However, it is much testing and failing (ie:time), to understand what is limited by the engine on this topic.

Re: Stop the Party and Using the Rest function

Posted: Sat Aug 24, 2013 10:50 am
by Eleven Warrior
msyblade Thank you wery much bro...Sry guys for being a Pain in the Butt

It will be awesome the 1st Question in my post completed.. ahy thxs

I tried hard to understand how Komags script works but(OMG) it's so complex..and your right it is 10 x more complexing than I
could imagine..but if I could pull it off...MAN YEAH...

If you guys could help me on Question 2..man I would be ever so greatful..imam sry I ask for so much, but I am trying so hard to learn what
you guys have done. At 50 yrs of age imam a little slow sry..I remember all the games I played from my Vic 20, Atari St and Ste, Commdore 64 etc.. LOL

I have played all the Dungeon Master games, Lands Of Lores 1, 2, Legends Of Valour, Dugeon Keep, Questron 1 to 3, Ishar 1 to 2, Bards Tale 1,2,3 and OMG I have forgotten the rest.. Now I have played this Game I want to do what the rest have done Sir..as best as I can..

Mate I remember a time I could have a Shit. Shower and a Shave while the games were loading from me Tape Player (LOL)..

It's my nature to play RPG games..

Anyway Sry for rambling on help is most Welcome ahy...

PS: All your work is awesome the whole dam lot that you'se do

Eleven Warrior

Re: Stop the Party and Using the Rest function

Posted: Sat Aug 24, 2013 11:14 am
by Eleven Warrior
I am not trying to waste anyones time here.. I am trying very hard to complete this Mod as you have done guys..
Every waking moment I spend on creating my Mod..Thats why I ask for help I know my limits and without you guys I cannot get what I need..

I know you guys are the best at this, I have played your Mods and it Inspires me to do the same..

Have you seen the Mod The Lost Continent OMG it's just Awesome, the coding is so over my head WOW it's a piece of art well done guys...

There I go again..LOL.. On, on, and on...sry lol
So I Just want u to know Imma doing the best I can.. Thxs to you all..
THXS

PS: I have Zipped my Dungeon but not sure how to put it here so u can see what ima doing..

Eleven Warrior

Re: Stop the Party and Using the Rest function

Posted: Sat Aug 24, 2013 12:42 pm
by Eleven Warrior
Komag need ure help here Please

Thank you

Re: Stop the Party and Using the Rest function

Posted: Mon Aug 26, 2013 8:55 am
by Eleven Warrior
Hi Mysblade how r u..

How is the Coding going for the below Question?

1 - I want to stop the party moving for a period of time then after say 1 Minute they can move again.
this connected to a Pressure Plate and a Timer I assume.. (This code by it's self)..

Thxs

Re: Stop the Party and Using the Rest function

Posted: Mon Aug 26, 2013 2:53 pm
by msyblade
Hi buddy, got it ready for you. I'd like to say again, this is mahric's genius; I just latched on and used the hail out of it :)

Place this hook at the END of your init.lua:

Code: Select all

cloneObject{
   name = "party",
   baseObject = "party",

   onMove = function(self, dir)
      if (cMove:getValue() == 0) then
         return false
      end
         return true
   end,

Then make a counter in your dungeon named "cMove", and set it to "1". To stop the party, just hook a pressure plate or timer to DECREMENT the cMove counter to "0" (party will stop), and a timer set to whatever you need, to INCREMENT the counter back to "1" when you're ready.(party can move).
Use this same counter throughout the dungeon when you need to freeze the party, it's the only one you need, and it works across multiple floors. (Although timers from other floors will be slowed down, KEEP THAT IN MIND).

Hope this helps!

Re: Stop the Party and Using the Rest function

Posted: Tue Aug 27, 2013 12:40 pm
by Eleven Warrior
Hi Mysblade Thank you so much for the help...

This is my (init.lua) File.. If I add your coding in it wont that overright the first onMove function or the cloneObject.

I remember Diarmond saying this to me before, when he helped me with the (Sky System) and I have the Shop System in it as well..
I would like to add the following Functions as well but fear they will override both the Sky and Shop System (See below init.lua)..1 and 2..

Not sure how to add all the coding (plus your code) to my init.lua without Errors LOL..

import "mod_assets/gui/initgui.lua"

cloneObject {
name = "party",
baseObject = "party",
onDrawGui = function(g)
return gui.onDrawGui(g)
end,
onMove = function(self, dir)
skyScript.onMove(dir)
if (gui.globalVars["shopOn"]) then
return false
else
return true
end
end,
}

These are the two function I want to add if I can Thxs QuickBar and (2) SearchonFloor Modules..

1 - if ( search_script ~= nil and search_script.onDrawGui ~= nil ) then
search_script.onDrawGui(g);
end
end

2 - if ( qb_script ~= nil and qb_script.onDrawGui ~= nil ) then
qb_script.onDrawGui(g);
end

PS: Thxs once again for your time and how long till RRR2 comes out, it sounds cool...

Re: Stop the Party and Using the Rest function

Posted: Thu Aug 29, 2013 1:28 am
by msyblade
I think you can combine them all, just use a "comma" after the last "end" of each entry. mash em all together, then test each one to make sure they work. Let me know if it doesn't, and paste the new code :)