Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: djskagnetti on October 07, 2011, 07:53:55 pm

Title: [RESOLVED] Easy Cost (as in price) Editing Script - been done?
Post by: djskagnetti on October 07, 2011, 07:53:55 pm
Hi I searched for this, but couldn't find it here, does it exist?

when [weapon/armor/item ID] then return [cost]

so it is easy to edit the cost if you want it over 99,999 instead of pressing the up arrow for 90324324 minutes?

so it would be like 3 sections

###########
weapons go here
##########
when 1 then return 179000

##########
armors go here
##########
when 1 then return 11000000

#########
items go here
#########
when 1 then return 288999

so weapon with an id of 1 will cost 179,000 gold
armor with an id of 1 will cost 11,000,000 gold
item with an id of 1 will cost 288,999 gold

does this exist somewhere, or can somebody make it?
Title: Re: [XP] Easy Cost (as in price) Editing Script - been done?
Post by: ForeverZer0 on October 07, 2011, 08:04:52 pm
http://forum.chaos-project.com/index.php/topic,9777.0.html

That will do it.

Anyways, why would you use the slide control to increase it anyway (normally)? 
Just type the values in.
Title: Re: [XP] Easy Cost (as in price) Editing Script - been done?
Post by: djskagnetti on October 07, 2011, 08:15:31 pm
i tried and it wont go past 5 digits =(

but thanks very much for the link, that should do it =)

EDIT:

sorry to reopen, but whenever i choose my project, it loads all the stuff and then says 'Sorry, QuickFixPrice had encountered a problem and needs to close' and does so each time i reopen until i delete the path file it created.  but then if i try to reload it says it again and does the same thing...

EDIT:

i tried on a new game and got this error

Spoiler: ShowHide
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.MissingMethodException: undefined method `size' for nil:NilClass
   at Microsoft.Scripting.Interpreter.ThrowInstruction.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
   at IronRuby.Runtime.RubyScriptCode.Run(Scope scope, Boolean bindGlobals)
   at IronRuby.Runtime.RubyScriptCode.Run()
   at Microsoft.Scripting.Hosting.ScriptSource.Execute()
   at Microsoft.Scripting.Hosting.ScriptEngine.Execute(String expression)
   at c.a()
   at c.q(Object A_0, EventArgs A_1)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
QuickFixPrice
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0
    CodeBase: file:///C:/Documents%20and%20Settings/Skagnetti/Desktop/RMXP%20Resources/Quick%20Fix%20Price/QuickFixPrice.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
IronRuby
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Documents%20and%20Settings/Skagnetti/Desktop/RMXP%20Resources/Quick%20Fix%20Price/IronRuby.DLL
----------------------------------------
Microsoft.Scripting
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.1.00
    CodeBase: file:///C:/Documents%20and%20Settings/Skagnetti/Desktop/RMXP%20Resources/Quick%20Fix%20Price/Microsoft.Scripting.DLL
----------------------------------------
Microsoft.Dynamic
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.1.00
    CodeBase: file:///C:/Documents%20and%20Settings/Skagnetti/Desktop/RMXP%20Resources/Quick%20Fix%20Price/Microsoft.Dynamic.DLL
----------------------------------------
Microsoft.Scripting.Core
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.1.00
    CodeBase: file:///C:/Documents%20and%20Settings/Skagnetti/Desktop/RMXP%20Resources/Quick%20Fix%20Price/Microsoft.Scripting.Core.DLL
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
IronRuby.Libraries
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Documents%20and%20Settings/Skagnetti/Desktop/RMXP%20Resources/Quick%20Fix%20Price/IronRuby.Libraries.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


Title: Re: [XP] Easy Cost (as in price) Editing Script - been done?
Post by: ForeverZer0 on October 07, 2011, 09:11:26 pm
Hmmm.
I just tried and it works fine.
Title: Re: [XP] Easy Cost (as in price) Editing Script - been done?
Post by: djskagnetti on October 07, 2011, 11:57:00 pm
i double backed up my data, ran your program, just didn't close it when it said it had to be closed, edited a price and saved it, then opened my game and the price was changed.  LOL.  just like my life, everything that works for everyone else is broken for me, but somehow works out in the end when every sign points to it will not.
Title: Re: [RESOLVED] Easy Cost (as in price) Editing Script - been done?
Post by: ForeverZer0 on October 08, 2011, 12:00:49 am
That's G_G's program, not mine.

Anyways, glad to hear its working out for you. :)