• Advertisement

Archived

This topic is now archived and is closed to further replies.

My Scripting Language needs a quick lookover

This topic is 6446 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Here''s the basic design of my scripting language. Can somebody take a quick look over it to see if you can catch anything I might be missing?
Variables That Can Be Accessed:
	PLAYER is defined as the group of
	{
		float x
		float y

		float jumpSpeed
		float jetFuel
		bool thrusting
		
		int health
		
		int facing

		WEAPON curWep
		WEAPON nextWep
		WEAPON lastWep

		@FireWeapon
		@IncreaseThrust
		@StartThrust
		@MoveLeft
		@MoveRight
  	}

PLAYER ClosestEnemy 
PLAYER FarthestEnemy 
PLAYER Self
PLAYER ClosestFriend 
PLAYER FarthestFriend 
	PLAYER EvokedEvent
Events:
	ATTACKED
	ENEMYENTEREDSIGHT
	ENEMYCANSEE	
	ENEMYLEFTSIGHT
	FRIENDENTEREDSIGHT
	FRIENDCANSEE
	FRIENDLEFTSIGHT
	KILLEDENEMY
Statements:
	ON  { … }
	IF (logical statement) { … }

Basic Syntax:
	There’ll be ON  for each event the script wants to have a handler for. It’ll be executed 
Each time the event is called. An @ sign indicates a function. Here is an example syntax of a file to give you some idea:

ON  
{
	IF (Self.x > EvokedEvent.x)
	{
		Self.@MoveLeft		
Self.@FireWeapon
	}
}
 
Bunnies At War - A new wave in bunnydom! http://users.moscow.com/rikhowe/baw/baw.asp

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement