It is currently Mon Dec 17, 2018 11:57 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: About structures
PostPosted: Thu Nov 15, 2018 11:56 am 
Offline
Enthusiast
Enthusiast

Joined: Wed Dec 31, 2014 5:41 pm
Posts: 111
Is there a way to "build" larger structures that are build upon smaller without getting alooooooooooooong path? Something like Microsofts 'ex' structures?

Example;

Code:
   Macro mWeaponSkills()
      ID.l
      BaseAttackSkill.u
      BaseParrySkill.u
   EndMacro
   
   Structure SWeaponSkills
      mWeaponSkills()
   EndStructure
   
   Structure WeaponSkills
      mWeaponSkills()
      Name.s
   EndStructure
   Define.SweaponSkills s
   Define.WeaponSkills t
   s\id = 8
   Debug s\id

When I write s\ I get "mWeaponSkills" from the editor as the path. And then nothing. If I write s\mWeaponSkills\id I will not work(obvious). s\Id will.

But what I would like too see here in the editor when using "s" or "t" is id or Baseattack or Baseparry and the last Name. Any way to get that done?

Short what I should get in Editor is when using SWeaponSkills is like its made like this;
Code:
   Structure SWeaponSkills
      ID.l
      BaseAttackSkill.u
      BaseParrySkill.u
   EndStructure


Top
 Profile  
Reply with quote  
 Post subject: Re: About structures
PostPosted: Thu Nov 15, 2018 12:09 pm 
Offline
Addict
Addict

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 870
Location: right here
place cursor on 'Structure' and press F1. In the doc there you get and example for 'Extends'


Top
 Profile  
Reply with quote  
 Post subject: Re: About structures
PostPosted: Thu Nov 15, 2018 12:13 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Feb 13, 2010 3:45 pm
Posts: 739
Code:
Structure SWeaponSkills
  ID.l
  BaseAttackSkill.u
  BaseParrySkill.u
EndStructure

Structure WeaponSkills Extends SWeaponSkills
  Name.s
EndStructure

_________________
sorry for my bad english


Top
 Profile  
Reply with quote  
 Post subject: Re: About structures
PostPosted: Thu Nov 15, 2018 12:31 pm 
Offline
Enthusiast
Enthusiast

Joined: Wed Dec 31, 2014 5:41 pm
Posts: 111
Thanks for the tips. I had read extend earlier. But got some confused. Thanks for the Tip there Josh. That was easier to understand than the one in the manual :)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye