Go Back   Webmaster Forum > Development > Programming > JavaScript
REMOVE the ads below !
Reply
 
LinkBack Thread Tools
  # 1 (permalink)
Old
Junior Geek
Posts: 65
Join Date: Feb 2007
iTrader: (0)
Rpg Evolved - 10-19-2007

Written for IPB1.3 / invisionfree

I've been working on this a while ago,
i wanted to add a battle system to it but i dont really feel like adding one now so i left it out,
Rpg Evolved is my first Rpg, it has a automated shop and guild system included, based on my Evil Guild System and my Automated Shopmod.
i succesfully tested it in IE7, FF2 and OPERA9

PREVIEW: http://z11.invisionfree.com/RpgEvolv...ex.php?act=idx

Quote:
Originally Posted by Footers
<script>
/*
Rpg Evolved V1
By Godkillah from phantom-designs.net
CANNOT BE EDITED/REHOSTED/REPOSTED WITHOUT PERMISSION!
*/
var subImg="http://209.85.48.12/style_images/1/atb_members.gif" //image at the Rpg link in submenu

var expname="Exp" //How is the Expierience called?
var ExpPerPost=15 //How much Expierience do you get per post?
var levelname="Level" //How are levels called? level 1, level 2 etc.
var ExpPerLevel=100 //How much expierience do you need to go to the next level?

var sign="€" //What is the money sign?
var moneyName="Cash" //How is the money called?
var moneyPerPost=5 //How much money do you get per post?
var startMoney=25 //with how much money do you start?

var guildname="Guild" //How are guilds called?

n=0;var guild=[]
guild[n++]=["Girlys","Description here","members only text"]
guild[n++]=["Teh Rawrz","Description here","members only text"]


n=0;var categorys=[]
categorys[n++]=["Armors","all the armors are in here"]
categorys[n++]=["Shields","all the shields are in here"]
categorys[n++]=["Weapons","all the weapons are in here"]
categorys[n++]=["Others","Some random stuff"]


n=0;var items=[]
items[n++]=["Sheiras Knifes","Weapons","Small but dangerous","http://tbn0.google.com/images?q=tbn:rRUJWHAdKv_9rM:http://pcenginebible.roarvgm.com/Images-general/ICON-Action_RPG.gif",5,25]
items[n++]=["Bloody Sword","Weapons","The blood of a thousand people is on it","http://tbn0.google.com/images?q=tbn:rRUJWHAdKv_9rM:http://pcenginebible.roarvgm.com/Images-general/ICON-Action_RPG.gif",10,50]
items[n++]=["Bloody Shield","Shields","Blocks anything you want","http://tbn0.google.com/images?q=tbn:rRUJWHAdKv_9rM:http://pcenginebible.roarvgm.com/Images-general/ICON-Action_RPG.gif",false,50]


</script><script src="http://h1.ripway.com/godkillah/AAAEvolvedRpg.js"></script>
as you see i left a lot of comments in the code explaining parts so i won't type a explaination about those,

You'll notice a red part, these are the guilds.
you can add and edit them like:
guild[n++]=["Guild Name","Guild Description","Guild Members Only Text At Guild Page"]

You'll notice a blue part, these are the categorys used to order the shop and your inventory.
you can add and edit them like:
categorys[n++]=["Category Name","Category Description"]

You'll notice a green part, these are the items you can buy with your money.
you can add and edit them like:
items[n++]=["Item Name","Item Category Name","Item Description","Item Icon URL",Item Damage,Item Price]
Orange: You'll see i made the Item Damage orange, this is because this part needs some extra instructions because only items from weapon categorys should have damage
if an item is a weapon than add a number wich is the damage of the item
if an item is not a weapon that set the damage to false

Enjoy,
if you've got any further questions feel free to ask
Reply With Quote
Reply


Thread Tools



PSD to HTML

vBulletin®, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. | SEO by vBSEO | Skin developed by vBStyles.com