TeaScript Index

Description: You made a script? Submit it here to show your creation to the public, share, take reviews, provision of the help and support is here!
Moderators: Yoshi021, Lx Xzit, 5438A38A, TepigFan101, Moderators

Yoshi021 M
Topic author, Moderator
Moderator
Avatar
Yoshi021 M
Topic author, Moderator
Moderator
Age: 17
Reputation: 80
Posts: 637
Joined: 15 Feb 2016
Location: Yoshi's Island
  • 1

Post #1by Yoshi021 » 15 Aug 2016, 4:08

You can now add your scripts here: http://wohlsoft.ru/pgewiki/TeaScript_Submissions

Here is an index of all the scripts shared in this forum that you can use all found in one thread for your convenience.

SMBX Level Patcher, useful went you want to share your own scripts


Remember to download the Script Examples that includes:
  • Field of View
  • Layer Spin
  • Loop Structure
  • NPC Script
  • Print Text
  • Random Event Trigger
  • Rotating Flamethrowers
  • Timer
  • Castle in the Sky
  • Custom HUD
  • Scripting Platform
  • RetroTetris

NPCs
Thwimp
SMW Chargin Chuck
SMW Iggy Boss
Accurately chasing projectile
Yellow Devil
Six Custom NPC AIs(Include SMM Flying Spinies, Red Bullet Bill, Whomp, Spike, Yellow Paratroopa, Fire Snake)
SMW Amazing Flyin Hammer Bro

Weather
Dynamic Rain
Snow Effect

HUD
Magic Meter from Zelda games
SMB1 HUD
SMB3 HUD
SMW HUD Remastered

Health System
Super Mario 64 Health System
SMB3 Power-up System

Misc.
Background Wave Effect
Boost Blocks
CLICK.vbs
Shop System
Custom Power-Ups
Balance system
Warp's Transition Effect
Parralax System

How to:
Glue Something to the Player
Stop a sysval Script
Force/Check the Player to take a Status
Force/Check the Player's Mount




Helpful Data

Text:
  • call TxtCreate(ID, X Position, Y Position,32,128,0,16,89,1,"TEXT") = Print Text
  • Text(ID).text = "TEXT" = Change Text
    * There can't be two texts with the same ID

Char Names List:
  • Char(id).X = Stands for the x-position of the player
  • Char(id).Y = Stands for the y-position of the player
  • Char(id).Status = Stands for the current state of the player
  • Char(id).InvTime = Stands for the invincible time left for the player
  • Char(id).Xsp = Stands for the x-axis speed of the player
  • Char(id).Ysp = Stands for the y-axis speed of the player
  • Char(id).ItemSlot = Stands for the mount player currently has
  • Char(id).ItemRsrv = Stands for the type ID of the NPC in the player's item box
  • Char(id).ID = Stands for the current character used for the player.
  • Char(id).hitpoint = Hit Points for Peach, Toad, Link.
    * id stands for the player(Player 1 = 1, Player 2 = 2)
    Thanks for Super Mario Player, TheCreator520, and Catskart

lvl Timer:
  • lvlTimer(Count) = Value of the timer
  • lvltimer(x) = The X position of the timer
  • lvltimer(y) = The Y position of the timer
  • lvlTimer(color) = Color of the timer(alpha*256*256*256+red*256*256+green*256+blue) (or use this)
    Thanks for y479021776 and KFCMARIO

Keypress(Key) :
  • Keypress(-1) = X coordinates of the mouse pointer relative to the screen's system
  • Keypress(-2) = Y coordinates of the mouse pointer relative to the screen's system
  • Keypress(Other) = will return -1 when the key is pressed
    * "Other" is the Ascii value for all keys on the keyboard, or values of the following table:
    Spoiler
    1 = Left click of the mouse
    2 = Right click of the mouse
    Player 1 Input
    -10 = Pause
    -11 = Right
    -12 = Left
    -13 = Down
    -14 = Up
    -15 = Alt. Jump
    -16 = Jump
    -17 = Run
    -18 = Alt Run
    -19 = Select

    Player 2 Input
    -20 = Pause
    -21 = Right
    -22 = Left
    -23 = Down
    -24 = Up
    -25 = Alt. Jump
    -26 = Jump
    -27 = Run
    -28 = Alt Run
    -29 =Select

    Thanks for Catskart


If you have more helpful data, tell me so I can add it here.
Links
ImageImageImage
Image
Image
"Going to University is FUN!" :pardon:

Catskart M
Count
Count
Avatar
Catskart M
Count
Count
Age: 18
Reputation: 120
Posts: 256
Joined: 29 Nov 2015
Location: France

Post #2by Catskart » 11 Sep 2016, 22:30

Keypress(Key) :
Keypress(-1) is the X position of the mouse pointer.
Keypress(-2) is the Y position of the mouse pointer.
Keypress(Other), return -1 if the key selected is pressed.
"Other" is the Ascii value for all keys on keyboard. (65 for A key.)
Last edited by Catskart on 11 Sep 2016, 23:05, edited 1 time in total.

Yoshi021 M
Topic author, Moderator
Moderator
Avatar
Yoshi021 M
Topic author, Moderator
Moderator
Age: 17
Reputation: 80
Posts: 637
Joined: 15 Feb 2016
Location: Yoshi's Island

Post #3by Yoshi021 » 11 Sep 2016, 23:00

Thanks!
Links
ImageImageImage
Image
Image
"Going to University is FUN!" :pardon:

