RandomReward XP - Printable Version +- Save-Point (https://www.save-point.org) +-- Forum: Material Development (https://www.save-point.org/forum-8.html) +--- Forum: Scripts Database (https://www.save-point.org/forum-39.html) +---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html) +---- Thread: RandomReward XP (/thread-8880.html) |
RandomReward XP - kyonides - 12-31-2023 RandomReward XP
by Kyonides
Introduction Just as the script's name clearly implies, it allows you to set some sort of reward lotto into motion by using a single script call. After it has granted the reward to the player, you can press the OK or Cancel button to return to the map. It could also close itself if no input is given. How Does it Work? You just need a simple script call to open the Reward scene. Code: now_reward([Type, ID, Amount], [:g, Amount], etc.) Available Types: :i for Item, :w for Weapon, :a for Armor, :g for Gold Example: Code: now_reward([:i,1,5],[:i,2,3],[:w,1,1],[:w,25,1],[:g,2000]) 6 Snapshots Terms & Conditions Free for use in ANY game. Due credit is mandatory. Include a link to this post in your Credits text file. That's it! RE: RandomReward - Mel - 12-31-2023 The XP demo is crashing, when you talk to the pink haired girl. RE: RandomReward - kyonides - 12-31-2023 Script Bug Fix + More Customization!
Oopsie! I didn't notice that the Viewport class had no width method by default... But don't worry about it! It's been fixed already! From now on, the script allows you to set the Y coordinate of the window you see on screen plus the font's name and size of your reward message. RE: RandomReward - kyonides - 01-07-2024 Script Updated Once Again!
Version 1.1.0 comes with 2 brand new features: 1. Events can now "get" random rewards, too. Well, it just simulates that they actually did at least. Example: Code: now_reward(:e, 3, [:w, 8, 1], [g:, 470], [:i, 12, 1]) There Event #3 will pretend it got the reward. 2. The reward system itself can be rigged from the very beginning! Here is an example of a rigged system: Code: now_reward(1, [:w, 8, 1], [g:, 470], [:i, 12, 1]) In the example above you can see how the player will always get the gold reward in position 1 aka the second reward. Side Note: I had to develop this rigged game feature while developing my short game Just Another Crisis: The Shutdown. Curiously, the one getting that reward was the RTP character Ghost aka Ghost-o in my game. RE: RandomReward - kyonides - 02-01-2024 Maintenance Update
I was in need of fixing a bug in the VX ACE port that had been reported by some forumer concerning the call of an instance method from a class method aka singleton method. Since that is not supposed to ever work, I moved the call to the main method and now it runs smoothly.
Feel free to download the demo again!
|