Feature Attributes MOD

Codinablack

Dreamer
Joined
Dec 26, 2013
Messages
1,216
Reaction score
372
Thanks for this release man! Can't believe its working finally! One question though, would it be as simple as it looks to add in other attributes like healthgain healthticks managain manaticks ect. ect.?
 
Last edited:

MadMOOK

Hoo
Joined
Apr 20, 2011
Messages
802
Reaction score
40
I use 0.3.7 10.10 64x
Movement.cpp
Code:
 1>..\movement.cpp(1031): error C2228: left of '.regeneration' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\movement.cpp(1041): error C2228: left of '.healthGain' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\movement.cpp(1045): error C2228: left of '.healthGain' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\movement.cpp(1046): error C2228: left of '.healthGain' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\movement.cpp(1054): error C2228: left of '.healthTicks' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\movement.cpp(1058): error C2228: left of '.healthTicks' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\movement.cpp(1059): error C2228: left of '.healthTicks' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\movement.cpp(1067): error C2228: left of '.manaGain' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\movement.cpp(1071): error C2228: left of '.manaGain' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\movement.cpp(1072): error C2228: left of '.manaGain' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\movement.cpp(1080): error C2228: left of '.manaTicks' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\movement.cpp(1084): error C2228: left of '.manaTicks' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\movement.cpp(1085): error C2228: left of '.manaTicks' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
item.cpp
Code:
1>..\item.cpp(862): error C2228: left of '.elementType' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\item.cpp(864): error C2228: left of '.elementDamage' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\item.cpp(864): error C2780: 'const _Ty &std::max(const _Ty &,const _Ty &,_Pr)' : expects 3 arguments - 2 provided
                C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\xutility(2038) : see declaration of 'std::max'
    1>..\item.cpp(868): error C2228: left of '.elementDamage' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\item.cpp(868): error C2228: left of '.elementType' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\item.cpp(901): error C2228: left of '.skills' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\item.cpp(916): error C2228: left of '.skills' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\item.cpp(917): error C2228: left of '.skills' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\item.cpp(933): error C2228: left of '.stats' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\item.cpp(947): error C2228: left of '.stats' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\item.cpp(948): error C2228: left of '.stats' must have class/struct/union
                type is 'Abilities *const '
                did you intend to use '->' instead?
    1>..\item.cpp(1185): error C2065: 'begin' : undeclared identifier
    1>..\item.cpp(1187): error C2065: 'begin' : undeclared identifier
    1>..\item.cpp(1196): error C2065: 'begin' : undeclared identifier
    1>..\item.cpp(1199): error C2059: syntax error : 'else'
    1>..\item.cpp(1200): error C2143: syntax error : missing ';' before '{'
    1>..\item.cpp(1200): error C2447: '{' : missing function header (old-style formal list?)
    1>..\item.cpp(1467): error C2059: syntax error : '}'
    1>..\item.cpp(1467): error C2143: syntax error : missing ';' before '}'
    1>..\item.cpp(1470): error C2059: syntax error : 'else'
    1>..\item.cpp(1471): error C2059: syntax error : 'constant'
    1>..\item.cpp(1471): error C2059: syntax error : ')'
    1>..\item.cpp(1472): error C2059: syntax error : 'else'
    1>..\item.cpp(1473): error C2143: syntax error : missing ';' before '{'
    1>..\item.cpp(1473): error C2447: '{' : missing function header (old-style formal list?)
    1>..\item.cpp(1479): error C2059: syntax error : 'else'
    1>..\item.cpp(1480): error C2143: syntax error : missing ';' before '{'
    1>..\item.cpp(1480): error C2447: '{' : missing function header (old-style formal list?)
    1>..\item.cpp(1487): error C2059: syntax error : 'else'
    1>..\item.cpp(1488): error C2143: syntax error : missing ';' before '{'
    1>..\item.cpp(1488): error C2447: '{' : missing function header (old-style formal list?)
    1>..\item.cpp(1519): error C2059: syntax error : 'else'
    1>..\item.cpp(1523): error C2059: syntax error : 'if'
    1>..\item.cpp(1524): error C2059: syntax error : 'string'
    1>..\item.cpp(1524): error C2059: syntax error : ')'
    1>..\item.cpp(1526): error C2059: syntax error : 'if'
    1>..\item.cpp(1527): error C2143: syntax error : missing ';' before '{'
    1>..\item.cpp(1527): error C2447: '{' : missing function header (old-style formal list?)
    1>..\item.cpp(1563): error C2059: syntax error : 'if'
    1>..\item.cpp(1566): error C2059: syntax error : 'if'
    1>..\item.cpp(1567): error C2143: syntax error : missing ';' before '{'
    1>..\item.cpp(1567): error C2447: '{' : missing function header (old-style formal list?)
    1>..\item.cpp(1593): error C2059: syntax error : 'if'
    1>..\item.cpp(1594): error C2143: syntax error : missing ';' before '{'
    1>..\item.cpp(1594): error C2447: '{' : missing function header (old-style formal list?)
    1>..\item.cpp(1605): error C2059: syntax error : 'if'
    1>..\item.cpp(1607): error C2059: syntax error : 'else'
    1>..\item.cpp(1610): error C2065: 's' : undeclared identifier
    1>..\item.cpp(1610): error C2228: left of '.str' must have class/struct/union
                type is ''unknown-type''
    1>..\item.cpp(1611): error C2059: syntax error : 'if'
    1>..\item.cpp(1612): error C2143: syntax error : missing ';' before '{'
    1>..\item.cpp(1612): error C2447: '{' : missing function header (old-style formal list?)
    1>..\item.cpp(1623): error C2059: syntax error : 'if'
    1>..\item.cpp(1628): error C2143: syntax error : missing ';' before '{'
    1>..\item.cpp(1628): error C2447: '{' : missing function header (old-style formal list?)
    1>..\item.cpp(1672): error C2059: syntax error : 'return'
    1>..\item.cpp(1673): error C2059: syntax error : '}'
    1>..\item.cpp(1673): error C2143: syntax error : missing ';' before '}'
    1>..\item.cpp(1676): error C2143: syntax error : missing ';' before '{'
    1>..\item.cpp(1676): error C2447: '{' : missing function header (old-style formal list?)
Here is movement.cpp http://pastebin.com/zQT5TSw0
Here is item.cpp http://pastebin.com/F1350tgV
 

imkingran

Learning everyday.
Premium User
Joined
Jan 15, 2014
Messages
1,252
Reaction score
378
If I want to add maxhealthpoints/healthgain/managain to an item in a creaturescript, (by looting it), what is the correct way to do it?

I haven't been successful thus far.

Thanks for any help.
 

Nazubal27

Member
Joined
Mar 6, 2013
Messages
45
Reaction score
4
Location
Canada
Please update this for TFS 1.2 if you could.

Problems I'm having with TFS 1.2 are
-the Item class doesn't have a getAttribute(String...) method
-boost::any doesnt exist
-there isnt a STAT_LEVEL enum
 

XagaH

New Member
Joined
May 30, 2011
Messages
1
Reaction score
0
I´m having this problem:
Code:
obj//item.o:item.cpp:(.text+0x538b): undefined reference to `CONVERSION::STATS'
obj//item.o:item.cpp:(.text+0x69c6): undefined reference to `CONVERSION::STATS'
obj//movement.o:movement.cpp:(.text+0xede): undefined reference to `CONVERSION::STATS'
obj//movement.o:movement.cpp:(.text+0x1f06): undefined reference to `CONVERSION::STATS'
Does anyone know how to fix it?

Forget it. I found the error.

-- Edited --

I was replacing a parte of the code instead of add it underneath.
 
Last edited:

loreal

Member
Joined
Oct 1, 2014
Messages
43
Reaction score
0
takes a lot of this mod could someone please adapt to TFS 0.3.7 ?
 
Top