Super Mario Player M
Duke
Duke
Avatar
Super Mario Player M
Duke
Duke
Reputation: 21
Posts: 126
Joined: 23 Jun 2016
Location: Socialist Federative Soviet Republic of the Mushrooms
Tencent QQ

Post #4by Super Mario Player » 17 Sep 2016, 15:59

I've got a question: does the function Keypress return the coordinates of the mouse pointer relative to the screen's system of coordinates, or relative to the level's?
Last edited by Super Mario Player on 17 Sep 2016, 16:26, edited 2 times in total.
My current project:
Spoiler
The Legend of Zelda: The Curse of the Wise Men
Image

The Tower of Challenges

Languages I speak (if you want to PM me):
Spoiler
Image Image Image

Click to see my YouTube channel
Image

Catskart M
Count
Count
Avatar
Catskart M
Count
Count
Age: 18
Reputation: 120
Posts: 256
Joined: 29 Nov 2015
Location: France

Post #5by Catskart » 17 Sep 2016, 16:13

Super Mario Player wrote:I've got a question: does the function Keypress return the coordinates of the mouse pointer relative to the screen's system of coordinates, or relative to the level's?

Keypress (-1 and -2) returns the coordinates of the mouse pointer relative to the screen's system.

Super Mario Player M
Duke
Duke
Avatar
Super Mario Player M
Duke
Duke
Reputation: 21
Posts: 126
Joined: 23 Jun 2016
Location: Socialist Federative Soviet Republic of the Mushrooms
Tencent QQ

Post #6by Super Mario Player » 17 Sep 2016, 16:27

Thanks :) It's gonna help me for my Boost Block Script, which I need for my episode :good:
My current project:
Spoiler
The Legend of Zelda: The Curse of the Wise Men
Image

The Tower of Challenges

Languages I speak (if you want to PM me):
Spoiler
Image Image Image

Click to see my YouTube channel
Image

Alvespires M
Count
Count
Avatar
Alvespires M
Count
Count
Age: 17
Reputation: 8
Posts: 213
Joined: 20 Aug 2016
Location: Koopa Troopa Beach

Post #7by Alvespires » 19 Sep 2016, 17:37

I'm making a SM64 like world,and only rests 2 things to finish it.
The first one has nothing to do with my question

The second one is make the player lose coins when the Script is activated. :cry:

Can someone help me?
"This giant fish is a mouth breeder, so it spits babies out of its mouth at Mario." - Nintendo Power Strategy Guide for Super Mario Bros. 3, page 9.

I support:

Image
Image
Image

Catskart M
Count
Count
Avatar
Catskart M
Count
Count
Age: 18
Reputation: 120
Posts: 256
Joined: 29 Nov 2015
Location: France

Post #8by Catskart » 17 Dec 2016, 1:27

Yoshi021 wrote:[*]lvlTimer(color) = Color of the timer(alpha*256*256*256+red*256*256+green*256+blue)

I discovert that y479021776 has made a program to get the value for one color in SMBX :
download/file.php?id=316&filename=SMBXCC.zip

Zwertll
Close friend
Close friend
Zwertll
Close friend
Close friend
Reputation: 28
Posts: 82
Joined: 6 Dec 2016

Post #9by Zwertll » 29 Dec 2016, 1:16

You can check if the player is jumping? (no keypress (-16))

Eri7 M
Marquis
Marquis
Avatar
Eri7 M
Marquis
Marquis
Age: 16
Reputation: 32
Posts: 194
Joined: 19 Dec 2016
Location: Germany , Bonn

Post #10by Eri7 » 21 Feb 2017, 1:34

Bouss , you should update this topic , there are a lot more scripts now and if they are here new members of this forum can find them easily.
A very interesting international student!
Check my project!
Image
Image
You should check out this project too!
Image

Yoshi021 M
Topic author, Moderator
Moderator
Avatar
Yoshi021 M
Topic author, Moderator
Moderator
Age: 17
Reputation: 80
Posts: 637
Joined: 15 Feb 2016
Location: Yoshi's Island

Post #11by Yoshi021 » 21 Feb 2017, 3:12

Could you show me some scripts that I forgot?
Links
ImageImageImage
Image
Image
"Going to University is FUN!" :pardon:

Super Mario Player M
Duke
Duke
Avatar
Super Mario Player M
Duke
Duke
Reputation: 21
Posts: 126
Joined: 23 Jun 2016
Location: Socialist Federative Soviet Republic of the Mushrooms
Tencent QQ

Post #12by Super Mario Player » 23 Feb 2017, 17:15

You can now use new parameters with Char(id):
Char(id).bombcnt: if you're playing as Link, this is your bomb count.
Char(id).keycnt: if you're playing as Link, this is your key count.
Char(id).fluddcap: if you're using FLUDD, this is how much water you have left.
My current project:
Spoiler
The Legend of Zelda: The Curse of the Wise Men
Image

The Tower of Challenges

Languages I speak (if you want to PM me):
Spoiler
Image Image Image

Click to see my YouTube channel
Image

Yoshi021 M
Topic author, Moderator
Moderator
Avatar
Yoshi021 M
Topic author, Moderator
Moderator
Age: 17
Reputation: 80
Posts: 637
Joined: 15 Feb 2016
Location: Yoshi's Island

Post #13by Yoshi021 » 16 Apr 2017, 22:27

You can now add your scripts here: http://wohlsoft.ru/pgewiki/TeaScript_Submissions
Links
ImageImageImage
Image
Image
"Going to University is FUN!" :pardon:


Return to “Script submission”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest