HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

HELP!!!

01-07-2008, 12:26 AM#1
The_icon
Hey guys, does someone have a bank trigger, that you use chat to deposit/withdraw?! i mean like you type -deposit # then it puts it into a bank or w/e then you can withdraw and stuff!

if you have ever played Warhammer 40K TD, i mean like the bank system in that one

If anyone has a tutorial or sumthing can you please give it to me!
01-07-2008, 12:34 AM#2
xombie
That sounds like an incredibly easy thing to do - nobody would make a system that is so specified and limited.
01-07-2008, 12:35 AM#3
Tide-Arc Ephemera
I'll make a GUI system (bad for my current situation but) for you. I have it ready, gimme a sec to test it.

Just customize as however you need it:
Trigger:
Deposit
Collapse Events
Player - Player 1 (Red) types a chat message containing -deposit as A substring
Collapse Conditions
(Integer((Substring((Entered chat string), 10, 12)))) Less than or equal to (<=) ((Triggering player) Current gold)
Collapse Actions
Player - Add ((Integer((Substring((Entered chat string), 10, 12)))) x -1) to (Triggering player) Current gold
Set BankGold = (BankGold + (Integer((Substring((Entered chat string), 10, 12)))))
Game - Display to (All players) the text: (There is now |cffffcc00 + ((String(BankGold)) + gold|r in the bank.))

Trigger:
Withdraw
Collapse Events
Player - Player 1 (Red) types a chat message containing -withdraw as A substring
Collapse Conditions
BankGold Greater than or equal to (>=) (Integer((Substring((Entered chat string), 11, 13))))
Collapse Actions
Player - Add ((Integer((Substring((Entered chat string), 11, 13)))) x 1) to (Triggering player) Current gold
Set BankGold = (BankGold - (Integer((Substring((Entered chat string), 11, 13)))))
Game - Display to (All players) the text: (There is now |cffffcc00 + ((String(BankGold)) + gold|r in the bank.))

Trigger:
Check
Collapse Events
Player - Player 1 (Red) types a chat message containing -check as An exact match
Conditions
Collapse Actions
Game - Display to (All players) the text: (At the moment, there is |cffffcc00 + ((String(BankGold)) + gold|r in the bank.))

And that is that, if you have any questions... just ask.

(This is not good for my JASS learning but... I'll help you if you need it!)