The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing Life Mana Stam Regen *solved*
Author Message
AmpereJoule
Journeyman
*

Posts: 59
Likes Given: 7
Likes Received: 0 in 0 posts
Joined: Dec 2012
Reputation: 0



Post: #3
RE: Changing Life Regen
I have a script that is a Stone which the player has to choose:
Warrior <button here>
Archer <button here>
Mage <button here>

these are some lines of it:
Code:
[DIALOG D_classes BUTTON]
ON=0 5
IF !(<ARGN>)
src.skillclass=Class_guerreiro
GO britain
ELIF (<ARGN>==1)
src.skillclass=Class_arqueiro
GO britain
ELIF (<ARGN>==2)
src.skillclass=Class_mago
GO britain
ENDIF

Can I put the TAGs here?


and how can I get the ARGN? (I only know programming C and VBA, and there i would create a variable inside of a function)

Here it looks like:
Code:
@SkillChange
     ARGN1 = "number of healing" //chosing healing
     TAG.OVERRIDE.REGEN_0 = 20 - ARGN2/5 //ARG2 is the new value of healing
     IF ( TAG.OVERRIDE.REGEN_0 <= 0 )
          TAG.OVERRIDE.REGEN_0 = 1 //one second to regenerate
     ENDIF
End @SkillChange (?)

@StatChange
     ARGN1 = 0 //chosing str
     TAG.OVERRIDE.REGENVAL_0 = ARGN2/100 //when the str of the players gets 200, he will recover 2 health points instead of 1
     IF ( TAG.OVERRIDE.REGENVAL_0 < 1 )
          TAG.OVERRIDE.REGENVAL_0 = 1 //default = 1
     ENDIF
End @StatChange (?)

PS: I learn that from: http://wiki.sphere.torfo.org/index.php/@SkillChange and http://wiki.sphere.torfo.org/index.php/@StatChange


PS 2: Is TAG.OVERRIDE.REGEN_1 and TAG.OVERRIDE.REGENVAL_1 the time and value of Stam Regen?
Is TAG.OVERRIDE.REGEN_2 and TAG.OVERRIDE.REGENVAL_2 the time and value of Mana Regen?
(This post was last modified: 09-13-2013 10:46 AM by AmpereJoule.)
09-13-2013 10:04 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Changing Life Regen - RanXerox - 09-13-2013, 06:55 AM
RE: Changing Life Regen - AmpereJoule - 09-13-2013 10:04 AM
RE: Changing Life Regen - Extreme - 09-13-2013, 12:41 PM
RE: Changing Life Regen - AmpereJoule - 09-13-2013, 01:07 PM
RE: Changing Life Regen - Extreme - 09-13-2013, 01:24 PM
RE: Changing Life Regen - AmpereJoule - 09-13-2013, 01:33 PM
RE: Changing Life Regen - AmpereJoule - 09-14-2013, 04:41 AM
RE: Changing Life Regen - Extreme - 09-14-2013, 04:54 AM
RE: Changing Life Regen - AmpereJoule - 09-14-2013, 05:58 AM
RE: Changing Life Regen - Ben - 09-14-2013, 08:20 AM
RE: Changing Life Regen - AmpereJoule - 09-14-2013, 08:35 AM
RE: Changing Life Regen - Extreme - 09-14-2013, 10:05 AM
RE: Changing Life Regen - AmpereJoule - 09-14-2013, 11:56 AM
RE: Changing Life Regen - Ben - 09-14-2013, 10:22 AM
Re: RE: Changing Life Regen - Extreme - 09-14-2013, 02:17 PM
RE: Changing Life Regen - AmpereJoule - 09-14-2013, 02:49 PM
RE: Changing Life Regen - Ben - 09-14-2013, 10:38 PM
RE: Changing Life Regen - AmpereJoule - 05-06-2015, 11:09 PM

Forum Jump:


User(s) browsing this thread: 8 Guest(s)