Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Support
  • Code University
  • R.t.b.s
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
R.t.b.s; Real Time Battle System
Tweet Topic Started: Aug 4 2008, 04:42 PM (287 Views)
HolySavior Aug 4 2008, 04:42 PM Post #1
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
Hey Guys!

Well I'm gonna release my Real Time battle system for anyone to use and possibly enhance or if you want to put it in your own RPG!! Pretty Cool huh?

Feel Free to study it, make it better, add some things, but just keep my copyright in there.

Enjoy!
CSS:
Code:
 
#battlelog {
width:100%;
height:150px;
overflow: scroll;
}


Put this under your Board somewhere:
Code:
 

<table style="border:3 double #000000; display:none;" id="battlesystem"><tr>
<td width="25%">
<h4>
<span id="ename">Super Ninja</span><br/>
Level: <span id="elevel">2</span>
</h4><br/>
Life: <span id="elife">100</span><br/>
Attack: <span id="eattack">30</span><br/>
Defense: <span id="edefense">10</span><br/>

Agility: <span id="eagility">40</span><br/>
Mana: <span id="emana">60</span><br/>
Items: <ol>
<li><span id="eitem1">Mana Potion</span></li>
<li><span id="eitem2">Health Potion</span></li>

</ol>
<br/>
Spells: <ul>

<li>Fire: Mana-<span id="espell1">20</span> </li>
<li>Demi: Mana-<span id="espell2">30</span></li>
</ul>
</td>
<td colspan="2"><div id="container" style="height:150px; width:500px;background-color:#d1dceb;display:none;color:#222222; background-image:url(http://charas-project.net/resources/Backgrounds/12002_1100617170_small.png);">
<div id="player" style="float:right;margin-right:20px;margin-bottom:0px;margin-top:90px"> <img src="http://img88.imageshack.us/img88/8203/knightug0.png" alt="player" /></div>
<div id="enemy" style="float:left;margin-left:20px;margin-top:100px"> <img src="http://img98.imageshack.us/img98/6683/enemyyf0.png" alt="enemy"/> </div>
<div id="startdiv" style="margin:20px 100px 0px 100px">Start Battling!!</div>

</div>
</td>
<td width="25%">
<h4>
<span id="pname">Holysavior</span><br/>
Level: <span id="plevel">2</span>
</h4><br/>
Life: <span id="plife">100</span><br/>
Attack: <span id="pattack">30</span><br/>
Defense: <span id="pdefense">10</span><br/>

Agility: <span id="pagility">50</span><br/>
Mana: <span id="pmana">70</span><br/>
Items: <ol>
<li><span id="pitem1">Attack Up</span></li>
<li><span id="pitem2">Health Potion</span></li>

</ol>
Spells: <ul>
<li><span id="pspell1">Fire: Mana-30</span> </li>

<li><span id="pspell2">Demi: Mana-50</span></li>
</ul>
</td>
</tr><tr><td width="25%">Move Keys:
<div id="movekeys">Press "A" to move Left<br/> Press "D" to move Right<br/> Press "W" to Jump</div>
</td>
<td width="25%">Action Keys:<div id="actionkeys">Press "J" to Attack!<br/><br/><br/></div>
</td>
<td width="25%">Potion Keys:<div id="potionKeys">

Slot 1 Press "1" to use <span id="pslot1">Heal</span><br/>
Slot 2 Press "2" to use <span id="pslot2">Mana</span><br/>
</div>
</td>
<td width="25%">Spell Keys:<div id="spellKeys">
Slot 1 Press "N" to use <span id="sslot1">Fire</span><br/>
Slot 2 Press "M" to use <span id="sslot2">Ice</span><br/>
<br/></div>

</td>
</tr><tr><td colspan="4" width="25%">Battle Log:<br/><span id="battlelog"></span></td></tr></table>


Download Link: ( it is a .hs file / Use NotePad or NotePad ++ to open )

http://z15.invisionfree.com/DraconianRpg/index.php?act=Attach&type=post&id=929829

Preview Link:

http://z15.invisionfree.com/DraconianRpg/index.php?act=battle

Feel Free to ask questions on things and i will do my best to answer them.
Offline Profile Goto Top
 
WeirdAdz Aug 5 2008, 04:49 AM Post #2


Posts:
14
Group:
Member
Member
#198
Joined:
Jul 22, 2008
Does this work just for Invisionfree?

If it works for Zetaboards, could we also have a preview for that aswell please? If at all possible.

This is a great Battling System, Thanks for letting us use it.
Edited by WeirdAdz, Aug 5 2008, 04:52 AM.
Offline Profile Goto Top
 
HolySavior Aug 5 2008, 11:14 AM Post #3
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
right now it is set for just IF but
it can easily set for ZB
Offline Profile Goto Top
 
Agent Moose Aug 29 2008, 08:01 PM Post #4
Member Avatar
SMF for Free Moderator

Posts:
838
Group:
Former Staff
Member
#14
Joined:
Jul 9, 2008
You sicken me with your awesomeness of coding :P I can probably do it, but...Im lazy :P
You could call me Troy :P | The World of Moosey | Newest Blog: SMF for Free Spam Code

Current Project: Zetaboard Javascript Tester (click on the link in the Submenu)

ZetaBoard Javascript Tester Features:
- Code Test box
- Counts how many open brackets/parentheses and closed brackets/parentheses you have in your code to make sure that your code will work.
- New: Inspect Element
Offline Profile Goto Top
 
HolySavior Aug 29 2008, 09:17 PM Post #5
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
haha your silly Agent Moose!
you could easily make this
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Code University · Next Topic »
Locked Topic

Track Topic · E-mail Topic Time: 7:45 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy