• Register
Post tutorial RSS Scripting in WDC

This is an article which will teach you how to create your own script for WDC

Posted by on - Basic Client Side Coding

WDC is a scriptable game app which allow you to create your custom script, this article will teach you how to create your own script for this app

You need to follow these steps if you want to create your own script

1. Create your custom script class inherit from WDCScript

For example, you have a project named CustomScript, you need to make this class inherit from WDCScript like this:

class CustomScript : WDCScript
{
    ....
}

2. Implement the methods

There are four methods you need to implement in your Custom Script class yourself:

  • BeforeRunScript
  • Init
  • Update
  • SetRenderPanel

3. Run

Once you finish writing your codes, compile it into a dll and copy it into the Wardeclarer Scripts folder

After that, double-click the wardeclarer.exe and your script will showup in the script selector if your script dll is correct

See Also:

Github.com

Github.com

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Tutorial
Browse
Tutorials
Views
11 (1 today)
Share
Related Games
Wardeclarer
Wardeclarer Arcade