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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|