Home Crush your enemies... and create an EMPIRE!!! Space Empires V -- BUY NOW!!!

User login

  • Create new account
  • Request new password

Navigation

  • news
    • archive
    • blogs
    • books
    • forums
    • recent posts
    • groups
  • image galleries
  • projects & downloads
  • search
  • create content
  • news aggregator

Search

Who's online

There are currently 3 users and 176 guests online.

Online users

  • benc
  • Fyron
  • ekolis

Languages

  • English English
  • French French

Browse archives

« July 2008  
Mo Tu We Th Fr Sa Su
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Home » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

Sys_Does_Empire_Have_Ability Function

Submitted by unnamed on Tue, 2007-06-12 18:53. SE:V MODs

Hey Kwok (and other modders)

I'm trying to make it so races with the 'natural merchants' ability dont build space ports. So I used the Sys_Does_Empire_Have_Ability function to check if the empire has the ability

I have tried both the following:

set str := "Natural Merchants" set natural_merchant := Sys_Does_Empire_Have_Ability(sys_long_Player_ID, str)

set natural_merchant := Sys_Does_Empire_Have_Ability(sys_long_Player_ID, "Natural Merchants")

With no success. It comes back false even though the empire does have this ability.

Script_AI_Construction.txt(1472): Call Sys_Does_Empire_Have_Ability(long[1], string[Natural Merchants]) Script_AI_Construction.txt(1472): Set natural_merchant(boolean[FALSE]) := boolean[FALSE]

Any thoughts? Or any other way to get around this? Thanks

-unnamed

‹ Function to Give Recover Unit Order Shipset requests ›
» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Captain Kwok's picture
Mod Designer

Re: Sys_Does_Empire_Have_Ability Function

Submitted by Captain Kwok on Tue, 2007-06-12 18:57.

It's the ability name itself not Natural Merchants, so use "Points Added To Empire Pool".

-----

Space Empires Depot | SE:V Balance Mod

» login or register to post comments
Mod Designer

Re: Sys_Does_Empire_Have_Ability Function

Submitted by unnamed on Tue, 2007-06-12 19:09.

Kwok, you are my hero,

Thanks

-unnamed

» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Now on STEAM

Now on STEAM!Space Empires V via STEAMSpace Empires IV via STEAMSTEAM online by Valve Corporation

Popular content

Today's:

  • Tweaking the planet art without going all the way to FQM
  • Space Empires V 1.74
  • Research By Percentage SUCKS
  • Space Empires V
  • 1.44 bugs

All time:

  • Space Empires V and VI: Expansions and the Future: Tell the Company What's on Your Wish List
  • Space Empires V
  • Gritty Galaxy Fleet Clash
  • Damn Dirty Bugs/Annoyances
  • Space Empires V: General Thoughts, Observations, and Suggestions

Last viewed:

  • Space Empires V 1.25
  • SE5_20060929-55.jpg
  • very strange combat bug...
  • Can't capture a planet because of fighters
  • Tweaking the planet art without going all the way to FQM
(c) Strategy First, Inc. All rights reserved.