News
: But don't use a sword made out of lemons.
Home
Forum
Search
Register
RMRK
RMRK Game Creation
RPG Maker 2k/2k3
RPG Maker 2k/2k3 Tutorials
(Moderators:
grafikal
,
Nessiah
)
Getting money from an NPC.
Pages: [
1
]
« previous
next »
Topic: Getting money from an NPC. (Read 221 times)
0 Members and 1 Sneaky Snooper are viewing this topic.
mattyrose2
mattyrose2
View mattyrose2's profile
Give mattyrose2 a comment
Find more posts by mattyrose2
View mattyrose2's statistics
Rep: +0/-0
Level 12 (69%)
Getting money from an NPC.
«
on:
February 09, 2010, 01:47:33 AM »
I am making my first game so I'm not very good yet so plz be patient with me!
Anyway, in the game i am making at the start there is an old man in the village and he gives you 10 gold. i figured out how to do that, but
so far i cant figure out how to stop him giving you ten gold. you could stand there all day an by the end be a millionaire!
so could someone plz tell me how to make him stop giving money away!
thanks!
bulmabriefs144
bulmabriefs144
View bulmabriefs144's profile
Give bulmabriefs144 a comment
Find more posts by bulmabriefs144
View bulmabriefs144's statistics
Rep: +0/-0
Level 12 (25%)
Re: Getting money from an NPC.
«
Reply #1 on:
February 09, 2010, 09:53:54 PM »
Barring a switch (which is lame, just for that), and making a Condition- If Old Guy Gave you 10 gold, you can also do it by variable. Set the variable to 1 after a single time, then make a condition - OldManGift = 1 at the top of the page, with an else. put the gift inside the else, and add the variable Set Equal to 1 at the end of the else, and voila! You have a single page event. You can even string several conversations on a single page, like so.
Condition - OldMan is 2
-(Whatever you want)
Else
Condition - OldMan is 1
-(Etc)
-Variable OldMan, Set 2
Else
Condition - OldMan is 0
-(More crap)
-Variable OldMan, Set 1
DarkGamer
DarkGamer
View DarkGamer's profile
Give DarkGamer a comment
Find more posts by DarkGamer
View DarkGamer's statistics
Rep: +6/-3
Level 33 (22%)
Will you join me in the dark side...?
Re: Getting money from an NPC.
«
Reply #2 on:
February 10, 2010, 07:04:21 PM »
Event
add money 10G
Message:Take this 10 gold
set variable oldman=1
Condition - OldMan is 1
-(Whatever you want)
set variable oldman=2
Else
Condition - OldMan is 2
-(Etc)
-Variable OldMan, Set 3
Else
Condition - OldMan is 3
-(More crap)
-Variable OldMan, Set 4
And so on.That's how it's done...
Everytime you talk to him, it will raise the value of the variable oldman, and you can add as many as you want. but in your case, only one would be needed!
Event
add money 10G
Message:Take this 10 gold
set variable oldman=1
Condition branch - if var. OldMan is =1
-show message: Use it well!!!!
mattyrose2
mattyrose2
View mattyrose2's profile
Give mattyrose2 a comment
Find more posts by mattyrose2
View mattyrose2's statistics
Rep: +0/-0
Level 12 (69%)
Re: Getting money from an NPC.
«
Reply #3 on:
February 11, 2010, 02:03:19 AM »
thanks guys!
I'll try it next time i can use rpg maker! if it doesn't work ill come back crying with lots of questions! lol thanks!
mattyrose2
mattyrose2
View mattyrose2's profile
Give mattyrose2 a comment
Find more posts by mattyrose2
View mattyrose2's statistics
Rep: +0/-0
Level 12 (69%)
Re: Getting money from an NPC.
«
Reply #4 on:
February 12, 2010, 07:47:19 PM »
It works thanks!
Pages: [
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
RMRK Announcements, Support, Feedback and Archives
-----------------------------
=> Forum Announcements
===> News & Updates
=====> Featured Projects
=> Board Support / Feedback
=> RMRK Discussion Archives
===> RMRK Kingdoms
===> 2006 RMRK Awards
=====> 2006 RMRK Awards - Voting
=====> 2006 RMRK Awards - Nominations
===> AWESOMELY ANNE OF HUMANITY - Season 1 finished!
===> Anonymous, lol
===> 2007 RMRK Awards
=====> 2007 RMRK Awards - Nominations
===> 7yay
===> 2008 RMRK Awards
=====> 2008 RMRK Awards - Nominations
=====> 2008 RMRK Awards - Voting
===> Zylos' Mega Mall / Bar
===> RMRK Guilds
=====> Main Hall
===> 2009 RMRK Awards
=====> 2009 RMRK Awards - Nominations
-----------------------------
RMRK Game Creation
-----------------------------
=> Game Creation General Chat
=> RMVX
===> RMVX Projects
=====> RMVX New Projects
===> RMVX Troubleshooting
===> RMVX Scripts
=====> RMVX Scripts Database
=====> RMVX Script Request
=====> RMVX Script Support
===> RMVX Resources
=====> RMVX Resources Database
===> RMVX Tutorials
=====> RMVX Tutorials Database
=====> RMVX Event Systems
=> RMXP
===> RMXP Projects
=====> RMXP New Projects
===> RMXP Troubleshooting
===> RMXP Scripts
=====> RMXP Scripts Database
=====> RMXP Script Request
=====> RMXP Script Help
===> RMXP Resources
=====> RMXP Resource Database
===> RMXP Tutorials
=====> RMXP Tutorials Database
=====> RMXP Event Systems
=> RPG Maker 2k/2k3
===> RM2k/2k3 Projects
=====> RM2k/2k3 New Projects
===> RPG Maker 2k/2k3 Troubleshooting
===> RPG Maker 2k/2k3 Resources
=====> RPG Maker 2k/2k3 Resources Database
===> RPG Maker 2k/2k3 Tutorials
=> Game Maker
===> Game Maker Projects
===> Game Maker Troubleshooting
===> Game Maker Resources
===> Game Maker Tutorials
=> Other Programs
=> Projects Miscellaneous
===> RMRK Project Subforums
=====> Starkiller Productions
===> Finished Projects
===> Abandoned Projects
-----------------------------
RMRK Guilds
-----------------------------
=> Main Hall
-----------------------------
RMRK Creativity
-----------------------------
=> The Auditorium
=> Gallery
=> The Librarium
=> Everything else
-----------------------------
RMRK General
-----------------------------
=> Community
===> Welcome
===> Forum Games
===> Ask A Stereotype!
===> Game Trading
=> General Chat
===> In The News
=> Elitist Debate
=> Entertainment
===> Anime & Manga
=> Video Games
=> Computing and Technology
=> Poster Board
===> Off-topic
=====> SKANKER'S & CHEWEY'S SPAM FORUM
hi
Guest
Please
Register
or login:
Username
Password
1 Hour
1 Day
1 Week
1 Month
Forever
Site Content
Homepage
Downloads
Resources
Tutorials
Extras
Community
RMRK.net Forums
#Crankeye IRC Chat
RMRK Community Wiki
RMRK Radio
AR Podcast
Donations
Projects
Project Subforums
Featured Projects
Affiliates/Links
Short Story
HBGames
Ryan Leber
Free MMORPG Maker
Statistics
394,973
posts
24,992
threads
8,653
users
Latest Member:
Eldin The Panther
Loading...