Page 4 of 5

Re: Creating Easy Spells

Posted: January 25th, 2011, 1:14 am
by Hirato
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

Re: Creating Easy Spells

Posted: January 25th, 2011, 10:09 am
by arcones
Many thanks Hirato!
Is this the SVN and if so then the rest of the STATUS's are coming?

Re: Creating Easy Spells

Posted: July 26th, 2011, 2:23 am
by Kooldoode
thanks for the tutorial but my only question is.......where do i put the code, and is there any special materials needed for this?

Re: Creating Easy Spells

Posted: July 26th, 2011, 7:04 am
by Leo_V117
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.

Re: Creating Easy Spells

Posted: July 31st, 2011, 6:43 pm
by Kooldoode
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?

Re: Creating Easy Spells

Posted: July 31st, 2011, 7:43 pm
by chocolatepie33
Only notepad (or a basic text editor), and even then Sandbox has one built in, just hit F6 in edit mode.

Re: Creating Easy Spells

Posted: July 31st, 2011, 11:47 pm
by Kooldoode
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.

Re: Creating Easy Spells

Posted: August 1st, 2011, 8:39 am
by arcones
Since we've had an SVN...

The official release for 2.7 should come soon.

Re: Creating Easy Spells

Posted: August 1st, 2011, 4:16 pm
by kid matthew
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

Re: Creating Easy Spells

Posted: August 1st, 2011, 4:56 pm
by arcones
That's my point. ;D