LavaLit
Home
Forum
WIKI
SVN
DOWNLOADS
Help
Donations
Login
Register
Donations
Quarterly Goal:
$90.00
Due Date:
Sep 30
Total Receipts:
$30.00
Below Goal:
$60.00
Site Currency:
USD
33%
Quarterly Donations
Aug-5
DrStrange
USD20.00
Jul-18
mozenwrath...
EUR10.00
Jul-1
LeeBrother
USD10.00
Advertisement
Links
Advertisement
LavaLit
>
Forum
>
OpenBoR
>
Help & Resources
>
Resources
>
openBorStats Tool
Pages:
1
[
2
]
3
4
...
11
Go Down
« previous
next »
Print
Author
Topic: openBorStats Tool (Read 10562 times)
0 Members and 1 Guest are viewing this topic.
Orochi_X
Administrator
Offline
Posts: 3083
Now! Count up your crimes.
Re: openBorStats Tool
«
Reply #15 on:
June 24, 2009, 04:29:08 PM »
Yes , you can add script directly in to an entity.txt file....
You place them between @script and @end_script
Logged
* Orochi_X says : " Sore ga doushita? "
MatMan
Sr. Member
Offline
Posts: 325
Re: openBorStats Tool
«
Reply #16 on:
June 24, 2009, 04:34:23 PM »
Quote from: Orochi_X on June 24, 2009, 04:29:08 PM
Yes , you can add script directly in to an entity.txt file....
You place them between @script and @end_script
Thanx, really useful to know, plus will make adjustments to handle for future development.
Logged
.
Orochi_X
Administrator
Offline
Posts: 3083
Now! Count up your crimes.
Re: openBorStats Tool
«
Reply #17 on:
June 24, 2009, 04:39:31 PM »
No problem!
I was digging around for an example but you ninja'd me so , umm , here it is!
Code:
anim attack1
loop
0
delay
8
bbox
30 5 27 79
offset
37 90
@script
if(frame == 0){
void self = getlocalvar("self");
if(playerkeys(getentityproperty(self, "playerindex"), 0, "movedown"))
{
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW5"));
}
}
@end_script
frame
data/chars/mai/P12_A075
offset
35 92
delay
3
bbox
32 10 43 76
attack4 61 16 62 20 15 0 0 0 8 15
frame
data/chars/mai/P12_A076
offset
35 82
bbox
27 6 52 72
frame
data/chars/mai/P12_A077
attack 0
offset
36 90
delay
7
bbox
30 5 27 79
frame
data/chars/mai/P12_A075
offset
34 91
bbox
15 5 31 80
frame
data/chars/mai/P12_A078
Logged
* Orochi_X says : " Sore ga doushita? "
MatMan
Sr. Member
Offline
Posts: 325
Re: openBorStats Tool
«
Reply #18 on:
June 24, 2009, 04:47:14 PM »
Can you place a script block inside a anim block or does it have to be either before it and/or after it and if its before it does it only work for that anim block and can you have multiple script blocks?
Sorry for bugging but I'm not actually looking into scripts at the moment (I'm sure there's resources on it), I'd just like to know plus minus how they work as i'm creating a character editor but I want to be able to add a area for scripts.
Logged
.
Orochi_X
Administrator
Offline
Posts: 3083
Now! Count up your crimes.
Re: openBorStats Tool
«
Reply #19 on:
June 24, 2009, 04:57:02 PM »
You need to place it before the frame(s) you want it triggered on so you can either do one large script at the beginning or several smaller ones...
Code:
#Musasabi no Mai
anim freespecial1
landframe 8
loop 0
delay 7
offset
53 113
bbox
15 13 19 52
@script
if(frame == 0){
void self = getlocalvar("self");
if(playerkeys(getentityproperty(self, "playerindex"), 0, "attack3"))
{
setentityvar(self, 4, 2);
}else{
setentityvar(self, 4, 0);
}
changeentityproperty(self, "tosstime", getentityproperty(self, "tosstime") + 28);
}
@end_script
frame
data/chars/mai/P12_A11F
offset
29 122
frame
data/chars/mai/P12_A120
offset
35 150
frame
data/chars/mai/P12_A121
offset
33 122
frame
data/chars/mai/P12_A11E
offset
52 129
@script
if(frame == 4){
void self = getlocalvar("self");
int x = getentityvar(self, 4);
int dir = getentityproperty(self, "direction");
if(dir == 1)
{
changeentityproperty(self, "velocity", 7+x, 0, -8+(x/2));
}
else
{
changeentityproperty(self, "velocity", -7-x, 0, -8+(x/2));
}
}
@end_script
delay 5
frame
data/chars/mai/P12_A030
frame
data/chars/mai/P12_A031
frame
data/chars/mai/P12_A032
@script
if(frame == 7){
void self = getlocalvar("self");
updateframe(self, 4);
}
@end_script
frame
data/chars/mai/P12_A032
offset
30 80
delay 7
frame
data/chars/mai/P12_A11E
offset
21 80
frame data/chars/mai/P12_A020
delay 15
offset
27 57
bbox
15 13 19 52
frame
data/chars/mai/P12_A026
delay 8
offset
22 71
bbox
15 13 19 52
frame
data/chars/mai/P12_A01E
I almost forgot! You can also call external functions by placing them in an animationscript (the path is definable in the character header , animationscript {path} ) and then calling it with @cmd
@cmd functionname arg arg arg
These are always fired on the frame defined immediately after @cmd
Logged
* Orochi_X says : " Sore ga doushita? "
MatMan
Sr. Member
Offline
Posts: 325
Re: openBorStats Tool
«
Reply #20 on:
June 24, 2009, 05:02:56 PM »
I presume that after a script + anime is done its ended by a empty line to indicated to openBor that a new (script+anime) or (anime) will start.
Logged
.
MatMan
Sr. Member
Offline
Posts: 325
Re: openBorStats Tool
«
Reply #21 on:
June 25, 2009, 08:14:24 AM »
Could anyone please tell me what the default value to the "z axis" is in the attack box (ie the value used when its null).
Logged
.
Orochi_X
Administrator
Offline
Posts: 3083
Now! Count up your crimes.
Re: openBorStats Tool
«
Reply #22 on:
June 25, 2009, 09:41:23 AM »
It defaults to their grabdistance. That defaults to 36 if not declared , if memory serves.
Logged
* Orochi_X says : " Sore ga doushita? "
MatMan
Sr. Member
Offline
Posts: 325
Re: openBorStats Tool
«
Reply #23 on:
June 25, 2009, 09:47:17 AM »
Quote from: Orochi_X on June 25, 2009, 09:41:23 AM
It defaults to their grabdistance. That defaults to 36 if not declared , if memory serves.
Cool, thanx.
Logged
.
MatMan
Sr. Member
Offline
Posts: 325
Re: openBorStats Tool
«
Reply #24 on:
June 25, 2009, 11:27:04 PM »
Is the script engine case sensitive?
Logged
.
Damon Caskey
Administrator
Offline
Posts: 4341
Re: openBorStats Tool
«
Reply #25 on:
June 26, 2009, 08:48:00 AM »
Partially at least. I don't know if function names are case sensitive but I do know variants are.
int X != int x
DC
Logged
OpenBOR Wiki
.
Coming Soon:
Fatal Fury Chronicals
Bloodbane
Hero Member
Offline
Posts: 4890
Dark Dragon
Re: openBorStats Tool
«
Reply #26 on:
June 27, 2009, 01:02:07 AM »
Quote from: MatMan on June 22, 2009, 08:45:27 PM
How openBorStats came about was that I got tired of manually going through each Entity file and writing down the details I was looking for, to be able to create a well balanced calculation for the game, might even add a difficulty calculator but I'm thinking to far ahead cause I'll need to understand alot more of openBor as I haven't even climbed into scripting.
I keep thinking about balance definition and it turns out whatever it is, it's different and not same per person's view. So if you want to make balanced calculation, please explain what exactly you mean by balanced.
Difficulty calculator is even tougher. Aggresive enemies aren't always hard, if you can perform counterattack, those enemies will be defeated easily and look like an idiot.
And moreover, difficulty is relative to players too. Players are us not the character in the mod here.
Logged
OpenBoR Manual
"The more often enemies attack, the more open they are to counter attacks"
MatMan
Sr. Member
Offline
Posts: 325
Re: openBorStats Tool
«
Reply #27 on:
June 27, 2009, 01:16:19 AM »
Quote from: Bloodbane on June 27, 2009, 01:02:07 AM
Quote from: MatMan on June 22, 2009, 08:45:27 PM
How openBorStats came about was that I got tired of manually going through each Entity file and writing down the details I was looking for, to be able to create a well balanced calculation for the game, might even add a difficulty calculator but I'm thinking to far ahead cause I'll need to understand alot more of openBor as I haven't even climbed into scripting.
I keep thinking about balance definition and it turns out whatever it is, it's different and not same per person's view. So if you want to make balanced calculation, please explain what exactly you mean by balanced.
Difficulty calculator is even tougher. Aggresive enemies aren't always hard, if you can perform counterattack, those enemies will be defeated easily and look like an idiot.
And moreover, difficulty is relative to players too. Players are us not the character in the mod here.
It ain't a easy thing to get done but its always possible and every really advanced game has some sort of system they work of by using the engine rules, game genre rules etc.... but its something that I won't be really doing for a long while. it was just a idea.
Logged
.
MatMan
Sr. Member
Offline
Posts: 325
Re: openBorStats Tool
«
Reply #28 on:
June 27, 2009, 01:21:56 AM »
How does openBor calculate the Attack z Depth that is used in openBor. Lets say I set the z Depth to 40, does it measure (in a isometric view) from a point, 20 pixels in and 20 pixels out or is it more complicated than that?
Logged
.
Bloodbane
Hero Member
Offline
Posts: 4890
Dark Dragon
Re: openBorStats Tool
«
Reply #29 on:
June 27, 2009, 01:26:50 AM »
Quote
It defaults to their grabdistance. That defaults to 36 if not declared , if memory serves.
Utunnels said it's grabdistance/3 or 36/3 for default.
Quote
Lets say I set the z Depth to 40, does it measure (in a isometric view) from a point, 20 pixels in and 20 pixels out or is it more complicated than that?
No, it's 40 pixels in and out. And it's NOT isometric.
Logged
OpenBoR Manual
"The more often enemies attack, the more open they are to counter attacks"
Pages:
1
[
2
]
3
4
...
11
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
OpenBoR
-----------------------------
=> Discussions
=> Engine Center
===> Requests
===> Issues
===> Coding
=> Platform Center
===> PSP & PS3
===> Dreamcast
===> XBOX
===> Gp2x & Wiz
===> Dingoo
===> Wii
===> Windows
===> Linux
===> Macintosh
=> Mod Center
===> Completed
===> Demos
===> Wips
===> Reviews
=> OpenBoR Editor Project
=> Help & Resources
===> Tricks & Tutorials
===> Resources
===> Scripting
-----------------------------
Mugen
-----------------------------
=> Discussions
=> Modules
=> Help and Resources
===> Tricks & Tutorials
===> Resources
===> Scripting
-----------------------------
Hobbies
-----------------------------
=> Home Theater Setups
=> Arcade Systems
=> R/C Haven
=> Music - The Band
=> Art
===> Weekly Art Challenge
=> Out-Doors
-----------------------------
Video Games
-----------------------------
=> General
=> Guilds , Clans and Online Matchmaking
===> Borderlands
===> Left 4 Dead
===> World of Warcraft
=====> The Gods of Chaos
-----------------------------
General
-----------------------------
=> News
=> Discussions
=> Cinema
=> Television
Advertisement
Recent Topics
Dragon Duo
by
maxman
[September 06, 2010, 08:48:32 AM]
Jennifer [PC Versi...
by
mayongdorn
[September 06, 2010, 07:38:52 AM]
follow# animation ...
by
Orochi_X
[September 06, 2010, 05:21:26 AM]
Konpaku
by
danno
[September 06, 2010, 05:17:59 AM]
Splashy water
by
LeeBrother
[September 06, 2010, 05:13:40 AM]
Knife vs Knife
by
betterbold
[September 06, 2010, 01:54:03 AM]
Fist Of The NorthS...
by
Plombo
[September 06, 2010, 12:56:52 AM]
Wii support is her...
by
Plombo
[September 06, 2010, 12:26:39 AM]
Mortal Kombat 9 [+...
by
bWWd
[September 05, 2010, 11:28:05 PM]
dropv doesnt work ...
by
bWWd
[September 05, 2010, 11:21:33 PM]
Online Status
Members
Total Members: 18457
Latest:
OLD386
Stats
Total Posts: 68637
Total Topics: 4634
Online Today: 31
Online Ever: 117
(October 23, 2009, 03:29:26 PM)
Users Online
Users: 8
Guests: 20
Total: 28
Las-orus
digimar07
maxman
ashantifan
CeciliaCaliz-w-
bmb33
baritonomarchetto77
SX
TinyPortal v1.0 beta 4 ©
Bloc
Loading...