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.
A smaller forum with a few tutorials how to get started with the ScriptAPI.
-
-
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
- 18301 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
- 30818 Views
-
Last post by admin
Sun Feb 28, 2016 2:08 pm
-
-
Scripting 20 - Victory condition
by
Gurt » Sun Aug 25, 2019 12:41 pm
Scripting 20 - Victory condition
Scripting in SFD assumes you have a fair knowledge of C#.
The following code demonstrates how to trigger defeat/victory for different map types based on alive players.
public void OnStartup()
{
if (Game.GetMapType() == MapType.Challenge)
{
// Challenge maps...
- 0 Replies
- 5234 Views
-
Last post by Gurt
Sun Aug 25, 2019 12:41 pm
-
-
Scripting 19 - Player modifiers
by
Gurt » Sun Aug 25, 2019 10:13 am
Scripting 19 - Player modifiers
Scripting in SFD assumes you have a fair knowledge of C#.
The following code demonstrates how to update some modifiers for all players on startup.
See the ScriptAPI documentation for a full list of available modifiers.
public void AfterStartup()
{...
- 0 Replies
- 4372 Views
-
Last post by Gurt
Sun Aug 25, 2019 10:13 am
-
-
Scripting 18 - Change player outfit
by
Gurt » Sun Aug 25, 2019 10:08 am
Scripting 18 - Change player outfit
Scripting in SFD assumes you have a fair knowledge of C#.
The following code demonstrates how to randomize a player's outfit when pressing a button. Available after v.1.3.1b.
static Random RND = new Random();
public void ButtonPressed(TriggerArgs args)
{...
- 0 Replies
- 4308 Views
-
Last post by Gurt
Sun Aug 25, 2019 10:08 am
-
-
Scripting 17 - Give/Remove player items
by
Gurt » Sun Aug 25, 2019 10:06 am
Scripting 17 - Give/Remove player items
Scripting in SFD assumes you have a fair knowledge of C#.
The following code demonstrates how to give a pistol and remove any katana from a player when the player push a button:
public void ButtonPressed(TriggerArgs args)
{
if (args.Sender is IPlayer)...
- 0 Replies
- 4257 Views
-
Last post by Gurt
Sun Aug 25, 2019 10:06 am
-
-
Scripting 16 - Fire
Replies: 2
by
Gurt » Sun Aug 11, 2019 1:14 pm
First post
Scripting 16 - Fire
Scripting in SFD assumes you have a fair knowledge of C#.
The following code demonstrates how to read and remove fire. Available in v.1.3.1.
This is a limited instruction set. All you can do is to read a limited set of data from current fire nodes and remove individual fire...
Last post
Good idea! Adding it to the next update.
- 2 Replies
- 4990 Views
-
Last post by Gurt
Mon Aug 12, 2019 12:10 pm
-
-
Scripting 15 - Listening on player input
by
Gurt » Tue Aug 06, 2019 3:52 pm
Scripting 15 - Listening on player input
Scripting in SFD assumes you have a fair knowledge of C#.
The following code demonstrates how to listen on player key input. Available in v.1.3.1b.
// Example script to listen on player key input
public void OnStartup()
{
// This registers key input...
- 0 Replies
- 4406 Views
-
Last post by Gurt
Tue Aug 06, 2019 3:52 pm
-
-
Scripting 08 - Projectile manipulation
Replies: 4
by
Gurt » Fri Jul 26, 2019 12:20 pm
First post
Scripting 08 - Projectile manipulation
Scripting in SFD assumes you have a fair knowledge of C#.
The following code demonstrates how to manipulate projectiles and listen on projectile hit events in v.1.3.0 (OnProjectileCreated event in v.1.3.1).
// Example script to manipulate projectiles...
Last post
Good suggestions. Adding it after v.1.3.0b.
ScriptAPI: Updated IGame.SpawnProjectile(). It now returns the created IProjectile instance (can return null).
ScriptAPI: Updated ProjectileHitArgs with new property bool RemoveFlag to determine if the projectile is going to be removed by the hit or not.
- 4 Replies
- 6447 Views
-
Last post by Gurt
Fri Aug 02, 2019 12:15 pm
-
-
Scripting 14 - RayCast and HitTest
by
Gurt » Mon Jul 29, 2019 1:59 pm
Scripting 14 - RayCast and HitTest
Scripting in SFD assumes you have a fair knowledge of C#.
The following code demonstrates how to perform RayCasts in the world between two points. Available in v.1.3.0.
// Example script how to RayCast in the world from a player and show some debugging...
- 0 Replies
- 4178 Views
-
Last post by Gurt
Mon Jul 29, 2019 1:59 pm
-
-
Scripting 13 - Visual debugging
by
Gurt » Sun Jul 28, 2019 5:06 pm
Scripting 13 - Visual debugging
Scripting in SFD assumes you have a fair knowledge of C#.
The following code demonstrates how to draw lines, circles and areas for debugging information on the next drawn frame while testing your map in the map editor. This debug information only works while...
- 0 Replies
- 4155 Views
-
Last post by Gurt
Sun Jul 28, 2019 5:06 pm
-
-
Scripting 12 - Listening on player melee action
by
Gurt » Sun Jul 28, 2019 1:08 pm
Scripting 12 - Listening on player melee action
Scripting in SFD assumes you have a fair knowledge of C#.
The following code demonstrates how to listen on player melee action events in v.1.3.0.
public void OnStartup()
{
Events.PlayerMeleeActionCallback.Start(OnPlayerMeleeAction);
}
public...
- 0 Replies
- 4002 Views
-
Last post by Gurt
Sun Jul 28, 2019 1:08 pm
-
-
Scripting 11 - Listening on object creation, damage and termination
by
Gurt » Sat Jul 27, 2019 10:37 pm
Scripting 11 - Listening on object creation, damage and termination
Scripting in SFD assumes you have a fair knowledge of C#.
The following code demonstrates how to listen on objects being created, damaged and terminated in v.1.3.0.
// Example script to listen on objects created, damaged and...
- 0 Replies
- 4047 Views
-
Last post by Gurt
Sat Jul 27, 2019 10:37 pm
-
-
Scripting 10 - Listening on explosions
by
Gurt » Sat Jul 27, 2019 2:06 pm
Scripting 10 - Listening on explosions
Scripting in SFD assumes you have a fair knowledge of C#.
The following code demonstrates how to listen on triggered explosions in v.1.3.0.
Events.ExplosionHitCallback m_explosionHitEvent = null;
public void OnStartup() {
m_explosionHitEvent =...
- 0 Replies
- 3863 Views
-
Last post by Gurt
Sat Jul 27, 2019 2:06 pm
-
-
Scripting 09 - Listening on player damage
by
Gurt » Fri Jul 26, 2019 5:35 pm
Scripting 09 - Listening on player damage
Scripting in SFD assumes you have a fair knowledge of C#.
The following code demonstrates how to listen on player damage events in v.1.3.0.
// Example script to read player damage
public void OnStartup()
{...
- 0 Replies
- 4066 Views
-
Last post by Gurt
Fri Jul 26, 2019 5:35 pm
-
-
Scripting 07 - Storage testbed
by
Gurt » Wed Jul 24, 2019 4:16 pm
Scripting 07 - Storage testbed
Scripting in SFD assumes you have a fair knowledge of C#.
The following code demonstrates how to use the local storage feature.
int timesStarted = 0;
public void OnStartup()
{
if (!Game.LocalStorage.TryGetItemInt( timesStarted , out timesStarted)) {...
- 0 Replies
- 3959 Views
-
Last post by Gurt
Wed Jul 24, 2019 4:16 pm
-
-
Scripting 06 - Ammo management
by
Gurt » Wed Jul 24, 2019 4:08 pm
Scripting 06 - Ammo management
Scripting in SFD assumes you have a fair knowledge of C#.
In this part I will illustrate in the code how to manipulate player item ammo introduced in the 1.3.0 update.
IPlayer plr = ... // any player instance
// Example to set 5 rounds to the current...
- 0 Replies
- 4120 Views
-
Last post by Gurt
Wed Jul 24, 2019 4:08 pm
-
-
Scripting 02 - Spawning objects
Replies: 2
by
Gurt » Thu Mar 17, 2016 9:05 pm
First post
Scripting 02 - Spawning objects
Scripting in SFD assumes you have a fair knowledge of C#. You should be able to declare variables, write your own functions and classes, you should know about inheritance and derived classes and know how to cast objects.
In this part I will illustrate how to...
Last post
If you need help regarding something related with scripts please spend a little of your time exposing the problem in the general section of ScriptAPI, start a new thread and avoid asking something in a non-relevant way if you want to join a discussion in an existing thread.
- 2 Replies
- 6846 Views
-
Last post by JakSparro98
Fri Apr 27, 2018 9:46 pm
-
-
Scripting 05 - Joints testbeds
by
Gurt » Thu Mar 17, 2016 9:20 pm
Scripting 05 - Joints
Scripting in SFD assumes you have a fair knowledge of C#. You should be able to declare variables, write your own functions and classes, you should know about inheritance and derived classes and know how to cast objects.
In the following scripts I will show how to create...
- 0 Replies
- 5075 Views
-
Last post by Gurt
Thu Mar 17, 2016 9:20 pm
-
-
Scripting 04 - Button through script
by
Gurt » Thu Mar 17, 2016 9:17 pm
Scripting 04 - Button through script
Scripting in SFD assumes you have a fair knowledge of C#. You should be able to declare variables, write your own functions and classes, you should know about inheritance and derived classes and know how to cast objects.
In this script I will show how to...
- 0 Replies
- 4742 Views
-
Last post by Gurt
Thu Mar 17, 2016 9:17 pm
-
-
Scripting 03 - Extension scripts ("CampingMines" script example)
by
Gurt » Thu Mar 17, 2016 9:15 pm
Scripting 03 - Extension scripts
Scripting in SFD assumes you have a fair knowledge of C#. You should be able to declare variables, write your own functions and classes, you should know about inheritance and derived classes and know how to cast objects.
In this part I will illustrate how to...
- 0 Replies
- 5404 Views
-
Last post by Gurt
Thu Mar 17, 2016 9:15 pm
-
-
Scripting 01 - Getting Started
by
Gurt » Thu Mar 17, 2016 9:03 pm
Scripting 01 - Getting Started
Scripting in SFD allows you to create unique events and actions in your maps. We will expand the SFD Script API as time goes on to allow for even more possibilities.
Scripting in SFD assumes you have a fair knowledge of C#. You should be able to declare variables,...
- 0 Replies
- 6560 Views
-
Last post by Gurt
Thu Mar 17, 2016 9:03 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