Suggestions? Or Ideas?

#8
OK, thankfully timers continue to gain time as you move around maps (sometimes thats a pain but oh well).

Keep in mind whenever you use timers they are shared, so if youre going to set up a timer for this and allow the player to wander about aimlessly within your game world, you probably dont want any other map events working on this timer.

Lets use Timer3, since its the last of the 4.

OK, you will need an event that measures the time of the timer.

Create an event that is always on, this event should include one leaf that basically is set up as:

"Set Timer Value in Counter"
Use Timer 3 as the timer to set the value based on and create a new event counter to track the time...call it something like 'blacksmith timer'

Ok thats it for that event...so what this will do is it will always store the value of timer3 as the value for the counter named 'blacksmith timer'...so however long the timer has been running, that is the value of this counter.

OK now create the event where you give the blacksmith your sword. ‎ In that event you should do a few things.

#1 alter a specific counter that controls the blacksmith's dialog (call it "blacksmith chat" or something similar), so that when you inspect he may say something like "come back later, im not finished".
#2 begin timer3
#3 move forward one leaf (this is important else the timer will continually restart)

OK, so now lets say the blacksmith's dialog is based on this 'blacksmith chat' counter. ‎ Maybe to begin with its at 0 and he will progress to the dialog to where he requests the sword.

Upon request lets set the counter value for it to = 1...now have a dialog set up for the blacksmith that will say the 'leave me alone' stuff while counter =1 and you interact.

Now...to get the sword back from him...require that counter to be > 1.

So we need to create another event. ‎ Keep in mind SOM sets counter values based on timers in whole second increments...so if you want the player to wait 15 minutes...you would do an always on event that when counter value of "blacksmith timer" > 900 (you dont want to equal 900, you want it greater than 900 just in case youre not on the exact map the event will be taking place when the timer hits 900) you raise the value of 'blacksmith chat' to 2.

Now when you go back to the blacksmith, his chat counter will be at 2 and he will give you back your sword and begin a new dialog.

Hope this helps.
- Todd DuFore (DMPDesign)
Site Founder
Reply



Messages In This Thread
Suggestions? Or Ideas? - by Verdite - 2011-01-26, 11:58 PM
Re: Suggestions? Or Ideas? - by dmpdesign - 2011-01-27, 03:50 PM
Re: Suggestions? Or Ideas? - by Verdite - 2011-01-27, 05:39 PM
Re: Suggestions? Or Ideas? - by dmpdesign - 2011-01-27, 05:50 PM
Re: Suggestions? Or Ideas? - by dmpdesign - 2011-01-27, 05:51 PM
Re: Suggestions? Or Ideas? - by Verdite - 2011-01-28, 12:59 PM
Timer help please - by Verdite - 2011-04-14, 12:44 AM
Re: Suggestions? Or Ideas? - by dmpdesign - 2011-04-14, 01:24 AM
Re: Suggestions? Or Ideas? - by HwitVlf - 2011-04-14, 01:35 AM
Re: Suggestions? Or Ideas? - by Verdite - 2011-05-21, 02:57 PM
Re: Suggestions? Or Ideas? - by dmpdesign - 2011-05-22, 05:12 PM
Re: Suggestions? Or Ideas? - by Verdite - 2011-05-22, 05:40 PM
Re: Suggestions? Or Ideas? - by dmpdesign - 2011-05-23, 01:31 AM
Re: Suggestions? Or Ideas? - by Verdite - 2011-05-23, 11:35 AM
Re: Suggestions? Or Ideas? - by scott - 2011-05-24, 02:01 PM
Re: Suggestions? Or Ideas? - by Verdite - 2011-05-24, 03:18 PM
Re: Suggestions? Or Ideas? - by scott - 2011-05-24, 04:35 PM



Users browsing this thread:
1 Guest(s)