Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
Go Back   Zelaron Gaming Forum > Zelaron Gaming > RPGMaker

 
 
Thread Tools Display Modes

 
Reply
Posted 2006-02-19, 09:30 PM in reply to BlueCube's post starting "Then it's just easier to do this (this..."
Thanx again.... now i was woundering, if i put that it costs $200 for say mission 9, would i throw in a conditional branch checking the money and then later in that same part of the script just minus the $200. That would work.... wouldnt it
Old
Profile PM WWW Search
KittenRat is neither ape nor machine; has so far settled for the in-betweenKittenRat is neither ape nor machine; has so far settled for the in-between
 
KittenRat
 



 
Reply
Posted 2006-02-20, 11:43 AM in reply to KittenRat's post starting "Thanx again.... now i was woundering,..."
Yep, you can set it as a variable as well, if you want - like

<>Variable Operations: [7409:Mission09 Cost] = 200
<>Variable Operations: [7410:Mission10 Cost] = 500
<>Variable Operations: [7411:Mission11 Cost] = 270
<>Variable Operations: [7412:Mission12 Cost] = 410

And do that at the beginning of the game somewhere - that way, all of your costs are in one easy-to-find place, and you don't have to set a ton of different lines when you want that 200 to be 250 somewhere down the line.. you'd just check to see if your current gold is greater than variable [7409], and then use that same variable to reduce your gold.

Remember that you can also use variables in your messages, so something like:

<>Message: "This mission costs \v[7409] gold. Do you accept?"

Would work very well. Using a variable saves you from having to change 3 lines for every mission cost you want to change - the "gold > 200" line, the "reduce gold by 200" line, and the "This mission costs 200" line. And, if you include costs in the original choices, that would make four lines. AND it would prevent you from changing the cost of one, only to forget to change the cost of the others.
Old
Profile PM WWW Search
BlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzBlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
BlueCube
 



 
Reply
Posted 2006-02-27, 12:47 AM in reply to BlueCube's post starting "Yep, you can set it as a variable as..."
Shweet, thanks man.
Old
Profile PM WWW Search
KittenRat is neither ape nor machine; has so far settled for the in-betweenKittenRat is neither ape nor machine; has so far settled for the in-between
 
KittenRat
 



 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 06:20 PM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.