HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

In need of a loading system.

03-27-2004, 06:49 AM#1
pappi.chullo
The tag game I am making nees a carring system. This is the basic idea.

Your a troll that needs to get pigs to a kodo. Get a lot of pigs and sheeps to the kodo. The other team can feed your kodo bad things making your kodo smaller.

Note: There will be 2 teams of 5 each, and the critters will be neteral.


I tried giving the trolls an ensnare that works like charm, then by triggers they load it to theirselfs, but then that would result in them owning a pig, and players would find a way to abuse that. Then, when the player go near the kodo, triggers order them to unload, and the unloaded units will go closer to the kodo and ... Blah blah blah.


If you don't understand, or have a good system, please reply.

Thanks.
03-27-2004, 02:41 PM#2
SirSalute
for what i would recommend is to have an array of variables to store the number of loads, and you move the 'loaded' critters to a out of reach place, maybe a hidden area where nobody can access to. When the player choose to unload, move the 'critters' from the loaded area to the position of the carrier(kodo).

Italic words are the variables you have to set.

For loading
Event
Unit starts effect of ability
Condition
Ability cast equals to ensare/charm watever
Action
Set loads[player Number] = loads[player Number] + 1
Move(Instantly) unit of ability being casted to Center of (Hidden Area)
Enable Unload to owner of casting unit
If loads[player Number] greater or equals to The maximum size your unit can hold then Disable ensare/charm watever to owner of casting unit else do nothing

For unloading
Event
Unit is issue an order with no target
Condition
Ability cast equals to Unload(dummy spell)
Action
Set loads [player number] = loads[player number] - 1
Move(Instantly) random unit in Hidden Area to position of casting unit
If loads [player number] = 0 then disable unload to owner of casting unit else do nothing
Enable Ensnare/Charm watever to owner of casting unit

Variables
loads Integer Array Size=>number of units you want to load
*************************************
I hope that helps :8
03-27-2004, 06:11 PM#3
pappi.chullo
Well, I tried to under stand the triggers, but I'm not to clear on arrays. Also, would I have to make a action for each player?
ex.
Set loads [1] = loads[1] - 1
Set loads [2] = loads[2] - 1
Set loads [3] = loads[3] - 1

basically like that?
03-27-2004, 08:36 PM#4
Pyrus
Here's my version:
Variables=
Cargo1 - unit type array, each player will have their own array.
CargoNumber1 - integer, default = 1, each player has one
j = integer, used in for loop

Load
Events:
Unit casts spell.

Conditions:
Spell = ensnare

Actions:
remove targeted unit
set cargo1[cargonumber1] = targeted type
set cargonumber = cargonumber + 1
If cargo number = 8 Then disable ensnare Else Do nothing

Unload
Events:
Unit casts spell

Conditions:
spell = unload
casting unit in kodoregion1

Actions:
For integer variable j: 1 to cargonumber do create cargo[j] in kodoregion
Set cargonumber = 1
enable ensnare


Do something to that effect.