[Outdated concept] NPC-Script for NPC programming

Description: Outdated project resources came from viewforum.php?f=17

Wohlstand M
Topic author, Lead Developer
Lead Developer
Avatar
Wohlstand M
Topic author, Lead Developer
Lead Developer
Age: 30
Reputation: 493
Posts: 1747
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ
  • 3

Post #1by Wohlstand » 4 May 2014, 17:24

Hello everybody.
I have just ended my work with the specification of a new declarative script language, which allows the programming of any NPC algorithms, and gives the engine more freedom!

Get example language specification:
Download ODT
Download PDF
Simple examples of script

Later we will try to implement the interpreter of this language with a debugger for testing scripts without full game/level test starts

EDIT: Forgot to note that this concept has been canceled for future production, but kept for historical purposes. The Lua language is more suitable than this.
Last edited by Anonymous on 5 May 2014, 15:37, edited 1 time in total.

Veudekato M
Viscount
Viscount
Avatar
Veudekato M
Viscount
Viscount
Reputation: 79
Posts: 369
Joined: 19 Feb 2014
Location: Russia

Post #2by Veudekato » 5 May 2014, 12:08

you can edit *.npcs scripts with notepad.
My channel (PlatGEnWohl news and tutorials , smbx tests):
http://www.youtube.com/channel/UC6h-42umT14iR1wa3VkOs3Q

Alucard
Our friend
Our friend
Avatar
Alucard
Our friend
Our friend
Reputation: 8
Posts: 62
Joined: 5 May 2014

Post #3by Alucard » 5 May 2014, 22:07

I have read the example scripts and found a bug/error in Boom Boom one. At the beginning of the script you set NPC`s HP to 10 and damage dealt by being stomped is set to 3. This would cause "insert playable character here" to be required to stomp this mini-boss 4 times, instead of 3, like in most other games (including original SMBX).

Wohlstand M
Topic author, Lead Developer
Lead Developer
Avatar
Wohlstand M
Topic author, Lead Developer
Lead Developer
Age: 30
Reputation: 493
Posts: 1747
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

Post #4by Wohlstand » 5 May 2014, 22:12

Alucard wrote:I have read the example scripts and found a bug/error in Boom Boom one. At the beginning of the script you set NPC`s HP to 10 and damage dealt by being stomped is set to 3. This would cause "insert playable character here" to be required to stomp this mini-boss 4 times, instead of 3, like in most other games (including original SMBX).
Oh... My mistake: I set his health by the number of fireballs shoots needed to kill him (I counted 10, but I have to think, but I am going to recount it with "NoMoving" mode, or I will allow decimals to set the health values (10.0 or 10.00) )

Added after 3 hours 56 minutes:
Alucard, I did a test: Boom-boom's health is 9hp: you need to use 9 fireballs/hammers in order to kill him, and one stomp could hurt his health by 3 hp.
I updated the examples archive with the corrected values.


Return to “Project Resources”