Hello

#53
OK the setup for this is relatively straight forward, but you'll have to figure out just exactly how many denominations of gold you want to dispense. ‎ Lets assume the answer is 3....in the amounts of 50 gold, 100 gold and 300 gold.

We need two events...and a counter to track things.

Lets call the counter "gold measure".

In the first event, we give the counter a number randomly.

So, make the event 'always on' and use the 'generate random counter value' command and apply it to the "gold measure" counter. ‎ Make the max value a 3, meaning SOM will randomly pick a number of 1, 2 or 3. ‎ (You could go higher like 60 and make 1-20 equal to 50 gold for example, but it really shouldnt change things much).

Now if you don't want this counter constantly changing every second, also add the 'control active leaf' command and tell it to move forward in this event, and that will lock whichever counter value was selected.

OK so we have our counter being randomly generated...now we need the inspect a bag event.

create a second event on the bag and have it activated upon inspecting the bag. ‎ We will process the event commands as follows:


IF (counter value =1)
‎  ‎ Change Player Parameter (amount of gold increased by 50)
‎  ‎ Display Message (you found 50 gold)
‎  ‎ Otherwise
‎  ‎  ‎  ‎  If (Counter value =2)
‎  ‎  ‎  ‎  ‎  ‎  ‎ Change Player Parameter (amount of gold increased 100)
‎  ‎  ‎  ‎  ‎  ‎  ‎ Display Message (you found 100 gold)
‎  ‎  ‎  ‎  ‎  ‎  ‎ Otherwise
‎  ‎  ‎  ‎  ‎  ‎  ‎  ‎  ‎  If (Counter value =3)
‎  ‎  ‎  ‎  ‎  ‎  ‎  ‎  ‎  ‎  ‎  ‎ Change Player Parameter (amount of gold increased 300)
‎  ‎  ‎  ‎  ‎  ‎  ‎  ‎  ‎  ‎  ‎  ‎ Display Message (you found 300 gold)
‎  ‎  ‎  ‎  ‎  ‎  ‎  ‎  ‎  End If
‎  ‎  ‎  ‎  End If
End If
Control Active Leaf (this event move forward)

Then on the second leaf juts do a display message (empty).

Thats all there is to it, enjoy.
- Todd DuFore (DMPDesign)
Site Founder
Reply



