Give gold trigger(s)

Status
Not open for further replies.

Sivert

New Member
Reaction score
0
I'm looking for a tutorial or help with creating a trigger that makes it possible to write foreksample "-give 1 5" as in "-give "player 1" "5" gold"... I searched but didn't find anything.

I'll appreaciate any help!
 

Sivert

New Member
Reaction score
0
Sorry if I wasn't clear enough, I meant for a player to write "-give 1 10", to transfer 10 gold to "player 1"

and yes, transfer the value he types in..
 

waaaks!

Zinctified
Reaction score
255
i found a post 2 months ago about this kind of problem, too bad i didnt memorize the correct trigger posted

how about searching for it...
 

Sivert

New Member
Reaction score
0
hmmm, maybe.. Ty!

How do I change settings that change how much gold your sending when you click on gold to a certain ally in the allies button?
 

juty

Zoom out problems look smaller
Reaction score
26
I'm looking for a tutorial or help with creating a trigger that makes it possible to write foreksample "-give 1 5" as in "-give "player 1" "5" gold"... I searched but didn't find anything.

I'll appreaciate any help!

Ok
>Open trigger editor
>Two create new trigger
>Three event's player 1 types message contain gold as exact match
>Four Actions add 5 gold two players 1 (red) current gold
I think this will work:shades:
 

waaaks!

Zinctified
Reaction score
255
Ok
>Open trigger editor
>Two create new trigger
>Three event's player 1 types message contain gold as exact match
>Four Actions add 5 gold two players 1 (red) current gold
I think this will work:shades:

yes it will work but...
how about other integers?
like if i typed
-gold 129
-gold 5432143253
-gold 84736
-gold 10
-gold 2133
-gold 49426

it is impossible to put all the events with the number combinations
because it will take millions of number codes
 

Weyrling

New Member
Reaction score
25
Edit: I'll just give you the answer:
Code:
Give Gold
    Events
        Player - Player 1 (Red) types a chat message containing -give  as A substring
    Conditions
        (Substring((Entered chat string), 1, 6)) Equal to -give 
    Actions
        Player - Add (Integer((Substring((Entered chat string), 9, (Length of (Entered chat string)))))) to (Player((Integer((Substring((Entered chat string), 7, 8)))))) Current gold
Just remember to also reduce gold for player 1.
 

Sivert

New Member
Reaction score
0
hmmm, maybe.. Ty!

How do I change settings that change how much gold your sending when you click on gold to a certain ally in the allies button?

Maybe I'll just go with this, the default giving of gold and lumber is 100, how can I change it to 2? or somthing else..

Ty for answers, but this should work well enough for me..
 
Status
Not open for further replies.
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top