AmpereJoule
Journeyman
Posts: 59
Likes Given: 7
Likes Received: 0 in 0 posts
Joined: Dec 2012
Reputation: 0
|
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 |
|
|