generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Monster quest

Previous Thread :: Next Thread 
eunit is not online. eunit
Joined: 21 Sep 2008
Total Posts: 2998
27 Nov 2011 11:29 AM
Ok so this is a quest that you must kill a type of monster 6 times to recive the reward. THis i'm pretty sure is terrible scripting, but i'm new to scripting. i tried, so can somone improve this?

I made a script in the workspace that plainly says

x = 0

When you walk up to the quest giver, you'll step on this brick. Here is the script in the brick

OnTouch
a = true
if x = 6
then
Leaderstats.Gold.Value + 100
Leaderstats.XP.Value + 50
else
nil
end
a = false
end

And finally the script in the monster

if parent.Humanoid.Health = 0
x + 1
Report Abuse
juriaan is not online. juriaan
Joined: 25 Nov 2008
Total Posts: 939
27 Nov 2011 11:44 AM
I suggest that you first learn some more about RBX.Lua
This script is just a pain for my eyes
But good try !

Juriaan
Report Abuse
YaYaBinks3 is not online. YaYaBinks3
Joined: 05 Jun 2009
Total Posts: 2631
27 Nov 2011 11:49 AM
Yes, it is very good, especially when you've just started. Check out the wiki at wiki.roblox.com! Nice try.
Report Abuse
eunit is not online. eunit
Joined: 21 Sep 2008
Total Posts: 2998
27 Nov 2011 12:05 PM
Ok so i've changed it a little bit, but i still need some help. The output tab isn't doing anything but taking up space. Nothing has appeared there, but here are the slightly changed scripts

onTouched()
a = true
if monsters_killed = 6
then
Leaderstats.Gold.Value + 100
Leaderstats.XP.Value + 50
monsters_killed = 0
else
nil
end
a = false
end



if parent.Humanoid.Health = 0
monsters_killed + 1

just those minor changes. Any suggestions? The wiki didn't really clear anything up for me.
Report Abuse
eunit is not online. eunit
Joined: 21 Sep 2008
Total Posts: 2998
27 Nov 2011 12:10 PM
Can i get some help please? Not praise for a script that doesn't work?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image