Advanced Search

Author Topic: Help in making classes.  (Read 2495 times)

0 Members and 1 Guest are viewing this topic.

August 09, 2016, 06:52:23 PM
Read 2495 times

Offline LemonPig

  • Standard Member

  • Im Chompdoge
  • Date Registered: August 09, 2016, 06:46:02 PM

    • View Profile
Help in making classes.
« on: August 09, 2016, 06:52:23 PM »
I was testing my class, then when zandorum launched, when the green bar was full, this showed up:


"Execution could not continue.

Script error, "CSCCTemplate-v2.pk3:actors/classes/megaman/megaclass.txt" line 3:
Unexpected 'megaman' in definition of 'MegamanCS'"
I

November 07, 2016, 01:22:53 AM
Reply #1

SMMG44

  • Guest
Re: Help in making classes.
« Reply #1 on: November 07, 2016, 01:22:53 AM »
You need to add PlayerPawn instead of <> like so:

actor SMMG4 : PlayerPawn

November 08, 2016, 07:01:28 PM
Reply #2

SMMG44

  • Guest
Re: Help in making classes.
« Reply #2 on: November 08, 2016, 07:01:28 PM »
I was testing my class, then when zandorum launched, when the green bar was full, this showed up:


"Execution could not continue.

Script error, "CSCCTemplate-v2.pk3:actors/classes/megaman/megaclass.txt" line 3:
Unexpected 'megaman' in definition of 'MegamanCS'"
I

What is the Code? If it's a class code, Read mine:


actor SMMG4 : PlayerPawn
{
Health 300
player.displayname "SMMG4"
player.soundclass "megaman"
player.startitem "TNTCannon"
player.startitem "TNTCannonAmmo", 28
player.forwardmove 0.9, 0.9
player.sidemove 0.88, 0.88
player.jumpz 10
mass 9999
gravity 0.8
+NODAMAGETHRUST
+DONTBLAST
+NOBLOOD
+QUICKTORETALIATE
scale 2

States
{
Spawn:
SMMG A 0
SMMG B 1
SMMG A 1
Goto Spawn+2
See:
SMMG BCDE 5
Goto Spawn
Missile:
SMMG F 6
SMMG G 6
goto Spawn
ClassPain:
SMMG H 0
goto PainContinue
DeathFix:
SMMG H 0
goto DeathContinue
ClassDeath:
SMMG H 1
goto MegaDeathEnd
}
}