(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Modding > Requests

Requests Need a resource done for your project? Post your request here, however we cannot guarantee that your request may be answered.

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 12-17-2005, 06:47 PM   #1 (permalink)
 
Lord Raszul's Avatar

Lord of Creation
 
Join Date: Feb 2005
Posts: 263

Lord Raszul is an unknown quantity at this point (0)


[JASS] get/store integer with integer index per unit

Hi
I know the topic sounds quite difficult, but heck i disbelieve it is and i would do it myself, if i could figure out about the gamecache (i know how it should work, but it doesn't -.-)

So here is the reason why i need the script:
I'd like a spell-learning-system for my map in which a spell is not improved via levelup but via using it.
So i need a way to know how often a spell has been used by a specific unit.

And here is the semi-code for the functions i'd like to get:

Code:
function get_uses takes integer unit, integer ability returns integer uses
Cache <- Get_Cache_For_Unit(unit)
uses <- Get_Integer_By_Index(Cache, ability)
return uses
endfunction

function store_integer takes integer unit, integer ability, integer value returns nothing
Cache <- Get_Cache_For_Unit(unit)
Set_Integer_By_Index(Cache, ability, value)
endfunction
i hope everyone can understand what i want and i definitly look forward for any part of this beeing done for me.

Note:
The names for functions and variables my be different from my semicode.
Lord Raszul is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] For each integer in A from X to Y... Lucianus World Editor Help Zone 2 01-30-2008 05:27 AM
[JASS] Unit name from integer unitid? Defender Triggers & Scripts 5 01-23-2008 01:53 PM
Looping Integer / Unit / Destructible help Mr.TD World Editor Help Zone 2 11-24-2007 10:13 PM
Integer Help Paul47 World Editor Help Zone 4 12-07-2006 11:20 PM
Integer A - set variable for unit Ramza Triggers & Scripts 2 11-20-2005 07:45 PM

All times are GMT. The time now is 11:44 PM.






Your link here 
Credit Counseling | Debt Consolidation | Loans | Loans | Free Credit Reports
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle