Masterlet
|
  |
| Joined: 30 Jun 2011 |
| Total Posts: 648 |
|
|
| 04 Sep 2012 06:57 PM |
I don't get this script...
the script:
--[[ Hi there! Today I shall show you how to create your very own RPG. This very smallkit can turn an empty base plate into a massive RPG! First off, Ungroup RPG Kit and put ResetGUI into the "StarterGUI" in Workspace. Then, put Sword into Starterpack and change it's damage. Now, lets begin starting with the leaderboard.
--{LEADERBOARD}-- Open up "RPG Script" and look at line 2 and 3. You will see the number 25. Change the number 25 on line 2 to how much experience you need to level up the first time. Then, on line 3 change 25 to how much experience is added each level. Then, look at line 50, 54, and 58. There you see the names of the leaderstats. Dont touch it unless you know what you are doing. Anyways, go to line 51, 55, and 59. These are the values of your stats. LEAVE Level alone. If it is 0 your RPG will crash and stop working. Change the value of gold on line 59 to any amount you wish. Now, you are done with the leaderstats. Read LEADERBOARD instructions again if you did not understand something.
--{AI ENEMY}-- Of course, what kind of RPG will this be if it doesnt have any enemies? Thats right! You must create one! Open up "AI Enemy" and look at it's contents. First off, look at the value of "Damage" Change it to your desired amount of damage. Then, open up "Statgive" script and look at line 10. Look for "+ 1" and change the 1 to how much money your enemy will give to you when you pwn it. Do you same for experience on line 29. Now, we must DECORATE your NPC. Color it's body parts to what you want and the sword, you can delete it for a hand combat AI or recolor it OR give it a texture. Now, go to "Enemy" humanoid. Set it's health and walkspeed to as much you want. Now, go to "Follow" and look at line 7. Change that number 20 to how far your NPC will target you. Whalla! Your NPC is finished! Time to move onto the shop system.
--{SHOP}-- Before we start your adventure, you need to be able to buy items from a shop. Open up "[BronzeSword] (10G)" which is a buy button and go to its script. Look at line 23 and 24. Those lines indicate how much money you will spend for that particular item. Change them to what you want to buy an item. My bronzesword is for 10 Gold. Change to how much it cost. Then, on line 26 there is the name of "BronzeSword" Look for it and change it to the EXACT name of your weapon. Now, you are done with the button, time to design the weapon. Find the tool"BronzeSword" and change its name to whatever you wish and make sure it matches the name of the tool in ShopScript in the buy button on line 26. Then give a texture or color, reflectance, trans, or whatever to the tool's handle. Then, go to your tool and open up its sword script. Change the damage of slash and lunge. Thats it DO NOT touch anything else. After that, drop your shop tool into lighting and you are set!
You arent done yet! You need to get your level door!
--{LEVEL PASSAGE}-- Open up "Level door" and look at line 22. Change 3 to your level needed to access the door.
Now that that is done, we shall make enemies DROP items! How exciting!
--{ITEM DROPS}-- Open up your AI Enemy and look at the "Drop" script and open it. In this case I have made the drop an Apple, which is right at your NPC's feet. Change the "Apple" on line 2 to the name of your drop. Then close the script and open up the tool "Apple" and decorate it. Rename the Apple to the name of your Drop in the NPC and then resize, remesh, make it perform something else, recolor, or whatever then drop it in lighting. If you did this right when you kill your NPC in solo or online it should appear right next to your enemy!
Great! Now you are ready to build your RPG! Go now, build! I await great adventures from you! -KB9 =)
and I am at item drops..
there are no tutorials on how to make a enemy drop something.
and here's the drop script inside the AI Enemy
Drop script:
function Drop() local drops = {""} local G = math.random(1, 1) local Obj = game.Lighting:findFirstChild(drops[G]):Clone() Obj.Parent = game.Workspace Obj.Handle.CFrame = script.Parent.Head.CFrame + Vector3.new(5,2,0) script:remove() end
while true do wait(.1) if (script.Parent.Enemy.Health <1) then Drop() end end
|
|
|
| Report Abuse |
|
|
|
| 04 Sep 2012 06:59 PM |
| WHERE DO I DOWNLOAD EDIT STUDIO FOR ROBLOXXXXXXX |
|
|
| Report Abuse |
|
|
|
| 04 Sep 2012 07:01 PM |
SHUT UP!
~http://www.roblox.com/Forum/ShowPost.aspx?PostID=77422811~ To answer your FPS questions! |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
| |
|
Masterlet
|
  |
| Joined: 30 Jun 2011 |
| Total Posts: 648 |
|
| |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 05 Sep 2012 05:14 PM |
u dont get how to make a leaderboard? and roblox studio comes when u download roblox -.-
C:\Program Files (x86)\Roblox << If Computer Is x64 C:\Program Files\Roblox << If Computer Is x86/32 |
|
|
| Report Abuse |
|
|
Masterlet
|
  |
| Joined: 30 Jun 2011 |
| Total Posts: 648 |
|
|
| 05 Sep 2012 05:15 PM |
| nope, I don't get how to make a enemy drop an item. |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2012 05:17 PM |
@ODER R U STUPID?? C:\Program Files (x86) IS FOR 32 BIT PROGRAMS ONLY C:\Program Files IS FOR 64 BIT PROGRAMS ONLY, ONLY CONAIN 64 BIT ELSE THE 16 BIT FOLDER WOULD BE USELESS
|
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 05 Sep 2012 05:17 PM |
lol insert a brick in enemy's head
and:
function Death() c = Location["Head"]:GetChildren() for i = 1, #c do c[i].Parent = game.Workspace end end
while true and wait() do if Location["Humanoid"].Health < 1 then Death() end end
For Location, Put Where The Enemy Is Located |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 05 Sep 2012 05:18 PM |
lol i mixed up the bits.
C:\Program Files (x86)\Roblox << If Computer Is x86/32 C:\Program Files\Roblox << If Computer Is x64
^Correct :( Fail Me, i should spend more time typing but its not worth it |
|
|
| Report Abuse |
|
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 05 Sep 2012 05:22 PM |
lolmad?
cuz u cant make a simple poop script?
lol k, its alright |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2012 05:23 PM |
| NO CUS IM NOT U I CAN ONLY MAKE COMPLEX POOP SKRIPTS |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
|
| 05 Sep 2012 05:43 PM |
XD.
~http://www.roblox.com/Forum/ShowPost.aspx?PostID=77422811~ To answer your FPS questions! |
|
|
| Report Abuse |
|
|
|
| 09 Sep 2012 12:50 PM |
Wow, there is a way better way of making the level experience:
level(x) =
∞ ∑ 5*n+5 n=0
= 2.5*(x^2+3*x) |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
| |
|
|
| 09 Sep 2012 02:41 PM |
Lol, mama, for a second I thought you meant me... I'm like what the heck did I say?
http://www.roblox.com/Build-N-Battle-place?id=91005545 - Play it, love it |
|
|
| Report Abuse |
|
|
|
| 09 Sep 2012 02:54 PM |
@mama
Yes it does. You just don't understand it. |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 09 Sep 2012 03:51 PM |
@Bunny level(x) = --Well, what is this...??
∞ --Infinity? ∑ 5*n+5 --Something 5*n+5, if this was a programming language, then it'd say n was nil, unless ∑ did something about it, which I'm pretty sure that's a math term, so... n=0 --N = 0, simple
= 2.5*(x^2+3*x) --All the stuff = 2.5 times (x to the power of 2+3 times x)
Am I right? |
|
|
| Report Abuse |
|
|
|
| 09 Sep 2012 04:43 PM |
| You obviously don't know what summation is. |
|
|
| Report Abuse |
|
|
|
| 09 Sep 2012 05:44 PM |
Wanna know how to remove trolls from games? function trolololo() game.Workspace.lIlllIlIlIlIlIlIIIlI.remove: end script.Parent.MouseButtonDown1.connect:(trolololo)
Put this in a GUI so anyone can remove: this troll
|
|
|
| Report Abuse |
|
|
|
| 09 Sep 2012 05:46 PM |
@mamaguy
what he's referring to is some basic pre-calculus material. it's okay if you don't understand :P
¬ Scripter Tier-2, LuaLearners Elite ♣ scripting teacher/freelance worker ♣ send me trade requests! |
|
|
| Report Abuse |
|
|
| |
|