Hello

#51
Thanks Todd!
Reply

#52
You will want to be careful your hidden doors are facing in the correct direction. If setup correctly they will recess when opened from the false side / mesh more naturally with the wall. ‎ 
Reply

#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

#54
I believe that door uses yk42_1.txr


Attached Files
.bmp   yk42_1.bmp (Size: 65.05 KB / Downloads: 285)
- Todd DuFore (DMPDesign)
Site Founder
Reply

#55
If you don't generate / the random number at some earlier inconvenient point (beginning of the game even) the player can reload their save game until they get what they want (not as easy without save anywhere enabled)
Reply

#56
That is especially great info todd thank you. I did modify the texture but it hasnt shown yet unfortunately, ill have to do some searching. Yes i agree. However there is no saving in the menu and in the area with the money bags saving will be disabled, though thank you for pointing this out. Its very important that i balance my project.
Reply

#57
**spoiler alert**

Hello.

I havent revealed much about my project to anyone.

But this item i can include as one preview of many customs. You can find this item in the first release of my game.

Anyone who doesnt want to view it, shouldnt look below.

Verdite


Attached Files
.bmp   anon sword.bmp (Size: 225.05 KB / Downloads: 255)
Reply

#58
Please don't upload anymore BMP files to the internet (yes I'm an insensitive bastard) Ninja
Reply

#59
I save all my development pictures as BMP files. Please state why, and ill consider it.
Reply

#60
(2010-04-21, 02:53 PM)Verdite link Wrote: I save all my development pictures as BMP files. Please state why, and ill consider it.

There you go! ‎  ^_^
[Image: banner.gif]

Probable mucosal damage may contraindicate the use of gastric lavage.
Reply





Users browsing this thread:
12 Guest(s)