Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.
New to the forum?
Say hello in this topic! Also make sure to read
the rules.
Here you can find answered ScriptAPI topics.
-
-
The official Discord channel
Replies: 3
by
Hjarpe » Mon Nov 23, 2020 7:42 pm » in
General
First post
Attention superfighters!
Step right up, come on in, and join the super-official MythoLogic Interactive Discord server!
There are topics for Superfighters Deluxe, map-making, bug reports and feedback, excellent memes, as well as upcoming games like Filcher and Barbarian Odyssey.
Link:
It's like...
Last post
Woah, very nice! So many people have been asking around for this and now it finally exists.
- 3 Replies
- 18065 Views
-
Last post by tilt56
Mon Nov 23, 2020 11:42 pm
-
-
Forum rules
by
admin » Sun Feb 28, 2016 2:08 pm » in
General
Posting in any part of the forum will require you to follow these rules.
Breaking any of these rules will get you a warning, which will be recorded, or get your account locked depending on the severity of the post.
1) Do not post any abusive, obscene, vulgar, slanderous, hateful, threatening,...
- 0 Replies
- 30622 Views
-
Last post by admin
Sun Feb 28, 2016 2:08 pm
-
-
Creating intelligent bots
Replies: 10
by
Meowtist » Thu Jun 01, 2017 9:54 pm
First post
I personally dont know to script, but is there a way to program intelligent bots, like in superfighters?
Last post
Shock made a really basic bot. As I said, predetermined combos is all I see in those bots. They aren't intelligent at all. They just have basic logic, in which you must be in a specific situation in order for it to deal serious damage. Whereas the examples I saw above are really a step closer to...
- 10 Replies
- 7942 Views
-
Last post by Evilsack
Sat Jun 03, 2017 8:02 pm
-
-
Is there a gameover script?
Replies: 2
by
Scraper » Tue May 30, 2017 10:21 pm
First post
Hi, I just made a deathrun-like map where you respawn instantly.
However, for some reason the /gameover script doesn't work.
This is the script for the gameover public void gameover(TriggerArgs args)
{
Game.SetGameOver( Congratulations! );
}
So, I made a Button00 and made it's Object Id...
Last post
Oh, thanks.
- 2 Replies
- 3024 Views
-
Last post by Scraper
Wed May 31, 2017 12:16 pm
-
-
A script to make a character fly
Replies: 1
by
jamisco » Sun Mar 12, 2017 3:07 am
First post
So like I've been trying to create iron man, yea... I'm not even close... anyways, how do you get a character to fly. I know its possible because the dragon ball z mod made characters fly but i just do not know exactly how? Can any one of you help a brother out.
Dragon ball z mod on YouTube......
Last post
You should like, read the code...
When I started SFD I was on the same point, but I started reading others code and got better and better. Reading real SFD map or mod code is the best and maybe the only way to efficiently learn SFD api.
- 1 Replies
- 2384 Views
-
Last post by Motto73
Fri May 19, 2017 9:06 am
-
-
I just posted an online copy of the Superfighters Deluxe API.
Replies: 2
by
Juansero29 » Wed Mar 29, 2017 6:02 pm
First post
Access it here.
I just made a copy on a private repository on github, I thought it could be useful for us coders to have an online version. You can add it to your bookmarks and have it right away. I will be constantly updating it with the newest API Documentation live at the moment on the last...
Last post
Yep, for some reason the logo disappeared after Pre-alpha 1.9 if I remember correctly.
- 2 Replies
- 3383 Views
-
Last post by JakSparro98
Wed Mar 29, 2017 8:26 pm
-
-
What are the names and colors for clothing items in the IProfileClothingItem class?
Replies: 2
by
Juansero29 » Sun Mar 26, 2017 1:39 pm
First post
When instantiating a new IProfileClothingItem (to set the properties inside a IProfile) the parameters in the constructor are the name of the clothing item (string) and then the name of the primary ColorPackage in the ColorPalette for this clothing item. I was wondering what are the names of the...
Last post
Hey Gurt! Thanks for your quick answer! I never thought about peeking out on the game files for that kind of stuff, now I know another source of information ;)
I finally got it working the way I wanted to. I found the game colors for items in another file as well, so I'm posting them here:...
- 2 Replies
- 2709 Views
-
Last post by Juansero29
Sun Mar 26, 2017 4:38 pm
-
-
How to create a select class script?
Replies: 1
by
Xstrein » Mon Mar 20, 2017 6:53 pm
First post
Hi everyone, I want know how to create a script that you can select a combat class!
Last post
NF 3 has a design like that and also BoT 2.1b, but I'd suggest you to use the NF 3 combat class instead, cause it's moe single and understable (If you're a script, else rekt).
Anyway, there is a class picker script (Like the combat class choose).
Here's the link:
- 1 Replies
- 2050 Views
-
Last post by Dumby Eggy
Mon Mar 20, 2017 11:18 pm
-
-
Detecting when players are alive or dead.
Replies: 1
by
Relgap » Sat Mar 18, 2017 3:36 pm
First post
Hello,
I am currently facing an issue where I require script which can end the map when either all players are dead, or when a certain object is destroyed. I have managed to solve the latter problem, but I still struggle with the first one. Can anyone help me with this problem?
Last post
it's pretty simple to detect player state with the IsDead command that returns true if the player is dead (of course) and false when is alive.
You only need to execute this piece of code to check that and end the round.
Events.UpdateCallback m_updateEvent = null;
public void OnStartup() {...
- 1 Replies
- 2162 Views
-
Last post by JakSparro98
Sat Mar 18, 2017 6:21 pm
-
-
- 5 Replies
- 4331 Views
-
Last post by renttis
Wed Mar 15, 2017 4:54 pm
-
-
Overriding "WaitDestinationReached" command action
Replies: 1
by
JakSparro98 » Sat Mar 11, 2017 8:17 pm
First post
A scripted player is running to a route (multiple directions) and there's a wait for destination reached at the end of each piece of path, now if the player accidentally fall down from a platform and grab an edge it remains stuck, I cannot make the player to jump or release the grab because of the...
Last post
These commands are not intended to be used to create an AI.
Use the IPlayer.ClearCommandQueue() function which clears the current command queue and terminates the current command being processed and then you can give other commands for the player.
- 1 Replies
- 1961 Views
-
Last post by Gurt
Sun Mar 12, 2017 8:30 pm
-
-
Detecting the direction the player is facing error
Replies: 4
by
jamisco » Sun Feb 26, 2017 6:10 am
First post
One can use the IPlayer facing direction command in order to get the direction a player is facing either left or right... if the player is facing right, the facing direction command returns the integer 1, if the player is facing left it returns -1... but my problem is with the -1 aspect of it ......
Last post
Ok, i see, the object was in the far side of the map, the place where a player cant see, it must have probably fallen off
- 4 Replies
- 3658 Views
-
Last post by jamisco
Sun Feb 26, 2017 4:41 pm
-
-
bounding box issue for rotated tiles
Replies: 1
by
JakSparro98 » Sat Feb 25, 2017 12:24 am
First post
When I catch an objects list with the Game.GetObjectsByArea() I get an object near the area that is rotated but not inside the area.
I know what this behaviour is, but I want to ask if it could be changed because it goes into conflict with my attempt to create a raycast function.
I also take...
Last post
I want to ask if it could be changed
Nope.
to ask if will ever added a native raycast
Maybe we'll add it for future updates.
That's something I want in future ScriptAPI.
- 1 Replies
- 1983 Views
-
Last post by Gurt
Sat Feb 25, 2017 4:12 pm
-
-
A script to get the total amount of dmg a player has taken
Replies: 1
by
jamisco » Mon Feb 20, 2017 7:07 pm
First post
So far here is mine ...
public void GetPlayer() // get player is just a normal method that will be called somewhere else..fyi
{
foreach (IPlayer playr in Game.GetPlayers())
{
IPlayerStatistics dmg1 = null;
float dmg = dmg1.TotalDamageTaken;
Game.ShowPopupMessage(dmg.ToString());
}
}...
Last post
You can't get a property of a null value...
if:
IPlayerStatistics dmg1 = null ;
then
float dmg = dmg1.TotalDamageTaken;
is the same as saying:
float dmg = null .TotalDamageTaken;
the fix is simple just replace your IPlayerStatistics dmg1 = null; with:
IPlayerStatistics dmg1 =...
- 1 Replies
- 2109 Views
-
Last post by ShutDownMan
Mon Feb 20, 2017 10:09 pm
-
-
CPU Can not be equipped anything if you bring a script?
Replies: 6
by
Jovani » Sun Feb 19, 2017 8:24 am
First post
The cpu can equip things but if you bring a script for example to attack a player infinitely does not serve the tool so you can equip something?
How disappointing :/
Last post
PlayerCommands only works when there are no user or AI controlling the player. This information is missing in the ScriptAPI - adding it to the next update.
So when you activate TutorialA the AI takes control and commands can't be used.
Notice that SetBotType() is obsolete and abandoned. It will be...
- 6 Replies
- 4326 Views
-
Last post by Gurt
Sun Feb 19, 2017 10:56 pm
-
-
Script for Profile
Replies: 6
by
DoranIsHere » Sat Jul 16, 2016 11:27 pm
First post
Hello, can someone give me a script that can change player profile(looking) when they spawn?
and can i do every player individual profile?
Thanks
-doran
Last post
The Game.GetPlayers() will return all players in game, PLAYERS, including bots... Bots don't have an IUser controlling them, so IPlayer.GetUser() can be null, that's why you need a failsafe for that
- 6 Replies
- 5821 Views
-
Last post by ShutDownMan
Sun Feb 19, 2017 10:18 pm
-
-
How do i give - " Reinforced glass" more or less Health using the SetHealth() method
Replies: 10
by
jamisco » Sun Feb 12, 2017 7:07 am
First post
Just so you know, soughta new to C-sharp
so far i go this but it does work...
abstract void SetHealth(float hp) {
glass.SetHealth(1000f); \\ glass is the object id for the reinforced glass object
}
I keep getting this error when i try to compile ----- virtual or abstract methods cannot be...
Last post
Oh no, your code was completely clean, the only thing is that newbies (me some time ago) sometimes don't understand some things in the language (e.g. Dictionaries)
- 10 Replies
- 6684 Views
-
Last post by ShutDownMan
Sat Feb 18, 2017 9:42 pm
-
-
Bomb Template
Replies: 2
by
DippyDaDewott » Mon Jan 09, 2017 10:15 pm
First post
If you want the template, Here:
I Can't understand this. I'm doing everything it Tells me to, but it's not working.
Even on the template map itself the bomb wont explode.
Help?
Last post
Works now. Thanks a lot.
- 2 Replies
- 2766 Views
-
Last post by DippyDaDewott
Mon Jan 09, 2017 11:48 pm
-
-
ScriptAPI breaking changes in Alpha 1.2.0
Replies: 6
by
Gurt » Sun Jan 08, 2017 1:44 pm
First post
This thread is only to highlight upcoming breaking changes to the ScriptAPI in Alpha 1.2.0 (so you can plan accordingly). The update is still work-in-progress and will take some time to complete.
IPlayer.SetBotType() and IPlayer.BotType will be removed in future versions of SFD and replaced with...
Last post
Good point. Marking the functions as obsolete for this update. The functions will still be removed in future updates of SFD but just not this one. This should give all map makers plenty of time to update their maps.
The new MoveToPosition command acts just like the old RunToPosition. Y-coordinate...
- 6 Replies
- 4781 Views
-
Last post by Gurt
Mon Jan 09, 2017 6:14 pm
-
-
delay in events
Replies: 3
by
TAW_legitscoper » Sat Jan 07, 2017 1:35 pm
First post
Hello, I have a problem in creating my map. I want to make gun burst for let's say, 20 bullets and wait some time. Here is script:
public void Timer(TriggerArgs args)
{
}
public void turret(TriggerArgs args){
for(int i = 0; i < 20;i++)
{
IObject obj = Game.GetSingleObjectByCustomId( start...
Last post
remove the loop, just make sure the timer trigger repeat every ~200
- 3 Replies
- 3288 Views
-
Last post by gwendalaze
Sat Jan 07, 2017 6:52 pm
-
-
Refill script
Replies: 1
by
aBraM » Sat Dec 31, 2016 10:43 pm
First post
a script for a button to refill ammo
Last post
I mean you are doing a teams map (which is the same I'm doing, but like HoTH And Capture Point).
Alright: here's the script:
public void refil(TriggerArgs args)
{
IPlayer ply = (IPlayer)args.Sender;
ply.GiveWeaponItem(ply.CurrentPrimaryWeapon.WeaponItem);...
- 1 Replies
- 1942 Views
-
Last post by Dumby Eggy
Sun Jan 01, 2017 2:47 am
-
-
Spawn grenade
Replies: 3
by
aBraM » Sat Dec 31, 2016 3:06 pm
First post
I have no absolute clue in scripts and I want a script that will spawn a grenade where I want thx
Last post
As I said in This thread (complete explanation)
Game.CreateObject( WPNGRENADESTHROWN , new Vector2 (x,y));
- 3 Replies
- 2990 Views
-
Last post by JakSparro98
Sat Dec 31, 2016 11:06 pm
-
-
Call Dispose() after object removal?
Replies: 9
by
JakSparro98 » Sun Oct 16, 2016 11:59 pm
First post
I was wondering if there is some impact on performance when I force a Dispose() call on objects implemented with IDispose or is it provided in the destructor itself?
Last post
here an example:
Download
- 9 Replies
- 6107 Views
-
Last post by JakSparro98
Sat Dec 31, 2016 2:35 am
-
-
Shooting bullets
Replies: 5
by
Fnz » Thu Jun 16, 2016 2:02 pm
First post
can someone please write me a script to make a machine shoot Bullet not flames
Last post
Is there a way to make the player being the Dir of the shootingmachine ?
- 5 Replies
- 4699 Views
-
Last post by Dumby Eggy
Mon Dec 26, 2016 9:14 pm
-
-
How many system namespaces uses the SFD Script_API + Why did you added the script_API
Replies: 2
by
Dumby Eggy » Wed Dec 21, 2016 8:05 pm
First post
I want to ask how many system namespaces uses SFD in script_api. I want to have a full sense of C# in SFD using Visual Studio 2015.
Also why the developers added the script_API? what was the real goal to add the script_API, and why did you selected to use C# and not python ?
Thanks for the help.
Last post
The API allows you to make maps beyond the simple building blocks we supply in the editor. C# is for convenience as the game is written in C# and .NET provides a C# compiler.
- 2 Replies
- 2537 Views
-
Last post by Gurt
Fri Dec 23, 2016 10:24 pm
-
-
how do you make each CPU team diffrence and how do you make a open and closeable door?
Replies: 2
by
[HERC]riotz » Sun Dec 11, 2016 3:46 pm
First post
i was thinking about creating guard and a dummy but for some reasson both team are on same team i need help how do i make them on diffrence team
like i want guard team 1
and i want the dummy team 4
Last post
For the door read scripting tutorial. This will need script triggers, buttons. Find the object that could be a door. Then add two buttons, one for open, one to close. Use the button to spawn the door blocks, and destroy them(Give them a customId) which is given in the sfd scripting...
- 2 Replies
- 2502 Views
-
Last post by Rhodes
Wed Dec 21, 2016 12:06 pm
-
-
Need a Script
Replies: 11
by
Coghner » Sun Nov 06, 2016 9:35 pm
First post
i'm searching for a Script that kills all the players from a team (like,when a certain objective is done,all the players from the loser team dies.)
is it even possible? thx!
Last post
thx man,thats exactly what it wanted! you helped me a lot man,thx.
- 11 Replies
- 7492 Views
-
Last post by Coghner
Fri Nov 11, 2016 11:10 pm
Forum permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum