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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
getting attributes
Author Message
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #1
getting attributes
Hello again friends, i havent get there yet reading the sphereWIKI so i ask here first, its an easy question...

how do i define a value of an item attribute like ReqSTR
inside ON=@Create Trigger?

i'd like to change the reqstr using lowerreq

is it understandable enough?

PHP Code:
[ITEMDEF 020e]
DEFNAME=i_bone_machete
NAME
=bone machete
TYPE
=t_weapon_sword
DAM
=13,15
WEIGHT
=7.0
TWOHANDS
=N
RESOURCES
=14 i_ingot_iron,1 i_bone
SKILLMAKE
=Blacksmithing 70.0
ReqStr
=20
ON
=@Create
   HITPOINTS
={36 48}
   
LOWERREQ=10

IF <LowerReq>
------>  
ReqStr 

Thanks!
(This post was last modified: 05-31-2014 04:50 PM by kn4tseb.)
05-31-2014 04:46 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
getting attributes - kn4tseb - 05-31-2014 04:46 PM
RE: getting attributes - XuN - 05-31-2014, 09:41 PM
RE: getting attributes - kn4tseb - 06-01-2014, 12:37 AM
RE: getting attributes - kn4tseb - 06-01-2014, 02:55 AM
RE: getting attributes - XuN - 06-01-2014, 03:08 PM
RE: getting attributes - kn4tseb - 06-01-2014, 04:22 PM

Forum Jump:


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