Creating Easy Spells

Learn more on how to use Sandbox, or submit your own tutorials or resources.
Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: Creating Easy Spells

Postby Hirato » January 25th, 2011, 1:14 am

all constants are defined in data/rpg/game.cfg

Code: Select all

// possible status effects
// these are to be used with r_status_addgeneric
STATUS_HEALTH = 0
STATUS_MANA = 1
STATUS_MOVE = 2
STATUS_CRIT = 3
STATUS_HREGEN = 4
STATUS_MREGEN = 5
STATUS_STRENGTH = 6
STATUS_ENDURANCE = 7
STATUS_AGILITY = 8
STATUS_CHARISMA = 9
STATUS_WISDOM = 10
STATUS_INTELLIGENCE = 11
STATUS_LUCK = 12
STATUS_ARMOUR = 13
STATUS_DIPLOMANCY = 14
STATUS_MAGIC = 15
STATUS_MARKSMAN = 16
STATUS_MELEE = 17
STATUS_STEALTH = 18
STATUS_FIRE_T = 19
STATUS_WATER_T = 20
STATUS_AIR_T = 21
STATUS_EARTH_T = 22
STATUS_MAGIC_T = 23
STATUS_SLASH_T = 24
STATUS_BLUNT_T = 25
STATUS_PIERCE_T = 26
STATUS_FIRE_R = 27
STATUS_WATER_R = 28
STATUS_AIR_R = 29
STATUS_EARTH_R = 30
STATUS_MAGIC_R = 31
STATUS_SLASH_R = 32
STATUS_BLUNT_R = 33
STATUS_PIERCE_R = 34
STATUS_DISPEL = 35
STATUS_DOOM = 36
STATUS_REFLECT = 37
STATUS_INVIS = 38
//STATUS_LIGHT = 39 - use r_status_addlight
STATUS_STUN = 40
//STATUS_POLYMORPH = 41 - use r_status_addpolymorph
STATUS_SILENCE = 42
STATUS_LOCK = 43
STATUS_UNLOCK = 44


note, many of them currently serve no use
This is not a url, clicking it is pointless

arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Creating Easy Spells

Postby arcones » January 25th, 2011, 10:09 am

Many thanks Hirato!
Is this the SVN and if so then the rest of the STATUS's are coming?
Image
Want a user bar like this one? PM Leo!

Kooldoode
Member
Member
Posts: 66
Joined: July 21st, 2011, 1:06 am
Name: Dallas
IRC Username: Kooldoode
Location: Cloud 9

Re: Creating Easy Spells

Postby Kooldoode » July 26th, 2011, 2:23 am

thanks for the tutorial but my only question is.......where do i put the code, and is there any special materials needed for this?
They say to Fight for world peace, and yet they also say Fighting never solved anything.

I love PAS <3

User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: Creating Easy Spells

Postby Leo_V117 » July 26th, 2011, 7:04 am

Dude. You put the code in data/rpg_game.cfg (2.5), as for 2.6, I have no idea... 2.7, you put it in a new folder in data/rpg/games and code stuff there.

Kooldoode
Member
Member
Posts: 66
Joined: July 21st, 2011, 1:06 am
Name: Dallas
IRC Username: Kooldoode
Location: Cloud 9

Re: Creating Easy Spells

Postby Kooldoode » July 31st, 2011, 6:43 pm

haha see im very new to coding so i dont know alot of these things......but thank you.
is there any required programs for this?
They say to Fight for world peace, and yet they also say Fighting never solved anything.

I love PAS <3

chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: Creating Easy Spells

Postby chocolatepie33 » July 31st, 2011, 7:43 pm

Only notepad (or a basic text editor), and even then Sandbox has one built in, just hit F6 in edit mode.
Julius wrote:Contribute to http://www.opengameart.org NOW!

Save the wiki!

Kooldoode
Member
Member
Posts: 66
Joined: July 21st, 2011, 1:06 am
Name: Dallas
IRC Username: Kooldoode
Location: Cloud 9

Re: Creating Easy Spells

Postby Kooldoode » July 31st, 2011, 11:47 pm

oh well than thank you.
i take it this would only work in RPG mode, correct?

EDIT:And since when did we have a 2.7? i only have 2.6.1.
They say to Fight for world peace, and yet they also say Fighting never solved anything.

I love PAS <3

arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Creating Easy Spells

Postby arcones » August 1st, 2011, 8:39 am

Since we've had an SVN...

The official release for 2.7 should come soon.
Image
Want a user bar like this one? PM Leo!

User avatar
kid matthew
Developer
Developer
Posts: 468
Joined: August 11th, 2009, 5:28 pm
Name: Matthew
IRC Username: Kid_matthew
Location: Land of Sandbox.

Re: Creating Easy Spells

Postby kid matthew » August 1st, 2011, 4:16 pm

Arc what you mean we Since we've had an SVN... The SVN has always been there being updated daily. it will always be there.
Always having the most up to date content.
Cheers
Matthew
Lost Lands Work In Progress <3 viewtopic.php?f=10&t=2522 <3

arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: Creating Easy Spells

Postby arcones » August 1st, 2011, 4:56 pm

That's my point. ;D
Image
Want a user bar like this one? PM Leo!


Return to “Tutorials and Resources”

Who is online

Users browsing this forum: No registered users and 0 guests