Messages In This Thread
Hello - by Verdite - 2010-02-08, 10:41 PM
Re: Hello - by dmpdesign - 2010-02-09, 02:25 AM
Re: Hello - by Verdite - 2010-02-09, 01:32 PM
Re: Hello - by Madison Lastrega - 2010-02-09, 09:38 PM
Re: Hello - by HolyDiver - 2010-02-10, 02:45 PM
Re: Hello - by Verdite - 2010-02-11, 01:04 PM
Re: Hello - by dmpdesign - 2010-02-11, 05:33 PM
Re: Hello - by Madison Lastrega - 2010-02-11, 07:57 PM
Re: Hello - by Verdite - 2010-02-24, 05:32 PM
Re: Hello - by HolyDiver - 2010-02-24, 10:29 PM
Re: Hello - by dmpdesign - 2010-02-24, 11:24 PM
IF option help - by Verdite - 2010-02-28, 01:19 PM
Re: Hello - by dmpdesign - 2010-02-28, 04:52 PM
Re: Hello - by Verdite - 2010-02-28, 05:13 PM
Re: Hello - by Verdite - 2010-02-28, 05:16 PM
Object barriers? - by Verdite - 2010-03-03, 04:54 AM
Re: Hello - by dmpdesign - 2010-03-03, 05:22 AM
Re: Hello - by HolyDiver - 2010-03-03, 06:38 AM
Re: Hello - by Madison Lastrega - 2010-03-04, 08:28 AM
Re: Hello - by HolyDiver - 2010-03-04, 10:48 AM
Re: Hello - by Madison Lastrega - 2010-03-04, 06:01 PM
Re: Hello - by Verdite - 2010-03-04, 07:32 PM
Re: Hello - by dmpdesign - 2010-03-04, 08:57 PM
Re: Hello - by Verdite - 2010-03-05, 05:24 PM
Re: Hello - by dmpdesign - 2010-03-05, 07:21 PM
Re: Hello - by HolyDiver - 2010-03-05, 08:33 PM
Re: Hello - by Verdite - 2010-03-05, 10:06 PM
Re: Hello - by dmpdesign - 2010-03-06, 03:51 AM
Re: Hello - by Verdite - 2010-03-06, 11:41 AM
Re: Hello - by HolyDiver - 2010-03-06, 12:28 PM
Re: Hello - by Verdite - 2010-03-09, 10:07 PM
Item to equipment? Help! - by Verdite - 2010-03-10, 09:10 PM
Re: Hello - by Madison Lastrega - 2010-03-11, 01:54 AM
Re: Hello - by HolyDiver - 2010-03-11, 08:08 PM
Re: Hello - by Verdite - 2010-03-14, 01:13 PM
I quiz thee - by Verdite - 2010-03-22, 09:20 PM
Re: Hello - by dmpdesign - 2010-03-23, 01:13 AM
Re: Hello - by Verdite - 2010-03-24, 01:30 PM
Re: Hello - by dmpdesign - 2010-03-24, 02:57 PM
Re: Hello - by Verdite - 2010-03-25, 01:19 PM
Ranged weapons - by Verdite - 2010-04-06, 05:11 PM
Re: Hello - by HolyDiver - 2010-04-06, 07:06 PM
Re: Hello - by dmpdesign - 2010-04-07, 01:03 AM
Re: Hello - by Verdite - 2010-04-07, 02:53 PM
Re: Hello - by dmpdesign - 2010-04-07, 08:56 PM
Re: Hello - by Madison Lastrega - 2010-04-08, 01:35 AM
Re: Hello - by HolyDiver - 2010-04-08, 01:52 AM
Re: Hello - by Verdite - 2010-04-08, 12:20 PM
Random counter values... - by Verdite - 2010-04-14, 01:45 PM
Re: Hello - by dmpdesign - 2010-04-14, 05:54 PM
Re: Hello - by Verdite - 2010-04-14, 07:27 PM
Re: Hello - by HolyDiver - 2010-04-15, 02:23 AM
Re: Hello - by dmpdesign - 2010-04-15, 02:25 AM
Re: Hello - by dmpdesign - 2010-04-15, 02:31 AM
Re: Hello - by HolyDiver - 2010-04-15, 08:48 AM
Re: Hello - by Verdite - 2010-04-16, 08:14 PM
Item in project. (spoiler) - by Verdite - 2010-04-21, 01:10 PM
Re: Hello - by HolyDiver - 2010-04-21, 01:48 PM
Re: Hello - by Verdite - 2010-04-21, 02:53 PM
Re: Hello - by Hguols - 2010-04-22, 01:56 AM
Re: Hello - by Verdite - 2010-05-16, 02:02 PM
Re: Hello - by Madison Lastrega - 2010-05-17, 08:06 AM
Re: Hello - by Verdite - 2010-05-18, 07:14 PM
Re: Hello - by HolyDiver - 2010-05-19, 09:23 AM
Re: Hello - by Verdite - 2010-05-20, 12:35 PM
Re: Hello - by HolyDiver - 2010-05-20, 09:22 PM
Re: Hello - by HolyDiver - 2010-05-20, 09:50 PM
Re: Hello - by Verdite - 2010-05-21, 10:37 AM
Re: Hello - by Madison Lastrega - 2010-05-21, 08:08 PM
Re: Hello - by dmpdesign - 2010-05-21, 09:23 PM
Re: Hello - by HolyDiver - 2010-05-22, 05:04 AM
Re: Hello - by Madison Lastrega - 2010-05-22, 05:39 AM
Re: Hello - by Verdite - 2010-05-22, 08:59 PM
Re: Hello - by dmpdesign - 2010-05-24, 12:44 AM
Re: Hello - by Madison Lastrega - 2010-05-24, 07:46 PM
Re: Hello - by Verdite - 2010-05-24, 09:22 PM
Animation - by Verdite - 2010-05-26, 08:13 PM
Re: Hello - by Madison Lastrega - 2010-05-27, 07:19 AM
Re: Hello - by HolyDiver - 2010-05-27, 09:07 PM
Re: Hello - by Verdite - 2010-05-28, 11:14 AM
Re: Hello - by Madison Lastrega - 2010-05-28, 06:01 PM
Re: Hello - by Verdite - 2010-05-29, 12:04 PM
Custom map pieces - by Verdite - 2010-06-03, 01:08 PM
Re: Hello - by dmpdesign - 2010-06-03, 01:17 PM
Re: Hello - by HolyDiver - 2010-06-03, 10:46 PM
Quick update. - by Verdite - 2010-07-04, 04:54 PM
Re: Hello - by dmpdesign - 2010-07-05, 01:55 AM
Re: Hello - by Verdite - 2010-07-05, 11:14 AM
Re: Hello - by Verdite - 2010-07-08, 01:34 PM
Re: Hello - by dmpdesign - 2010-07-08, 04:00 PM
Re: Hello - by Verdite - 2010-07-08, 04:40 PM
Re: Hello - by dmpdesign - 2010-07-08, 07:09 PM
Re: Hello - by Verdite - 2010-07-08, 09:24 PM
Re: Hello - by dmpdesign - 2010-07-09, 05:54 PM
Re: Hello - by Verdite - 2010-07-10, 07:05 PM
Re: Hello - by Verdite - 2010-07-11, 01:58 PM
Update! - by Verdite - 2010-07-21, 11:02 AM
Re: Hello - by dmpdesign - 2010-07-21, 01:07 PM
Re: Hello - by Verdite - 2010-07-21, 07:26 PM
Re: Hello - by dmpdesign - 2010-07-22, 01:27 AM
Wpn Problem - by Verdite - 2010-07-25, 05:10 PM
Re: Hello - by dmpdesign - 2010-07-25, 08:59 PM



Users browsing this thread:
4 Guest(s)